diff options
author | jsing <> | 2021-03-21 18:36:34 +0000 |
---|---|---|
committer | jsing <> | 2021-03-21 18:36:34 +0000 |
commit | 087b119e33251560358cb9d7b82b5f8a17f03031 (patch) | |
tree | 04368005066ac217cbc5ba4c6633356e81eb6d00 /src/lib/libssl/tls12_record_layer.c | |
parent | 576f996ac5a58317d1b7d552a754750ef4b70521 (diff) | |
download | openbsd-087b119e33251560358cb9d7b82b5f8a17f03031.tar.gz openbsd-087b119e33251560358cb9d7b82b5f8a17f03031.tar.bz2 openbsd-087b119e33251560358cb9d7b82b5f8a17f03031.zip |
Move the TLSv1.3 handshake struct inside the shared handshake struct.
There are currently three different handshake structs that are in use -
the SSL_HANDSHAKE struct (as S3I(s)->hs), the SSL_HANDSHAKE_TLS13 struct
(as S3I(s)->hs_tls13 or ctx->hs in the TLSv1.3 code) and the infamous
'tmp' embedded in SSL3_STATE_INTERNAL (as S3I(s)->tmp)).
This is the first step towards cleaning up the handshake structs so that
shared data is in the SSL_HANDSHAKE struct, with sub-structs for TLSv1.2
and TLSv1.3 specific information. Place SSL_HANDSHAKE_TLS13 inside
SSL_HANDSHAKE and change ctx->hs to refer to the SSL_HANDSHAKE struct
instead of the SSL_HANDSHAKE_TLS13 struct. This allows the TLSv1.3 code
to access the shared handshake data without needing the SSL struct.
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/tls12_record_layer.c')
0 files changed, 0 insertions, 0 deletions