From 53116d353f285078396d1b6ecfcab1adc7fc65fb Mon Sep 17 00:00:00 2001 From: jsing <> Date: Sun, 16 May 2021 15:49:01 +0000 Subject: Absorb SSL_AEAD_CTX into struct tls12_record_protection. The information contained in SSL_AEAD_CTX really belongs in the tls12_record_protection struct. Absorb SSL_AEAD_CTX, using more appropriate types in the process. ok tb@ --- src/lib/libssl/ssl_locl.h | 24 +----------------------- 1 file changed, 1 insertion(+), 23 deletions(-) (limited to 'src/lib/libssl/ssl_locl.h') diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h index 2e324e5d31..df115725a0 100644 --- a/src/lib/libssl/ssl_locl.h +++ b/src/lib/libssl/ssl_locl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ssl_locl.h,v 1.346 2021/05/16 13:56:31 jsing Exp $ */ +/* $OpenBSD: ssl_locl.h,v 1.347 2021/05/16 15:49:01 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1047,28 +1047,6 @@ typedef struct sess_cert_st { #define TLSV1_3_ENC_FLAGS (SSL_ENC_FLAG_SIGALGS | \ SSL_ENC_FLAG_TLS1_3_CIPHERS) -/* - * ssl_aead_ctx_st contains information about an AEAD that is being used to - * encrypt an SSL connection. - */ -struct ssl_aead_ctx_st { - EVP_AEAD_CTX ctx; - /* - * fixed_nonce contains any bytes of the nonce that are fixed for all - * records. - */ - unsigned char fixed_nonce[12]; - unsigned char fixed_nonce_len; - unsigned char variable_nonce_len; - unsigned char xor_fixed_nonce; - unsigned char tag_len; - /* - * variable_nonce_in_record is non-zero if the variable nonce - * for a record is included as a prefix before the ciphertext. - */ - char variable_nonce_in_record; -}; - extern const SSL_CIPHER ssl3_ciphers[]; const char *ssl_version_string(int ver); -- cgit v1.2.3-55-g6feb