Skip to content

Commit 8718299

Browse files
committed
Fix for PSK compile option
The derivation of the ResumptionSecret is only necessary in case SessionTickets are enabled.
1 parent 80c1228 commit 8718299

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tls13.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11384,7 +11384,7 @@ static int SendTls13Finished(WOLFSSL* ssl)
1138411384
if ((ret = SetKeysSide(ssl, ENCRYPT_SIDE_ONLY)) != 0)
1138511385
return ret;
1138611386

11387-
#if defined(HAVE_SESSION_TICKET) || !defined(NO_PSK)
11387+
#if defined(HAVE_SESSION_TICKET)
1138811388
ret = DeriveResumptionSecret(ssl, ssl->session->masterSecret);
1138911389
if (ret != 0)
1139011390
return ret;
@@ -13086,7 +13086,7 @@ int DoTls13HandShakeMsgType(WOLFSSL* ssl, byte* input, word32* inOutIdx,
1308613086
#endif /* NO_WOLFSSL_CLIENT */
1308713087

1308813088
#ifndef NO_WOLFSSL_SERVER
13089-
#if defined(HAVE_SESSION_TICKET) || !defined(NO_PSK)
13089+
#if defined(HAVE_SESSION_TICKET)
1309013090
if (ssl->options.side == WOLFSSL_SERVER_END && type == finished) {
1309113091
ret = DeriveResumptionSecret(ssl, ssl->session->masterSecret);
1309213092
if (ret != 0)

0 commit comments

Comments
 (0)