mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
TLS13: Skip if expired rather than turning off resuming
This commit is contained in:
@@ -4003,8 +4003,8 @@ static int DoPreSharedKeys(WOLFSSL* ssl, byte* suite, int* usingPSK, int* first)
|
||||
*/
|
||||
if (diff > (int)ssl->timeout * 1000 || diff < -1000 ||
|
||||
diff - MAX_TICKET_AGE_SECS * 1000 > 1000) {
|
||||
/* Invalid difference, fallback to full handshake. */
|
||||
ssl->options.resuming = 0;
|
||||
current = current->next;
|
||||
continue;
|
||||
}
|
||||
|
||||
#ifndef WOLFSSL_PSK_ONE_ID
|
||||
|
Reference in New Issue
Block a user