From: Dr. Stephen Henson Date: Tue, 21 Jun 2011 17:08:25 +0000 (+0000) Subject: Don't set FIPS rand method at same time as RAND method as this can cause X-Git-Tag: OpenSSL_1_0_1-beta1~226 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c24367ebb90ab206e6ca8665a7580958dbced272;p=oweals%2Fopenssl.git Don't set FIPS rand method at same time as RAND method as this can cause the FIPS library to fail. Applications that want to set the FIPS rand method can do so explicitly and presumably they know what they are doing... --- diff --git a/crypto/rand/rand_lib.c b/crypto/rand/rand_lib.c index 9f26683b38..653896b4b7 100644 --- a/crypto/rand/rand_lib.c +++ b/crypto/rand/rand_lib.c @@ -78,10 +78,6 @@ static const RAND_METHOD *default_RAND_meth = NULL; int RAND_set_rand_method(const RAND_METHOD *meth) { -#ifdef OPENSSL_FIPS - if (!FIPS_rand_set_method(meth)) - return 0; -#endif #ifndef OPENSSL_NO_ENGINE if(funct_ref) {