Skip to content

Commit b049ea6

Browse files
committed
build: export more OpenSSL symbols on Windows
1 parent bb275ef commit b049ea6

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

node.gyp

+2-1
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,8 @@
763763
'-CAES,BF,BIO,DES,DH,DSA,EC,ECDH,ECDSA,ENGINE,EVP,HMAC,MD4,MD5,'
764764
'PSK,RC2,RC4,RSA,SHA,SHA0,SHA1,SHA256,SHA512,SOCK,STDIO,TLSEXT,'
765765
'UI,FP_API,TLS1_METHOD,TLS1_1_METHOD,TLS1_2_METHOD,SCRYPT,OCSP,'
766-
'NEXTPROTONEG,RMD160,CAST,DEPRECATEDIN_1_1_0,DEPRECATEDIN_1_2_0',
766+
'NEXTPROTONEG,RMD160,CAST,DEPRECATEDIN_1_1_0,DEPRECATEDIN_1_2_0,'
767+
'CHACHA,POLY1305',
767768
# Defines.
768769
'-DWIN32',
769770
# Symbols to filter from the export list.

test/addons/openssl-binding/binding.cc

+9
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ inline void Initialize(v8::Local<v8::Object> exports,
3232

3333
const SSL_METHOD* method = TLSv1_2_server_method();
3434
assert(method != nullptr);
35+
36+
{
37+
const EVP_CIPHER* cipher = EVP_chacha20();
38+
assert(cipher != nullptr);
39+
}
40+
{
41+
const EVP_CIPHER* cipher = EVP_chacha20_poly1305();
42+
assert(cipher != nullptr);
43+
}
3544
}
3645

3746
} // anonymous namespace

0 commit comments

Comments
 (0)