Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e90bd5c

Browse files
committedMay 30, 2021
build: export more OpenSSL symbols on Windows
1 parent 4c508f5 commit e90bd5c

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
@@ -1001,7 +1001,8 @@
10011001
'-CAES,BF,BIO,DES,DH,DSA,EC,ECDH,ECDSA,ENGINE,EVP,HMAC,MD4,MD5,'
10021002
'PSK,RC2,RC4,RSA,SHA,SHA0,SHA1,SHA256,SHA512,SOCK,STDIO,TLSEXT,'
10031003
'UI,FP_API,TLS1_METHOD,TLS1_1_METHOD,TLS1_2_METHOD,SCRYPT,OCSP,'
1004-
'NEXTPROTONEG,RMD160,CAST,DEPRECATEDIN_1_1_0,DEPRECATEDIN_1_2_0',
1004+
'NEXTPROTONEG,RMD160,CAST,DEPRECATEDIN_1_1_0,DEPRECATEDIN_1_2_0,'
1005+
'CHACHA,POLY1305',
10051006
# Defines.
10061007
'-DWIN32',
10071008
# 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)
Please sign in to comment.