@@ -25500,7 +25500,8 @@ static int wolfSSL_RAND_InitMutex(void)
2550025500
2550125501#ifdef OPENSSL_EXTRA
2550225502
25503- #if defined(HAVE_GETPID) && defined(HAVE_FIPS) && FIPS_VERSION3_LT(6,0,0)
25503+ #if defined(HAVE_GETPID) && !defined(WOLFSSL_NO_GETPID) && \
25504+ defined(HAVE_FIPS) && FIPS_VERSION3_LT(6,0,0)
2550425505/* In older FIPS bundles add check for reseed here since it does not exist in
2550525506 * the older random.c certified files. */
2550625507static pid_t currentRandPid = 0;
@@ -25518,8 +25519,8 @@ int wolfSSL_RAND_Init(void)
2551825519 if (initGlobalRNG == 0) {
2551925520 ret = wc_InitRng(&globalRNG);
2552025521 if (ret == 0) {
25521- #if defined(HAVE_GETPID) && defined(HAVE_FIPS ) && \
25522- FIPS_VERSION3_LT(6,0,0)
25522+ #if defined(HAVE_GETPID) && ! defined(WOLFSSL_NO_GETPID ) && \
25523+ defined(HAVE_FIPS) && FIPS_VERSION3_LT(6,0,0)
2552325524 currentRandPid = getpid();
2552425525 #endif
2552525526 initGlobalRNG = 1;
@@ -25999,8 +26000,8 @@ int wolfSSL_RAND_bytes(unsigned char* buf, int num)
2599926000 * have the lock.
2600026001 */
2600126002 if (initGlobalRNG) {
26002- #if defined(HAVE_GETPID) && defined(HAVE_FIPS ) && \
26003- FIPS_VERSION3_LT(6,0,0)
26003+ #if defined(HAVE_GETPID) && ! defined(WOLFSSL_NO_GETPID ) && \
26004+ defined(HAVE_FIPS) && FIPS_VERSION3_LT(6,0,0)
2600426005 pid_t p;
2600526006
2600626007 p = getpid();
0 commit comments