Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2020-06-03 13:56:58 +0300
committerDaniel Bevenius <daniel.bevenius@gmail.com>2020-06-08 14:21:54 +0300
commit7f8e977ee04f9f67b3705b329b815825fad7116e (patch)
tree794144f2e6348446c9cac3925a3e311b853d41b9 /node.gyp
parent111d1e523d632c489bfe99adfb3f8c080e996d32 (diff)
src,build: add --openssl-default-cipher-list
This commit adds a configuration option named openssl-default-cipher-list which takes a colon separated string specifying ciphers that should be used as the default ciphers instead of the ones defined in node_constants. The motivation for this is a use case where Fedora/RHEL would like to be able to specify a default cipher in the format PROFILE=SYSTEM. This would enable Fedora/RHEL to have a system wide security level for all applications. PR-URL: https://github.com/nodejs/node/pull/33708 Refs: https://docs.fedoraproject.org/en-US/packaging-guidelines/CryptoPolicies/ Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp6
1 files changed, 6 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index 36cab71f563..1ebb8c2cc97 100644
--- a/node.gyp
+++ b/node.gyp
@@ -748,6 +748,7 @@
'variables': {
'openssl_system_ca_path%': '',
+ 'openssl_default_cipher_list%': '',
},
'defines': [
@@ -764,6 +765,11 @@
'msvs_disabled_warnings!': [4244],
'conditions': [
+ [ 'openssl_default_cipher_list!=""', {
+ 'defines': [
+ 'NODE_OPENSSL_DEFAULT_CIPHER_LIST="<(openssl_default_cipher_list)"'
+ ]
+ }],
[ 'error_on_warn=="true"', {
'cflags': ['-Werror'],
'xcode_settings': {