Skip to content

Commit b83f3bf

Browse files
committed
fixup! crypto: add strict mode to --force-fips
1 parent 8a05fbc commit b83f3bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,13 +1233,13 @@ InitializeOncePerProcessInternal(const std::vector<std::string>& args,
12331233
OPENSSL_init();
12341234
}
12351235
#endif
1236-
crypto::InstallFipsIndicatorCallback();
12371236
if (auto fips_error = crypto::ProcessFipsOptions()) {
12381237
result->exit_code_ = ExitCode::kGenericUserError;
12391238
result->early_return_ = true;
12401239
result->errors_.emplace_back(std::move(*fips_error));
12411240
return result;
12421241
}
1242+
crypto::InstallFipsIndicatorCallback();
12431243

12441244
// Ensure CSPRNG is properly seeded.
12451245
CHECK(ncrypto::CSPRNG(nullptr, 0));

0 commit comments

Comments
 (0)