From 1e42708e175f1453bd12f4632fbc0c61bade4e81 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Tue, 1 Nov 2022 15:54:30 +0000 Subject: [PATCH] Remove references to read_mac_secret and write_mac_secret They are no longer used and can be removed. Reviewed-by: Hugo Landau Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/19586) --- ssl/ssl_local.h | 4 ---- ssl/statem/statem_dtls.c | 2 -- 2 files changed, 6 deletions(-) diff --git a/ssl/ssl_local.h b/ssl/ssl_local.h index cc1239287c..50e3b65372 100644 --- a/ssl/ssl_local.h +++ b/ssl/ssl_local.h @@ -1296,10 +1296,6 @@ struct ssl_connection_st { struct { long flags; - size_t read_mac_secret_size; - unsigned char read_mac_secret[EVP_MAX_MD_SIZE]; - size_t write_mac_secret_size; - unsigned char write_mac_secret[EVP_MAX_MD_SIZE]; unsigned char server_random[SSL3_RANDOM_SIZE]; unsigned char client_random[SSL3_RANDOM_SIZE]; diff --git a/ssl/statem/statem_dtls.c b/ssl/statem/statem_dtls.c index 4effc58416..c042830cb1 100644 --- a/ssl/statem/statem_dtls.c +++ b/ssl/statem/statem_dtls.c @@ -990,8 +990,6 @@ static int dtls_get_reassembled_message(SSL_CONNECTION *s, int *errtype, /*- * for these 2 messages, we need to - * ssl->enc_read_ctx re-init - * ssl->s3.read_mac_secret re-init * ssl->session->read_sym_enc assign * ssl->session->read_compression assign * ssl->session->read_hash assign -- 2.34.1