Skip to content

Commit 3b75a41

Browse files
authored
Merge pull request #7057 from kaleb-himes/fix-fips-140-3-pr-failure
Address fips 140-3 failures with wolfEngine support enabled
2 parents ce74a34 + ca5adfa commit 3b75a41

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

wolfssl/wolfcrypt/settings.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,11 @@
297297
#if FIPS_VERSION_LT(2,0)
298298
#define WC_RNG RNG
299299
#else
300-
#ifndef NO_OLD_RNGNAME
300+
/* RNG needs to be defined to WC_RNG anytime another library on the
301+
* system or other set of headers included by wolfSSL already defines
302+
* RNG. Examples are:
303+
* wolfEngine, wolfProvider and potentially other use-cases */
304+
#ifndef RNG
301305
#define RNG WC_RNG
302306
#endif
303307
#endif

0 commit comments

Comments
 (0)