mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 19:54:40 +02:00
Remove dead code in TLSX_PopulateExtensions() around MAX_PSK_ID_LEN check
This commit is contained in:
@@ -13781,11 +13781,6 @@ int TLSX_PopulateExtensions(WOLFSSL* ssl, byte isServer)
|
|||||||
word64 now, milli;
|
word64 now, milli;
|
||||||
#endif
|
#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. */
|
/* Determine the MAC algorithm for the cipher suite used. */
|
||||||
ssl->options.cipherSuite0 = sess->cipherSuite0;
|
ssl->options.cipherSuite0 = sess->cipherSuite0;
|
||||||
ssl->options.cipherSuite = sess->cipherSuite;
|
ssl->options.cipherSuite = sess->cipherSuite;
|
||||||
|
Reference in New Issue
Block a user