Skip to content

Commit ce61f0d

Browse files
account for Intel RDRAND build without HAVE_HASHDRBG
1 parent 05ff129 commit ce61f0d

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
@@ -26110,6 +26110,10 @@ int wolfSSL_RAND_poll(void)
2611026110
ret = WOLFSSL_SUCCESS;
2611126111
}
2611226112
wc_UnLockMutex(&globalRNGMutex);
26113+
#elif defined(HAVE_INTEL_RDRAND)
26114+
WOLFSSL_MSG("Not polling with RAND_poll, RDRAND used without "
26115+
"HAVE_HASHDRBG");
26116+
ret = WOLFSSL_SUCCESS;
2611326117
#else
2611426118
WOLFSSL_MSG("RAND_poll called with HAVE_HASHDRBG not set");
2611526119
ret = WOLFSSL_FAILURE;

0 commit comments

Comments
 (0)