test: use fipsMode in test-crypto-fips
This commit updates test/parallel/test-crypto-fips.js to use fipsMode
instead of process.config.variables.openssl_fips
.
The motivation for this is that since the addition of the
--openssl-is-fips
configuration flag, it is possible to dynamically
link with a FIPS compliant OpenSSL library. Using fipsMode
allows for
determining if there is FIPS support when statically or dynamically
linking against a FIPS compatible OpenSSL library.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines