TLS 1.3 PSK: fix for session ticket timeout

Return straightaway if the ticket is out of date.
Need to fallback to full handshake.
This commit is contained in:
Sean Parkinson
2020-10-16 14:16:13 +10:00
parent 134e1be189
commit 07e69829d7

View File

@@ -3369,7 +3369,8 @@ static int DoPreSharedKeys(WOLFSSL* ssl, const byte* input, word32 helloSz,
diff - MAX_TICKET_AGE_SECS * 1000 > 1000) {
/* Invalid difference, fallback to full handshake. */
ssl->options.resuming = 0;
break;
/* Hash the rest of the ClientHello. */
return HashRaw(ssl, input + helloSz - bindersLen, bindersLen);
}
/* Check whether resumption is possible based on suites in SSL and