crypto: only try to set FIPS mode if different · nodejs/node@9eeaab4 · GitHub
Skip to content

Commit 9eeaab4

Browse files
gibfahnMylesBorins
authored andcommitted
crypto: only try to set FIPS mode if different
Turning FIPS mode on (or off) when it's already on (or off) should be a no-op, not an error. PR-URL: #12210 Fixes: #11849 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 34b4180 commit 9eeaab4

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

src/node_crypto.cc

Lines changed: 5 additions & 2 deletions

test/parallel/test-crypto-fips.js

Lines changed: 9 additions & 0 deletions

0 commit comments

Comments
 (0)