diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2020-10-26 09:23:55 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2021-03-16 07:59:25 +0300 |
commit | 640fe943544d503288d2e95d3ee14c43e9dec0f6 (patch) | |
tree | 8942d2fa9c71a016a386db1205652d79aa478bfb /node.gypi | |
parent | 6527e041f7d42ae127adade9862e86093979e64a (diff) |
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.gypi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/node.gypi b/node.gypi index ad088b133be..f9dba2d4bdd 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' ] |