summaryrefslogtreecommitdiffstats
path: root/lib/libssl/tls13_internal.h
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2019-02-09 15:20:05 +0000
committerjsing <jsing@openbsd.org>2019-02-09 15:20:05 +0000
commit313fa7fb46e54a124e7d11f34324239a56c1b92d (patch)
tree1812e444e21ddb23405be35381a315d3b7761f9e /lib/libssl/tls13_internal.h
parentThe am335x_boneblack U-Boot target has been removed in the U-Boot (diff)
downloadwireguard-openbsd-313fa7fb46e54a124e7d11f34324239a56c1b92d.tar.xz
wireguard-openbsd-313fa7fb46e54a124e7d11f34324239a56c1b92d.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 'lib/libssl/tls13_internal.h')
-rw-r--r--lib/libssl/tls13_internal.h5
1 files changed, 4 insertions, 1 deletions
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 <beck@openbsd.org>
* Copyright (c) 2018 Theo Buehler <tb@openbsd.org>
@@ -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;