diff options
Diffstat (limited to 'src/lib/libssl/tls13_internal.h')
-rw-r--r-- | src/lib/libssl/tls13_internal.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/lib/libssl/tls13_internal.h b/src/lib/libssl/tls13_internal.h index 2738c40c4c..4b23e74ae1 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.15 2019/01/21 13:45:57 jsing Exp $ */ | 1 | /* $OpenBSD: tls13_internal.h,v 1.16 2019/02/04 16:18:15 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> |
@@ -21,6 +21,7 @@ | |||
21 | #define HEADER_TLS13_INTERNAL_H | 21 | #define HEADER_TLS13_INTERNAL_H |
22 | 22 | ||
23 | #include <openssl/evp.h> | 23 | #include <openssl/evp.h> |
24 | #include <openssl/ssl.h> | ||
24 | 25 | ||
25 | #include "bytestring.h" | 26 | #include "bytestring.h" |
26 | 27 | ||
@@ -151,6 +152,9 @@ struct tls13_ctx { | |||
151 | uint8_t mode; | 152 | uint8_t mode; |
152 | struct tls13_handshake_stage handshake_stage; | 153 | struct tls13_handshake_stage handshake_stage; |
153 | 154 | ||
155 | const EVP_AEAD *aead; | ||
156 | const EVP_MD *hash; | ||
157 | |||
154 | struct tls13_record_layer *rl; | 158 | struct tls13_record_layer *rl; |
155 | struct tls13_handshake_msg *hs_msg; | 159 | struct tls13_handshake_msg *hs_msg; |
156 | }; | 160 | }; |
@@ -158,6 +162,9 @@ struct tls13_ctx { | |||
158 | struct tls13_ctx *tls13_ctx_new(int mode); | 162 | struct tls13_ctx *tls13_ctx_new(int mode); |
159 | void tls13_ctx_free(struct tls13_ctx *ctx); | 163 | void tls13_ctx_free(struct tls13_ctx *ctx); |
160 | 164 | ||
165 | const EVP_AEAD *tls13_cipher_aead(const SSL_CIPHER *cipher); | ||
166 | const EVP_MD *tls13_cipher_hash(const SSL_CIPHER *cipher); | ||
167 | |||
161 | /* | 168 | /* |
162 | * Legacy interfaces. | 169 | * Legacy interfaces. |
163 | */ | 170 | */ |