Skip to content

Commit

Permalink
build: export more OpenSSL symbols on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mscdex committed May 30, 2021
1 parent 4c508f5 commit e90bd5c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,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.
Expand Down
9 changes: 9 additions & 0 deletions test/addons/openssl-binding/binding.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ inline void Initialize(v8::Local<v8::Object> 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
Expand Down

0 comments on commit e90bd5c

Please sign in to comment.