crypto: fix disabling FIPS mode · nodejs/node@92e3110 · GitHub
Skip to content

Commit 92e3110

Browse files
panvaaduh95
authored andcommitted
crypto: fix disabling FIPS mode
OpenSSL reports FIPS mode as disabled after a successful EVP_default_properties_enable_fips(..., 0) call. Do not treat that disabled state as a failure. Add OpenSSL 3 regression coverage that verifies the state is enabled before disabling it again. Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: #64982 Reviewed-By: Richard Lau <richard.lau@ibm.com> Reviewed-By: Aviv Keller <me@aviv.sh>
1 parent c321752 commit 92e3110

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

deps/ncrypto/ncrypto.cc

Lines changed: 1 addition & 2 deletions

test/parallel/test-crypto-fips.js

Lines changed: 18 additions & 0 deletions

0 commit comments

Comments
 (0)