From 313fa7fb46e54a124e7d11f34324239a56c1b92d Mon Sep 17 00:00:00 2001 From: jsing Date: Sat, 9 Feb 2019 15:20:05 +0000 Subject: Provide a reference from the TLSv1.3 context to the handshake state. This allows ctx->hs to be used throughout the TLSv1.3 code, rather than S3I(ctx->ssl)->hs_tls13. ok inoguchi@ tb@ --- lib/libssl/tls13_internal.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/libssl/tls13_internal.h') diff --git a/lib/libssl/tls13_internal.h b/lib/libssl/tls13_internal.h index 4b23e74ae14..0637b34ff73 100644 --- a/lib/libssl/tls13_internal.h +++ b/lib/libssl/tls13_internal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_internal.h,v 1.16 2019/02/04 16:18:15 jsing Exp $ */ +/* $OpenBSD: tls13_internal.h,v 1.17 2019/02/09 15:20:05 jsing Exp $ */ /* * Copyright (c) 2018 Bob Beck * Copyright (c) 2018 Theo Buehler @@ -147,8 +147,11 @@ struct tls13_handshake_stage { uint8_t message_number; }; +typedef struct ssl_handshake_tls13_st SSL_HANDSHAKE_TLS13; + struct tls13_ctx { SSL *ssl; + SSL_HANDSHAKE_TLS13 *hs; uint8_t mode; struct tls13_handshake_stage handshake_stage; -- cgit v1.2.3-59-g8ed1b