forked from wolfSSL/wolfssl
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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user