Skip to content

Commit

Permalink
Future proof RLAYER_USE_EXPLICIT_IV by checking dtls versions directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
fwh-dc committed Feb 16, 2024
1 parent d597b46 commit a505c8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ssl/record/methods/recmethod_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ 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_VERSION \
|| (rl)->version == DTLS1_2_VERSION)

void ossl_tls_rl_record_set_seq_num(TLS_RL_RECORD *r,
const unsigned char *seq_num);
Expand Down

0 comments on commit a505c8f

Please sign in to comment.