From ce61f0d5174ed85410a746fe7336f9af9a61d1c2 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Mon, 16 Jun 2025 09:04:50 -0600 Subject: [PATCH] account for Intel RDRAND build without HAVE_HASHDRBG --- src/ssl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ssl.c b/src/ssl.c index 80589ad5c..12134d163 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -26110,6 +26110,10 @@ int wolfSSL_RAND_poll(void) ret = WOLFSSL_SUCCESS; } wc_UnLockMutex(&globalRNGMutex); +#elif defined(HAVE_INTEL_RDRAND) + WOLFSSL_MSG("Not polling with RAND_poll, RDRAND used without " + "HAVE_HASHDRBG"); + ret = WOLFSSL_SUCCESS; #else WOLFSSL_MSG("RAND_poll called with HAVE_HASHDRBG not set"); ret = WOLFSSL_FAILURE;