diff --git a/wolfssl/wolfcrypt/random.h b/wolfssl/wolfcrypt/random.h index 2c475c5800..a133503ac7 100644 --- a/wolfssl/wolfcrypt/random.h +++ b/wolfssl/wolfcrypt/random.h @@ -171,7 +171,8 @@ #undef WC_RNG_WANT_BANKREF_SUPPORT #endif #ifdef WC_RNG_WANT_BANKREF_SUPPORT - #ifdef HAVE_FIPS + #if defined(HAVE_FIPS) && \ + !defined(WOLFSSL_FIPS_DEV) && !defined(WOLFSSL_EXPERIMENTAL_SETTINGS) #error HAVE_FIPS is incompatible with WC_RNG_WANT_BANKREF_SUPPORT. #endif #ifndef HAVE_WC_RNG_BANK