From 7f8e977ee04f9f67b3705b329b815825fad7116e Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Wed, 3 Jun 2020 12:56:58 +0200 Subject: 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 Reviewed-By: Ben Noordhuis Reviewed-By: James M Snell Reviewed-By: Richard Lau --- node.gyp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'node.gyp') 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': { -- cgit v1.2.3