diff options
author | Frederik Wedel-Heinen <frederik.wedel-heinen@dencrypt.dk> | 2024-02-16 11:44:01 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-02-20 11:07:01 +0100 |
commit | 709637c8764e153f77c1d55d00b37fb08634aca9 (patch) | |
tree | 8d7b6dd20541aad35fa2b41edc01ba302bb7b7ed | |
parent | 5e5c256bbad572cf8d8d9ef9127722ca028d2704 (diff) | |
download | openssl-709637c8764e153f77c1d55d00b37fb08634aca9.tar.gz |
Future proof RLAYER_USE_EXPLICIT_IV by checking dtls versions directly.
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23611)
-rw-r--r-- | ssl/record/methods/recmethod_local.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ssl/record/methods/recmethod_local.h b/ssl/record/methods/recmethod_local.h index 5c4550bb82..1267f81385 100644 --- a/ssl/record/methods/recmethod_local.h +++ b/ssl/record/methods/recmethod_local.h @@ -395,7 +395,9 @@ void ossl_rlayer_fatal(OSSL_RECORD_LAYER *rl, int al, int reason, #define RLAYER_USE_EXPLICIT_IV(rl) ((rl)->version == TLS1_1_VERSION \ || (rl)->version == TLS1_2_VERSION \ - || (rl)->isdtls) + || (rl)->version == DTLS1_BAD_VER \ + || (rl)->version == DTLS1_VERSION \ + || (rl)->version == DTLS1_2_VERSION) void ossl_tls_rl_record_set_seq_num(TLS_RL_RECORD *r, const unsigned char *seq_num); |