From b049ea669bab588026b427ac80d398115f23d68c Mon Sep 17 00:00:00 2001 From: Brian White Date: Sun, 30 May 2021 12:20:40 -0400 Subject: [PATCH] build: export more OpenSSL symbols on Windows --- node.gyp | 3 ++- test/addons/openssl-binding/binding.cc | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/node.gyp b/node.gyp index 691ce22ff3d664..ad9d65c5287d9b 100644 --- a/node.gyp +++ b/node.gyp @@ -763,7 +763,8 @@ '-CAES,BF,BIO,DES,DH,DSA,EC,ECDH,ECDSA,ENGINE,EVP,HMAC,MD4,MD5,' 'PSK,RC2,RC4,RSA,SHA,SHA0,SHA1,SHA256,SHA512,SOCK,STDIO,TLSEXT,' 'UI,FP_API,TLS1_METHOD,TLS1_1_METHOD,TLS1_2_METHOD,SCRYPT,OCSP,' - 'NEXTPROTONEG,RMD160,CAST,DEPRECATEDIN_1_1_0,DEPRECATEDIN_1_2_0', + 'NEXTPROTONEG,RMD160,CAST,DEPRECATEDIN_1_1_0,DEPRECATEDIN_1_2_0,' + 'CHACHA,POLY1305', # Defines. '-DWIN32', # Symbols to filter from the export list. diff --git a/test/addons/openssl-binding/binding.cc b/test/addons/openssl-binding/binding.cc index 79472dd7f25272..77cc5a25a36600 100644 --- a/test/addons/openssl-binding/binding.cc +++ b/test/addons/openssl-binding/binding.cc @@ -32,6 +32,15 @@ inline void Initialize(v8::Local exports, const SSL_METHOD* method = TLSv1_2_server_method(); assert(method != nullptr); + + { + const EVP_CIPHER* cipher = EVP_chacha20(); + assert(cipher != nullptr); + } + { + const EVP_CIPHER* cipher = EVP_chacha20_poly1305(); + assert(cipher != nullptr); + } } } // anonymous namespace