diff options
author | 2019-02-04 16:18:15 +0000 | |
---|---|---|
committer | 2019-02-04 16:18:15 +0000 | |
commit | 9b64ae44e4c7abff7545e825e5c6f8d44cc5f4f1 (patch) | |
tree | 004fa604313b99f37c6466f7220bea1db90f0ca8 /lib/libssl/tls13_internal.h | |
parent | Make it easier to build with LIBRESSL_HAS_TLS1_3 enabled. (diff) | |
download | wireguard-openbsd-9b64ae44e4c7abff7545e825e5c6f8d44cc5f4f1.tar.xz wireguard-openbsd-9b64ae44e4c7abff7545e825e5c6f8d44cc5f4f1.zip |
Implement parsing and processing of TLSv1.3 ServerHello messages.
ok tb@
Diffstat (limited to 'lib/libssl/tls13_internal.h')
-rw-r--r-- | lib/libssl/tls13_internal.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libssl/tls13_internal.h b/lib/libssl/tls13_internal.h index 2738c40c4c1..4b23e74ae14 100644 --- a/lib/libssl/tls13_internal.h +++ b/lib/libssl/tls13_internal.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tls13_internal.h,v 1.15 2019/01/21 13:45:57 jsing Exp $ */ +/* $OpenBSD: tls13_internal.h,v 1.16 2019/02/04 16:18:15 jsing Exp $ */ /* * Copyright (c) 2018 Bob Beck <beck@openbsd.org> * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> @@ -21,6 +21,7 @@ #define HEADER_TLS13_INTERNAL_H #include <openssl/evp.h> +#include <openssl/ssl.h> #include "bytestring.h" @@ -151,6 +152,9 @@ struct tls13_ctx { uint8_t mode; struct tls13_handshake_stage handshake_stage; + const EVP_AEAD *aead; + const EVP_MD *hash; + struct tls13_record_layer *rl; struct tls13_handshake_msg *hs_msg; }; @@ -158,6 +162,9 @@ struct tls13_ctx { struct tls13_ctx *tls13_ctx_new(int mode); void tls13_ctx_free(struct tls13_ctx *ctx); +const EVP_AEAD *tls13_cipher_aead(const SSL_CIPHER *cipher); +const EVP_MD *tls13_cipher_hash(const SSL_CIPHER *cipher); + /* * Legacy interfaces. */ |