openssl: Only warn about unavailable FIPS mode if the user requested it

This commit is contained in:
Tobias Brunner 2013-05-08 15:23:14 +02:00
parent c1f1df4b40
commit bd538e8c4a

View File

@ -528,9 +528,9 @@ plugin_t *openssl_plugin_create()
DBG1(DBG_LIB, "openssl FIPS mode(%d) - %sabled ",fips_mode,
fips_mode ? "en" : "dis");
#else
DBG1(DBG_LIB, "openssl FIPS mode(%d) unavailable", fips_mode);
if (fips_mode)
{
DBG1(DBG_LIB, "openssl FIPS mode(%d) unavailable", fips_mode);
return NULL;
}
#endif