Skip to content

Commit

Permalink
Remove dead code in TLSX_PopulateExtensions() around MAX_PSK_ID_LEN c…
Browse files Browse the repository at this point in the history
…heck
  • Loading branch information
cconlon committed Dec 20, 2024
1 parent 00f83fa commit f68f99b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -13781,11 +13781,6 @@ int TLSX_PopulateExtensions(WOLFSSL* ssl, byte isServer)
word64 now, milli;
#endif

if (isServer && (sess->ticketLen > MAX_PSK_ID_LEN)) {
WOLFSSL_MSG("Session ticket length for PSK ext is too large");
return BUFFER_ERROR;
}

/* Determine the MAC algorithm for the cipher suite used. */
ssl->options.cipherSuite0 = sess->cipherSuite0;
ssl->options.cipherSuite = sess->cipherSuite;
Expand Down

0 comments on commit f68f99b

Please sign in to comment.