diff options
author | Matt Caswell <matt@openssl.org> | 2022-10-17 16:33:40 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2022-10-20 14:39:33 +0100 |
commit | b92fc4ae189fb0d5b0a2f34bc28e59cd7e1eed5a (patch) | |
tree | f5e0121ac2d8632d316b7e780dc3ce4996c2961d /ssl/statem | |
parent | e158ada6a74e5903354fdd5a6f56a32bbbba69fd (diff) |
Remove some redundant code
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19424)
Diffstat (limited to 'ssl/statem')
-rw-r--r-- | ssl/statem/statem_clnt.c | 2 | ||||
-rw-r--r-- | ssl/statem/statem_lib.c | 2 | ||||
-rw-r--r-- | ssl/statem/statem_srvr.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/ssl/statem/statem_clnt.c b/ssl/statem/statem_clnt.c index b3f4300434..ac4fb4e00d 100644 --- a/ssl/statem/statem_clnt.c +++ b/ssl/statem/statem_clnt.c @@ -865,7 +865,7 @@ WORK_STATE ossl_statem_client_post_work(SSL_CONNECTION *s, WORK_STATE wst) } #endif - dtls1_reset_seq_numbers(s, SSL3_CC_WRITE); + dtls1_increment_epoch(s, SSL3_CC_WRITE); } break; diff --git a/ssl/statem/statem_lib.c b/ssl/statem/statem_lib.c index b37633e37f..1634dd8594 100644 --- a/ssl/statem/statem_lib.c +++ b/ssl/statem/statem_lib.c @@ -762,7 +762,7 @@ MSG_PROCESS_RETURN tls_process_change_cipher_spec(SSL_CONNECTION *s, } if (SSL_CONNECTION_IS_DTLS(s)) { - dtls1_reset_seq_numbers(s, SSL3_CC_READ); + dtls1_increment_epoch(s, SSL3_CC_READ); if (s->version == DTLS1_BAD_VER) s->d1->handshake_read_seq++; diff --git a/ssl/statem/statem_srvr.c b/ssl/statem/statem_srvr.c index 4f98eb12ad..75f71fbd81 100644 --- a/ssl/statem/statem_srvr.c +++ b/ssl/statem/statem_srvr.c @@ -980,7 +980,7 @@ WORK_STATE ossl_statem_server_post_work(SSL_CONNECTION *s, WORK_STATE wst) } if (SSL_CONNECTION_IS_DTLS(s)) - dtls1_reset_seq_numbers(s, SSL3_CC_WRITE); + dtls1_increment_epoch(s, SSL3_CC_WRITE); break; case TLS_ST_SW_SRVR_DONE: |