You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's because the MD5_*() family of functions has been deprecated in openssl 3.0.
That could be fixed by adding DEPRECATEDIN_3_0 to mkssldef_flags in node.gyp but that also enables a ton of other deprecated stuff (edit: over 1,000 extra symbols.)
It's probably better to use the EVP interface, EVP_md5().
diff --git a/node.gyp b/node.gyp
index a22af3b479a..07a7cbd5536 100644
--- a/node.gyp+++ b/node.gyp@@ -823,7 +823,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,'+ 'DEPRECATEDIN_3_0',
# Defines.
'-DWIN32',
# Symbols to filter from the export list.
The code that's using it is not mine, it's in a library. Looking at it another way, that's 1,000+ incompatibilities between Node.js on Windows and other platforms :D, and compiling on Windows is already painful.
You're welcome to open a pull request and see how it's received. libopenssl.a is exported with -Wl,--whole-archive on linux so it's reasonable to do something similar on windows.
Activity
bnoordhuis commentedon Nov 13, 2022
That's because the
MD5_*()family of functions has been deprecated in openssl 3.0.That could be fixed by adding
DEPRECATEDIN_3_0to mkssldef_flags in node.gyp but that also enables a ton of other deprecated stuff (edit: over 1,000 extra symbols.)It's probably better to use the EVP interface,
EVP_md5().mohd-akram commentedon Nov 13, 2022
The code that's using it is not mine, it's in a library. Looking at it another way, that's 1,000+ incompatibilities between Node.js on Windows and other platforms :D, and compiling on Windows is already painful.
bnoordhuis commentedon Nov 13, 2022
You're welcome to open a pull request and see how it's received. libopenssl.a is exported with
-Wl,--whole-archiveon linux so it's reasonable to do something similar on windows.