Redirect FIPS memory allocation to FIPS_malloc() routine, remove
[openssl.git] / crypto / bn / bn_rand.c
index b376c28ff3ff25b027922964af6ca26b4995250a..070b1e4ed2868a9d11ea84222e84a64a470134cf 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;