summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <>2020-02-05 17:30:30 +0000
committerjsing <>2020-02-05 17:30:30 +0000
commit7e6bc3834f295c86c77088f3b791ba774d733b5e (patch)
tree24698e90dd97dec3b0a0fe94f34f034aa56498f6 /src/lib/libssl/ssl_locl.h
parent07ea61878ac6d6bcacd99b33edf34046f1fd076b (diff)
downloadopenbsd-7e6bc3834f295c86c77088f3b791ba774d733b5e.tar.gz
openbsd-7e6bc3834f295c86c77088f3b791ba774d733b5e.tar.bz2
openbsd-7e6bc3834f295c86c77088f3b791ba774d733b5e.zip
Refactor the server hello processing code in the TLSv1.3 client.
Use flags to signal the need to switch to the legacy client and to identify a hello retry request. This allows the caller to take appropriate action, rather than trying to do this in the parsing/processing code. Split the key deriviation and record protection engagement code into a separate function, both for readability and reuse. Change handshake states outside of the processing code. ok tb@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r--src/lib/libssl/ssl_locl.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index fc2528db16..7f3e8a63a8 100644
--- a/src/lib/libssl/ssl_locl.h
+++ b/src/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_locl.h,v 1.261 2020/02/05 16:47:34 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.262 2020/02/05 17:30:30 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -457,6 +457,9 @@ typedef struct ssl_handshake_tls13_st {
457 uint16_t max_version; 457 uint16_t max_version;
458 uint16_t version; 458 uint16_t version;
459 459
460 int use_legacy;
461 int hrr;
462
460 /* Version proposed by peer server. */ 463 /* Version proposed by peer server. */
461 uint16_t server_version; 464 uint16_t server_version;
462 465