Skip to content

Commit b609fe2

Browse files
authored
Merge pull request #9611 from Frauschi/psk_compile_fix
Fix for PSK compile option
2 parents 97d9bfc + 8718299 commit b609fe2

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
@@ -11396,7 +11396,7 @@ static int SendTls13Finished(WOLFSSL* ssl)
1139611396
if ((ret = SetKeysSide(ssl, ENCRYPT_SIDE_ONLY)) != 0)
1139711397
return ret;
1139811398

11399-
#if defined(HAVE_SESSION_TICKET) || !defined(NO_PSK)
11399+
#if defined(HAVE_SESSION_TICKET)
1140011400
ret = DeriveResumptionSecret(ssl, ssl->session->masterSecret);
1140111401
if (ret != 0)
1140211402
return ret;
@@ -13098,7 +13098,7 @@ int DoTls13HandShakeMsgType(WOLFSSL* ssl, byte* input, word32* inOutIdx,
1309813098
#endif /* NO_WOLFSSL_CLIENT */
1309913099

1310013100
#ifndef NO_WOLFSSL_SERVER
13101-
#if defined(HAVE_SESSION_TICKET) || !defined(NO_PSK)
13101+
#if defined(HAVE_SESSION_TICKET)
1310213102
if (ssl->options.side == WOLFSSL_SERVER_END && type == finished) {
1310313103
ret = DeriveResumptionSecret(ssl, ssl->session->masterSecret);
1310413104
if (ret != 0)

0 commit comments

Comments
 (0)