diff options
author | 2021-03-29 16:46:09 +0000 | |
---|---|---|
committer | 2021-03-29 16:46:09 +0000 | |
commit | 268dad53d6e6176ac2f0893130b94dd69e18f3ef (patch) | |
tree | a65b7a541b765dc697a54c9e507a2c946601a81b /lib/libssl/ssl_locl.h | |
parent | Add regress coverage for TLSv1.2 record number increment. (diff) | |
download | wireguard-openbsd-268dad53d6e6176ac2f0893130b94dd69e18f3ef.tar.xz wireguard-openbsd-268dad53d6e6176ac2f0893130b94dd69e18f3ef.zip |
Move finished and peer finished to the handshake struct.
This moves the finish_md and peer_finish_md from the 'tmp' struct to the
handshake struct, renaming to finished and peer_finished in the process.
This also allows the remaining S3I(s) references to be removed from the
TLSv1.3 client and server.
ok inoguchi@ tb@
Diffstat (limited to 'lib/libssl/ssl_locl.h')
-rw-r--r-- | lib/libssl/ssl_locl.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/lib/libssl/ssl_locl.h b/lib/libssl/ssl_locl.h index 4b2f98f84d2..3339c57390c 100644 --- a/lib/libssl/ssl_locl.h +++ b/lib/libssl/ssl_locl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_locl.h,v 1.332 2021/03/29 16:19:15 jsing Exp $ */ +/* $OpenBSD: ssl_locl.h,v 1.333 2021/03/29 16:46:09 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -492,6 +492,15 @@ typedef struct ssl_handshake_st { uint8_t *sigalgs; size_t sigalgs_len; + /* + * Copies of the verify data sent in our finished message and the + * verify data received in the finished message sent by our peer. + */ + uint8_t finished[EVP_MAX_MD_SIZE]; + size_t finished_len; + uint8_t peer_finished[EVP_MAX_MD_SIZE]; + size_t peer_finished_len; + SSL_HANDSHAKE_TLS12 tls12; SSL_HANDSHAKE_TLS13 tls13; } SSL_HANDSHAKE; @@ -918,11 +927,6 @@ typedef struct ssl3_state_internal_st { struct { unsigned char cert_verify_md[EVP_MAX_MD_SIZE]; - unsigned char finish_md[EVP_MAX_MD_SIZE]; - size_t finish_md_len; - unsigned char peer_finish_md[EVP_MAX_MD_SIZE]; - size_t peer_finish_md_len; - unsigned long message_size; int message_type; |