From b84e44186131ec32cc69e6ba7f6c391ef3e6a507 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 11 Nov 2008 12:52:14 +0000 Subject: [PATCH] Don't attempt to enter FIPS mode in autoconfig module if already in FIPS mode. --- crypto/evp/evp_cnf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/evp/evp_cnf.c b/crypto/evp/evp_cnf.c index e9004de0eb..2e4db30235 100644 --- a/crypto/evp/evp_cnf.c +++ b/crypto/evp/evp_cnf.c @@ -97,7 +97,7 @@ static int alg_module_init(CONF_IMODULE *md, const CONF *cnf) if (m > 0) { #ifdef OPENSSL_FIPS - if (!FIPS_mode_set(1)) + if (!FIPS_mode() && !FIPS_mode_set(1)) { EVPerr(EVP_F_ALG_MODULE_INIT, EVP_R_ERROR_SETTING_FIPS_MODE); return 0; -- 2.25.1