Skip to content

Commit 6b68797

Browse files
authored
Merge pull request #8883 from JacobBarthelmeh/rng
account for Intel RDRAND build without HAVE_HASHDRBG
2 parents 7e864c1 + ce61f0d commit 6b68797

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/ssl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26116,6 +26116,10 @@ int wolfSSL_RAND_poll(void)
2611626116
ret = WOLFSSL_SUCCESS;
2611726117
}
2611826118
wc_UnLockMutex(&globalRNGMutex);
26119+
#elif defined(HAVE_INTEL_RDRAND)
26120+
WOLFSSL_MSG("Not polling with RAND_poll, RDRAND used without "
26121+
"HAVE_HASHDRBG");
26122+
ret = WOLFSSL_SUCCESS;
2611926123
#else
2612026124
WOLFSSL_MSG("RAND_poll called with HAVE_HASHDRBG not set");
2612126125
ret = WOLFSSL_FAILURE;

0 commit comments

Comments
 (0)