mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +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 ||
|
if (diff > (int)ssl->timeout * 1000 || diff < -1000 ||
|
||||||
diff - MAX_TICKET_AGE_SECS * 1000 > 1000) {
|
diff - MAX_TICKET_AGE_SECS * 1000 > 1000) {
|
||||||
/* Invalid difference, fallback to full handshake. */
|
current = current->next;
|
||||||
ssl->options.resuming = 0;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef WOLFSSL_PSK_ONE_ID
|
#ifndef WOLFSSL_PSK_ONE_ID
|
||||||
|
Reference in New Issue
Block a user