summaryrefslogtreecommitdiffstats
path: root/crypto/rand/rand_lib.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-01-26 14:52:04 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-01-26 14:52:04 +0000
commit4ead4e5241bd08989f9d6305ff21f9da0614f955 (patch)
tree7ab5cd279985cae9e80ebd564c2b996f86379d43 /crypto/rand/rand_lib.c
parent1ab2f7f1cb6c9fa2747c39e60b5fe7e8ba15acef (diff)
FIPS mode changes to make RNG compile (this will need updating later as we
need a whole new PRNG for FIPS). 1. avoid use of ERR_peek(). 2. If compiling with FIPS use small FIPS EVP and disable ENGINE
Diffstat (limited to 'crypto/rand/rand_lib.c')
-rw-r--r--crypto/rand/rand_lib.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c
index 513e338985..3cf9ed5050 100644
--- a/crypto/rand/rand_lib.c
+++ b/crypto/rand/rand_lib.c
@@ -60,6 +60,12 @@
#include <time.h>
#include "cryptlib.h"
#include <openssl/rand.h>
+
+#ifdef OPENSSL_FIPSCANISTER
+#define OPENSSL_NO_ENGINE
+#include <openssl/fips.h>
+#endif
+
#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
#endif