summaryrefslogtreecommitdiff
path: root/src/lib/libssl/tls13_internal.h
diff options
context:
space:
mode:
authorjsing <>2019-02-09 15:20:05 +0000
committerjsing <>2019-02-09 15:20:05 +0000
commit420e1203852fc99e786ceb80cff5559b6be38fbf (patch)
treeb270ca4e8a5c9f3f80b183036bb1fd42b2ed9a70 /src/lib/libssl/tls13_internal.h
parent7a09aa52502e5c4598eda224db8dd8e132773449 (diff)
downloadopenbsd-420e1203852fc99e786ceb80cff5559b6be38fbf.tar.gz
openbsd-420e1203852fc99e786ceb80cff5559b6be38fbf.tar.bz2
openbsd-420e1203852fc99e786ceb80cff5559b6be38fbf.zip
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@
Diffstat (limited to 'src/lib/libssl/tls13_internal.h')
-rw-r--r--src/lib/libssl/tls13_internal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h
index 4b23e74ae1..0637b34ff7 100644
--- a/src/lib/libssl/tls13_internal.h
+++ b/src/lib/libssl/tls13_internal.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: tls13_internal.h,v 1.16 2019/02/04 16:18:15 jsing Exp $ */ 1/* $OpenBSD: tls13_internal.h,v 1.17 2019/02/09 15:20:05 jsing Exp $ */
2/* 2/*
3 * Copyright (c) 2018 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2018 Bob Beck <beck@openbsd.org>
4 * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> 4 * Copyright (c) 2018 Theo Buehler <tb@openbsd.org>
@@ -147,8 +147,11 @@ struct tls13_handshake_stage {
147 uint8_t message_number; 147 uint8_t message_number;
148}; 148};
149 149
150typedef struct ssl_handshake_tls13_st SSL_HANDSHAKE_TLS13;
151
150struct tls13_ctx { 152struct tls13_ctx {
151 SSL *ssl; 153 SSL *ssl;
154 SSL_HANDSHAKE_TLS13 *hs;
152 uint8_t mode; 155 uint8_t mode;
153 struct tls13_handshake_stage handshake_stage; 156 struct tls13_handshake_stage handshake_stage;
154 157