Skip to content

Commit fe7d458

Browse files
random.c is also locked in FIPS v6
1 parent b8aa4bd commit fe7d458

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/ssl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25515,7 +25515,7 @@ static int wolfSSL_RAND_InitMutex(void)
2551525515
#ifdef OPENSSL_EXTRA
2551625516

2551725517
#if defined(HAVE_GETPID) && !defined(WOLFSSL_NO_GETPID) && \
25518-
((defined(HAVE_FIPS) && FIPS_VERSION3_LT(6,0,0)) || defined(HAVE_SELFTEST))
25518+
((defined(HAVE_FIPS) && FIPS_VERSION3_LE(6,0,0)) || defined(HAVE_SELFTEST))
2551925519
/* In older FIPS bundles add check for reseed here since it does not exist in
2552025520
* the older random.c certified files. */
2552125521
static pid_t currentRandPid = 0;
@@ -25534,7 +25534,7 @@ int wolfSSL_RAND_Init(void)
2553425534
ret = wc_InitRng(&globalRNG);
2553525535
if (ret == 0) {
2553625536
#if defined(HAVE_GETPID) && !defined(WOLFSSL_NO_GETPID) && \
25537-
((defined(HAVE_FIPS) && FIPS_VERSION3_LT(6,0,0)) || \
25537+
((defined(HAVE_FIPS) && FIPS_VERSION3_LE(6,0,0)) || \
2553825538
defined(HAVE_SELFTEST))
2553925539

2554025540
currentRandPid = getpid();
@@ -26017,7 +26017,7 @@ int wolfSSL_RAND_bytes(unsigned char* buf, int num)
2601726017
*/
2601826018
if (initGlobalRNG) {
2601926019
#if defined(HAVE_GETPID) && !defined(WOLFSSL_NO_GETPID) && \
26020-
((defined(HAVE_FIPS) && FIPS_VERSION3_LT(6,0,0)) || \
26020+
((defined(HAVE_FIPS) && FIPS_VERSION3_LE(6,0,0)) || \
2602126021
defined(HAVE_SELFTEST))
2602226022
pid_t p;
2602326023

0 commit comments

Comments
 (0)