Skip to content

Commit

Permalink
squash! src: raise error for --enable-fips when no FIPS
Browse files Browse the repository at this point in the history
Clarify that the crypto module is not required to check that an error is
raised.
  • Loading branch information
danbev committed Jun 7, 2021
1 parent bd9c8ca commit 1d4d918
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-crypto-fips.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ testHelper(
testFipsCrypto() ? 'stdout' : 'stderr',
['--enable-fips'],
testFipsCrypto() ? FIPS_ENABLED : FIPS_ENABLE_ERROR_STRING,
'require("crypto").getFips()',
'process.versions',
process.env);

// --force-fips should raise an error if OpenSSL is not FIPS enabled.
testHelper(
testFipsCrypto() ? 'stdout' : 'stderr',
['--force-fips'],
testFipsCrypto() ? FIPS_ENABLED : FIPS_ENABLE_ERROR_STRING,
'require("crypto").getFips()',
'process.versions',
process.env);

// By default FIPS should be off in both FIPS and non-FIPS builds.
Expand Down

0 comments on commit 1d4d918

Please sign in to comment.