diff --git a/src/crypto/crypto_util.cc b/src/crypto/crypto_util.cc index 9fb61f5fbe1e51..f889ba9ce5ced3 100644 --- a/src/crypto/crypto_util.cc +++ b/src/crypto/crypto_util.cc @@ -104,7 +104,7 @@ int NoPasswordCallback(char* buf, int size, int rwflag, void* u) { } bool ProcessFipsOptions() { - /* Override FIPS settings in cnf file, if needed. */ + /* Override FIPS settings in configuration file, if needed. */ if (per_process::cli_options->enable_fips_crypto || per_process::cli_options->force_fips_crypto) { #if OPENSSL_VERSION_MAJOR >= 3 @@ -116,7 +116,7 @@ bool ProcessFipsOptions() { return EVP_default_properties_enable_fips(nullptr, 1) && EVP_default_properties_is_fips_enabled(nullptr); #else - return 0 == FIPS_mode() && FIPS_mode_set(1); + return FIPS_mode() == 0 && FIPS_mode_set(1); #endif } return true;