summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-01-27 15:57:31 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-01-27 15:57:31 +0000
commitaa87945f47ea8fcfc327372b143d334cd5850cb0 (patch)
tree22755248f0f7db491166b10d24e88e6c426b1913 /crypto
parent7c8ced94c32131f24d469d2899f3339f77c47aa1 (diff)
Update source files to handle new FIPS_lock() location. Add FIPS_lock()
definition. Remove stale function references from fips.h
Diffstat (limited to 'crypto')
-rw-r--r--crypto/bn/bn_mont.c4
-rw-r--r--crypto/rand/md_rand.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/crypto/bn/bn_mont.c b/crypto/bn/bn_mont.c
index 2f7fb843a9..ba659cfd1d 100644
--- a/crypto/bn/bn_mont.c
+++ b/crypto/bn/bn_mont.c
@@ -122,6 +122,10 @@
#include "cryptlib.h"
#include "bn_lcl.h"
+#ifdef OPENSSL_FIPS
+#include <openssl/fips.h>
+#endif
+
#define MONT_WORD /* use the faster word-based algorithm */
#ifdef MONT_WORD
diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c
index 87d4bfb75d..b17ad5203d 100644
--- a/crypto/rand/md_rand.c
+++ b/crypto/rand/md_rand.c
@@ -129,6 +129,10 @@
#include <openssl/crypto.h>
#include <openssl/err.h>
+#ifdef OPENSSL_FIPS
+#include <openssl/fips.h>
+#endif
+
#ifdef BN_DEBUG
# define PREDICT
#endif