summaryrefslogtreecommitdiff
path: root/node.gypi
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2020-10-26 07:23:55 +0100
committerDaniel Bevenius <daniel.bevenius@gmail.com>2021-03-16 05:59:25 +0100
commit640fe943544d503288d2e95d3ee14c43e9dec0f6 (patch)
tree8942d2fa9c71a016a386db1205652d79aa478bfb /node.gypi
parent6527e041f7d42ae127adade9862e86093979e64a (diff)
downloadnode-new-640fe943544d503288d2e95d3ee14c43e9dec0f6.tar.gz
src,test: support dynamically linking OpenSSL 3.0
This commit enables node to dynamically link against OpenSSL 3.0. The motivation for opening this PR even though OpenSSL 3.0 has not been released yet is to allow a nightly CI job to be created. This will allow us stay on top of changes required for OpenSSL 3.0, and also to make sure that changes to node crypto do not cause issues when linking to OpenSSL 3.0. PR-URL: https://github.com/nodejs/node/pull/37669 Refs: https://github.com/nodejs/node/issues/29817 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <midawson@redhat.com>
Diffstat (limited to 'node.gypi')
-rw-r--r--node.gypi6
1 files changed, 5 insertions, 1 deletions
diff --git a/node.gypi b/node.gypi
index ad088b133b..f9dba2d4bd 100644
--- a/node.gypi
+++ b/node.gypi
@@ -361,7 +361,11 @@
],
}],
],
- }]]
+ }, {
+ # Set 1.0.0 as the API compability level to avoid the
+ # deprecation warnings when using OpenSSL 3.0.
+ 'defines': ['OPENSSL_API_COMPAT=0x10000000L'],
+ }]]
}, {
'defines': [ 'HAVE_OPENSSL=0' ]