Remove references to read_mac_secret and write_mac_secret
authorMatt Caswell <matt@openssl.org>
Tue, 1 Nov 2022 15:54:30 +0000 (15:54 +0000)
committerHugo Landau <hlandau@openssl.org>
Mon, 14 Nov 2022 07:51:17 +0000 (07:51 +0000)
They are no longer used and can be removed.

Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19586)

ssl/ssl_local.h
ssl/statem/statem_dtls.c

index cc1239287c02dbc494e581342bcd4c0d3ee84cd9..50e3b653725c66303278b0c5db763d494ecc24c4 100644 (file)
@@ -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];
 
index 4effc584160824c730d018e8af66cf699eb97bfb..c042830cb18d5e9a2c031faf7894da59e718b0fe 100644 (file)
@@ -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