diff options
author | Matt Caswell <matt@openssl.org> | 2022-10-17 12:28:07 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2022-10-20 14:39:33 +0100 |
commit | bed07b187506ded20ef39dcbed56dc323ae44ff4 (patch) | |
tree | ac529759452c5c988d8f42f667a4c359c9491ac8 /ssl/record/methods/recmethod_local.h | |
parent | 4f428e86d8bc68f95446eef96129c6ad98b57104 (diff) | |
download | openssl-new-bed07b187506ded20ef39dcbed56dc323ae44ff4.tar.gz |
Consolidate sequence counter incrementing code
The sequence counter was incremented in numerous different ways in
numerous different locations. We introduce a single function to do this
inside the record layer.
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/record/methods/recmethod_local.h')
-rw-r--r-- | ssl/record/methods/recmethod_local.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ssl/record/methods/recmethod_local.h b/ssl/record/methods/recmethod_local.h index 2ee6c2e753..e1267500cf 100644 --- a/ssl/record/methods/recmethod_local.h +++ b/ssl/record/methods/recmethod_local.h @@ -344,6 +344,8 @@ __owur int ssl3_cbc_digest_record(const EVP_MD *md, const unsigned char *mac_secret, size_t mac_secret_length, char is_sslv3); +int tls_increment_sequence_ctr(OSSL_RECORD_LAYER *rl); + int tls_default_read_n(OSSL_RECORD_LAYER *rl, size_t n, size_t max, int extend, int clearold, size_t *readbytes); int tls_get_more_records(OSSL_RECORD_LAYER *rl); |