From b27b00297b47becc7fe022ec0d282737468895de Mon Sep 17 00:00:00 2001 From: Frederik Wedel-Heinen Date: Tue, 24 Sep 2024 14:55:04 +0200 Subject: [PATCH] fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! DTLS 1.3 record number encryption --- ssl/tls13_enc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ssl/tls13_enc.c b/ssl/tls13_enc.c index 69e573a6cb1e84..0f7256b9d20d07 100644 --- a/ssl/tls13_enc.c +++ b/ssl/tls13_enc.c @@ -367,7 +367,7 @@ size_t tls13_final_finish_mac(SSL_CONNECTION *s, const char *str, size_t slen, int tls13_setup_key_block(SSL_CONNECTION *s) { const EVP_CIPHER *c; - const EVP_CIPHER *snc, **p_snc = &snc; + const EVP_CIPHER *snc = NULL, **p_snc = SSL_CONNECTION_IS_DTLS(s) ? &snc : NULL; size_t snoffs; const EVP_MD *hash; int mac_type = NID_undef; @@ -520,9 +520,7 @@ int tls13_change_cipher_state(SSL_CONNECTION *s, int which) unsigned char *iv = iv_intern; unsigned char key[EVP_MAX_KEY_LENGTH]; unsigned char snkey[EVP_MAX_KEY_LENGTH]; - size_t sn_input_offs; - size_t sn_input_len; - int sn_use_input_as_iv; + size_t sn_input_offs = 0; unsigned char secret[EVP_MAX_MD_SIZE]; unsigned char hashval[EVP_MAX_MD_SIZE]; unsigned char *hash = hashval;