Redirect FIPS memory allocation to FIPS_malloc() routine, remove
[openssl.git] / crypto / bn / bn_rand.c
index b376c28..070b1e4 100644 (file)
 #include "bn_lcl.h"
 #include <openssl/rand.h>
 
+#define OPENSSL_FIPSAPI
+#ifdef OPENSSL_FIPS
+#include <openssl/fips.h>
+#endif
+
 static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom)
        {
        unsigned char *buf=NULL;