Set rand method in FIPS_mode_set() not in rand library.

This commit is contained in:
Dr. Stephen Henson
2011-06-13 21:18:00 +00:00
parent 0ede2af7a0
commit b0b3d09063
2 changed files with 10 additions and 13 deletions

View File

@@ -111,18 +111,6 @@ const RAND_METHOD *RAND_get_rand_method(void)
if(e)
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();
}