From fb5b415e83dbe0d382d349ce9dd0fcb4f8911b6c Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Mon, 14 Dec 2020 14:03:31 +1000 Subject: [PATCH] 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). --- src/tls13.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/tls13.c b/src/tls13.c index 785836ad1..0280a1ac2 100644 --- a/src/tls13.c +++ b/src/tls13.c @@ -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) {