TLS 1.3: Don't add a session without a ticket

TLS 1.3 doesn't support resumption with PSK (session ticket or with the
PSK callback).
This commit is contained in:
Sean Parkinson
2020-12-14 14:03:31 +10:00
parent 0e9926bd83
commit fb5b415e83

View File

@ -6058,12 +6058,6 @@ static int SendTls13Finished(WOLFSSL* ssl)
if (sendSz < 0)
return BUILD_MSG_ERROR;
#ifndef NO_SESSION_CACHE
if (!ssl->options.resuming) {
AddSession(ssl); /* just try */
}
#endif
#ifdef WOLFSSL_CALLBACKS
if (ssl->hsInfoOn) AddPacketName(ssl, "Finished");
if (ssl->toInfoOn) {