Merge pull request #8883 from JacobBarthelmeh/rng

account for Intel RDRAND build without HAVE_HASHDRBG
pull/8890/head
David Garske 2025-06-17 11:33:16 -07:00 committed by GitHub
commit 6b68797b4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -26116,6 +26116,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;