Commit b84e4418 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

Don't attempt to enter FIPS mode in autoconfig module if already in FIPS mode.

parent 08e012bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;