From b2caa5c5aee52fcd69722319016c5d0b10a8a264 Mon Sep 17 00:00:00 2001 From: kaleb-himes Date: Thu, 16 Feb 2023 14:40:43 -0700 Subject: [PATCH] Fix invalid PP macro logic, guard under same conditions as internal.h --- src/ssl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ssl.c b/src/ssl.c index 384267d8a..1c3b2451d 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -19854,7 +19854,9 @@ size_t wolfSSL_get_client_random(const WOLFSSL* ssl, unsigned char* out, ssl->options.tls1_1 = 0; #if defined(HAVE_SESSION_TICKET) || !defined(NO_PSK) ssl->options.noPskDheKe = 0; + #ifdef HAVE_SUPPORTED_CURVES ssl->options.onlyPskDheKe = 0; + #endif #endif #ifdef HAVE_SESSION_TICKET #ifdef WOLFSSL_TLS13