Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! Refactor code…
Browse files Browse the repository at this point in the history
… and fix a couple of missing DTLSv1.3 checks.
  • Loading branch information
fwh-dc committed May 21, 2024
1 parent 70b1946 commit 1816fab
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ssl/statem/extensions_clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,6 @@ EXT_RETURN tls_construct_ctos_early_data(SSL_CONNECTION *s, WPACKET *pkt,
SSL *ssl = SSL_CONNECTION_GET_SSL(s);
const int version1_3 = SSL_CONNECTION_IS_DTLS(s) ? DTLS1_3_VERSION : TLS1_3_VERSION;


if (s->hello_retry_request == SSL_HRR_PENDING)
handmd = ssl_handshake_md(s);

Expand Down Expand Up @@ -824,8 +823,6 @@ EXT_RETURN tls_construct_ctos_early_data(SSL_CONNECTION *s, WPACKET *pkt,
} else if (psklen > 0) {
const unsigned char tls13_aes128gcmsha256_id[] = { 0x13, 0x01 };
const SSL_CIPHER *cipher;
const int version1_3 = SSL_CONNECTION_IS_DTLS(s) ? DTLS1_3_VERSION
: TLS1_3_VERSION;

idlen = strlen(identity);
if (idlen > PSK_MAX_IDENTITY_LEN) {
Expand Down

0 comments on commit 1816fab

Please sign in to comment.