summaryrefslogtreecommitdiff
path: root/src/node.h
diff options
context:
space:
mode:
authorStefan Budeanu <stefan@budeanu.com>2016-01-22 18:10:09 -0500
committerMichael Dawson <michael_dawson@ca.ibm.com>2016-02-25 15:06:41 -0500
commit7c48cb560108bc2f4365bb0c290a9cd68dcc56e4 (patch)
treea347ff1a61119d847d461959ab9d126aef8953ae /src/node.h
parent23a584d5177f0dd24fe427ae7429433b385e1451 (diff)
downloadandroid-node-v8-7c48cb560108bc2f4365bb0c290a9cd68dcc56e4.tar.gz
android-node-v8-7c48cb560108bc2f4365bb0c290a9cd68dcc56e4.tar.bz2
android-node-v8-7c48cb560108bc2f4365bb0c290a9cd68dcc56e4.zip
crypto: Improve control of FIPS mode
Default to FIPS off even in FIPS builds. Add JS API to check and control FIPS mode. Add command line arguments to force FIPS on/off. Respect OPENSSL_CONF variable and read the config. Add testing for new features. Fixes: https://github.com/nodejs/node/issues/3819 PR-URL: https://github.com/nodejs/node/pull/5181 Reviewed-By: Fedor Indutny <fedor@indutny.com> Reviewed-by: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'src/node.h')
-rw-r--r--src/node.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node.h b/src/node.h
index ef1f629d20..fcbb45085c 100644
--- a/src/node.h
+++ b/src/node.h
@@ -179,6 +179,10 @@ typedef intptr_t ssize_t;
namespace node {
NODE_EXTERN extern bool no_deprecation;
+#if HAVE_OPENSSL && NODE_FIPS_MODE
+NODE_EXTERN extern bool enable_fips_crypto;
+NODE_EXTERN extern bool force_fips_crypto;
+#endif
NODE_EXTERN int Start(int argc, char *argv[]);
NODE_EXTERN void Init(int* argc,