Skip to content

Commit

Permalink
wip: crypto: Keep FIPS provided loaded
Browse files Browse the repository at this point in the history
Loading the FIPS provider presumably disables lot of non-FIPS compliant
algorithms; disabling it right afterwards may leave the OpenSSL in
non-usable state (i.e. no RNG algorithm available).
  • Loading branch information
khardix committed Jul 28, 2023
1 parent 75efb42 commit 03d3ccf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/crypto/crypto_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ bool ProcessFipsOptions() {
OSSL_PROVIDER* fips_provider = OSSL_PROVIDER_load(nullptr, "fips");
if (fips_provider == nullptr)
return false;
OSSL_PROVIDER_unload(fips_provider);

return EVP_default_properties_enable_fips(nullptr, 1) &&
EVP_default_properties_is_fips_enabled(nullptr);
Expand Down

0 comments on commit 03d3ccf

Please sign in to comment.