aboutsummaryrefslogtreecommitdiff
path: root/crypto/bn/bn_ctx.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-01-27 17:23:43 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-01-27 17:23:43 +0000
commit7cc684f4f7fbcdc5cf4683eaf025d4f915acbf3c (patch)
tree239b582a272e88cb8a3a8e9fad8806380128a2ed /crypto/bn/bn_ctx.c
parente36d6b8f7985739a493da0932bd08c9787c84dfc (diff)
downloadopenssl-7cc684f4f7fbcdc5cf4683eaf025d4f915acbf3c.zip
openssl-7cc684f4f7fbcdc5cf4683eaf025d4f915acbf3c.tar.gz
openssl-7cc684f4f7fbcdc5cf4683eaf025d4f915acbf3c.tar.bz2
Redirect FIPS memory allocation to FIPS_malloc() routine, remove
OpenSSL malloc dependencies.
Diffstat (limited to 'crypto/bn/bn_ctx.c')
-rw-r--r--crypto/bn/bn_ctx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/bn/bn_ctx.c b/crypto/bn/bn_ctx.c
index 3f2256f..f16fb35 100644
--- a/crypto/bn/bn_ctx.c
+++ b/crypto/bn/bn_ctx.c
@@ -60,12 +60,18 @@
#endif
#endif
+#define OPENSSL_FIPSAPI
+
#include <stdio.h>
#include <assert.h>
#include "cryptlib.h"
#include "bn_lcl.h"
+#ifdef OPENSSL_FIPS
+#include <openssl/fips.h>
+#endif
+
/* TODO list
*
* 1. Check a bunch of "(words+1)" type hacks in various bignum functions and