diff --git a/src/crypto/crypto_util.cc b/src/crypto/crypto_util.cc index 8cc62279fabbab..52b70f168af37d 100644 --- a/src/crypto/crypto_util.cc +++ b/src/crypto/crypto_util.cc @@ -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); diff --git a/src/node.cc b/src/node.cc index a4aaf7f87732e8..679956f03826c2 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1070,7 +1070,8 @@ InitializeOncePerProcessInternal(const std::vector& args, if (!crypto::CSPRNG(nullptr, 0).is_ok()) { // XXX: ERR_GET_REASON does not return something that is // useful as an exit code at all. - result->exit_code_ = ERR_GET_REASON(ERR_peek_error()); + result->exit_code_ = + static_cast(ERR_GET_REASON(ERR_peek_error())); result->early_return_ = true; result->errors_.emplace_back( "OpenSSL error when trying to seed CSPRNG:\n" +