From 7cc684f4f7fbcdc5cf4683eaf025d4f915acbf3c Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Thu, 27 Jan 2011 17:23:43 +0000 Subject: Redirect FIPS memory allocation to FIPS_malloc() routine, remove OpenSSL malloc dependencies. --- crypto/bn/bn_rand.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crypto/bn/bn_rand.c') diff --git a/crypto/bn/bn_rand.c b/crypto/bn/bn_rand.c index b376c28ff3..070b1e4ed2 100644 --- a/crypto/bn/bn_rand.c +++ b/crypto/bn/bn_rand.c @@ -115,6 +115,11 @@ #include "bn_lcl.h" #include +#define OPENSSL_FIPSAPI +#ifdef OPENSSL_FIPS +#include +#endif + static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom) { unsigned char *buf=NULL; -- cgit v1.2.3