mirror of
https://github.com/openssl/openssl.git
synced 2024-12-01 05:55:11 +08:00
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)
This commit is contained in:
parent
5e5c256bba
commit
709637c876
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user