Merge pull request #7057 from kaleb-himes/fix-fips-140-3-pr-failure

Address fips 140-3 failures with wolfEngine support enabled
This commit is contained in:
David Garske
2023-12-12 16:15:40 -08:00
committed by GitHub

View File

@ -297,7 +297,11 @@
#if FIPS_VERSION_LT(2,0)
#define WC_RNG RNG
#else
#ifndef NO_OLD_RNGNAME
/* RNG needs to be defined to WC_RNG anytime another library on the
* system or other set of headers included by wolfSSL already defines
* RNG. Examples are:
* wolfEngine, wolfProvider and potentially other use-cases */
#ifndef RNG
#define RNG WC_RNG
#endif
#endif