Skip to content

Commit

Permalink
Merge pull request #8308 from cconlon/sessTickLenCheck
Browse files Browse the repository at this point in the history
Remove dead code in TLSX_PopulateExtensions() around MAX_PSK_ID_LEN check
  • Loading branch information
douzzer authored Dec 20, 2024
2 parents 67f3343 + f68f99b commit afc7e0e
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 afc7e0e

Please sign in to comment.