diff options
author | Richard Lau <riclau@uk.ibm.com> | 2019-02-07 19:20:25 +0000 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-02-11 07:28:01 +0100 |
commit | fcaeb1f1221c7c4296d44136b2f81d8f6e0db92d (patch) | |
tree | c69097de07d09215e7b8a68448d56564b6dade00 /test/addons | |
parent | 851cebbff66699d350477882ddd787b0bd9c95ec (diff) | |
download | android-node-v8-fcaeb1f1221c7c4296d44136b2f81d8f6e0db92d.tar.gz android-node-v8-fcaeb1f1221c7c4296d44136b2f81d8f6e0db92d.tar.bz2 android-node-v8-fcaeb1f1221c7c4296d44136b2f81d8f6e0db92d.zip |
build: export deprecated OpenSSL symbols on Windows
Methods such as `TLSv1_server_method` are categorized as
`DEPRECATEDIN_1_1_0`. Add the deprecated categories to
the list of categories to include passed to `mkssldef.py`.
Adds a regression test to `test/addons/openssl-binding`.
PR-URL: https://github.com/nodejs/node/pull/25991
Refs: https://github.com/nodejs/node/issues/20369
Refs: https://github.com/nodejs/node/issues/25981
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'test/addons')
-rw-r--r-- | test/addons/openssl-binding/binding.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/addons/openssl-binding/binding.cc b/test/addons/openssl-binding/binding.cc index 122d420bc1..ecda40f4cb 100644 --- a/test/addons/openssl-binding/binding.cc +++ b/test/addons/openssl-binding/binding.cc @@ -1,6 +1,7 @@ #include <node.h> #include <assert.h> #include <openssl/rand.h> +#include <openssl/ssl.h> namespace { @@ -28,6 +29,9 @@ inline void Initialize(v8::Local<v8::Object> exports, ->GetFunction(context) .ToLocalChecked(); assert(exports->Set(context, key, value).IsJust()); + + const SSL_METHOD* method = TLSv1_2_server_method(); + assert(method != nullptr); } } // anonymous namespace |