test: skip fips tests using OpenSSL config file · nodejs/node@6120a0d · GitHub
Skip to content

Commit 6120a0d

Browse files
danbevaddaleax
authored andcommitted
test: skip fips tests using OpenSSL config file
The motivation for this commit is that we are building Node with --shared-openssl and in our case the system OpenSSL version supports FIPS. The tests in test-crypto-fips that toggle fips mode on/off using the config file option might succeed and return 1 instead of an error being thrown from OpenSSL (which is what happens for a default build but the error is not processed/displayed in any way at the moment): openssl config failed: error:060B10A7:digital envelope routines:ALG_MODULE_INIT:fips mode not supported Note that this only concerns the test that use the configuration file option which is different from when calling the fips setter as the handling of the configuration file is handled by OpenSSL, so it is not possible for us to try to call the fips setter as that would throw an error ("Error: Cannot set FIPS mode in a non-FIPS build."). The suggestion is to skips these tests when --shared-openssl is used. PR-URL: #13786 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 5579bc8 commit 6120a0d

1 file changed

Lines changed: 41 additions & 23 deletions

File tree

test/parallel/test-crypto-fips.js

Lines changed: 41 additions & 23 deletions

0 commit comments

Comments
 (0)