summaryrefslogtreecommitdiffstats
path: root/crypto/rand
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-06-13 21:18:00 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-06-13 21:18:00 +0000
commitb0b3d09063275680d9ad78568660d6c4357d61d6 (patch)
tree224e626ad4dd0a3f3afc5909785ecbfc22ada418 /crypto/rand
parent0ede2af7a0d7f3c9a43f50c529ad9aae480150fb (diff)
Set rand method in FIPS_mode_set() not in rand library.
Diffstat (limited to 'crypto/rand')
-rw-r--r--crypto/rand/rand_lib.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c
index 187fe1ef09..9f26683b38 100644
--- a/crypto/rand/rand_lib.c
+++ b/crypto/rand/rand_lib.c
@@ -112,18 +112,6 @@ const RAND_METHOD *RAND_get_rand_method(void)
funct_ref = e;
else
#endif
-#ifdef OPENSSL_FIPS
- if (FIPS_mode())
- {
- default_RAND_meth = FIPS_rand_get_method();
- if (default_RAND_meth == NULL)
- {
- RANDerr(RAND_F_RAND_GET_RAND_METHOD,
- RAND_R_NO_FIPS_RANDOM_METHOD_SET);
- }
- }
- else
-#endif
default_RAND_meth = RAND_SSLeay();
}
return default_RAND_meth;