mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-27 03:12:21 +01:00
Merge pull request #9611 from Frauschi/psk_compile_fix
Fix for PSK compile option
This commit is contained in:
@@ -11396,7 +11396,7 @@ static int SendTls13Finished(WOLFSSL* ssl)
|
||||
if ((ret = SetKeysSide(ssl, ENCRYPT_SIDE_ONLY)) != 0)
|
||||
return ret;
|
||||
|
||||
#if defined(HAVE_SESSION_TICKET) || !defined(NO_PSK)
|
||||
#if defined(HAVE_SESSION_TICKET)
|
||||
ret = DeriveResumptionSecret(ssl, ssl->session->masterSecret);
|
||||
if (ret != 0)
|
||||
return ret;
|
||||
@@ -13098,7 +13098,7 @@ int DoTls13HandShakeMsgType(WOLFSSL* ssl, byte* input, word32* inOutIdx,
|
||||
#endif /* NO_WOLFSSL_CLIENT */
|
||||
|
||||
#ifndef NO_WOLFSSL_SERVER
|
||||
#if defined(HAVE_SESSION_TICKET) || !defined(NO_PSK)
|
||||
#if defined(HAVE_SESSION_TICKET)
|
||||
if (ssl->options.side == WOLFSSL_SERVER_END && type == finished) {
|
||||
ret = DeriveResumptionSecret(ssl, ssl->session->masterSecret);
|
||||
if (ret != 0)
|
||||
|
||||
Reference in New Issue
Block a user