crypto: enable FIPS only when configured with it
authorFedor Indutny <fedor@indutny.com>
Thu, 1 Oct 2015 21:28:49 +0000 (17:28 -0400)
committerRod Vagg <rod@vagg.org>
Fri, 2 Oct 2015 03:39:26 +0000 (13:39 +1000)
commitf055a66a380fc7afe81daac2a452f4048052fa3c
tree130bb8f987e46dc9e89a40b1dd1e61cb37f88268
parent0858c86374876e50cd54c2c4d9aa65a868846533
crypto: enable FIPS only when configured with it

Do not rely on `OPENSSL_FIPS` in `node_crypto.cc` when building with
shared FIPS-enabled OpenSSL library. Enable FIPS in core only when
configured with `--openssl-fips`.

Fix: https://github.com/nodejs/node/issues/3077
PR-URL: https://github.com/nodejs/node/pull/3153
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
node.gyp
src/node_crypto.cc