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
commitb4766dc0b43a58fb924f86b32ea9dc519e138f45 (patch)
tree24698e90dd97dec3b0a0fe94f34f034aa56498f6 /src/lib/libssl/ssl_locl.h
parent30522d799b56c01cbca3fedc09dfe8c5f5692a43 (diff)
downloadopenbsd-b4766dc0b43a58fb924f86b32ea9dc519e138f45.tar.gz
openbsd-b4766dc0b43a58fb924f86b32ea9dc519e138f45.tar.bz2
openbsd-b4766dc0b43a58fb924f86b32ea9dc519e138f45.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