diff options
author | Matt Caswell <matt@openssl.org> | 2022-05-24 16:00:50 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2022-08-18 16:38:12 +0100 |
commit | 0755722c28309a52f29573221e411a2b37175e37 (patch) | |
tree | b48bcb87cf60302581e5025e1f6162caa27f25c7 /ssl/record/methods/ssl3_meth.c | |
parent | ffbd6e67874475e025e942e0ee9f51badfea42b5 (diff) |
Move the sequence number into the OSSL_RECORD_LAYER object
This removes some references to the SSL object from the record layer.
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18132)
Diffstat (limited to 'ssl/record/methods/ssl3_meth.c')
-rw-r--r-- | ssl/record/methods/ssl3_meth.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ssl/record/methods/ssl3_meth.c b/ssl/record/methods/ssl3_meth.c index a2761de96a..7e8219a094 100644 --- a/ssl/record/methods/ssl3_meth.c +++ b/ssl/record/methods/ssl3_meth.c @@ -215,7 +215,7 @@ static const unsigned char ssl3_pad_2[48] = { static int ssl3_mac(OSSL_RECORD_LAYER *rl, SSL3_RECORD *rec, unsigned char *md, int sending, SSL_CONNECTION *ssl) { - unsigned char *mac_sec, *seq; + unsigned char *mac_sec, *seq = rl->sequence; const EVP_MD_CTX *hash; unsigned char *p, rec_char; size_t md_size; @@ -224,11 +224,9 @@ static int ssl3_mac(OSSL_RECORD_LAYER *rl, SSL3_RECORD *rec, unsigned char *md, if (sending) { mac_sec = &(ssl->s3.write_mac_secret[0]); - seq = RECORD_LAYER_get_write_sequence(&ssl->rlayer); hash = ssl->write_hash; } else { mac_sec = &(rl->mac_secret[0]); - seq = RECORD_LAYER_get_read_sequence(&ssl->rlayer); hash = rl->read_hash; } |