ports/www/node21/files/patch-openssl3
Po-Chuan Hsieh 8ebc14c8ec
www/node21: Add node21 21.1.0
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js
uses an event-driven, non-blocking I/O model that makes it lightweight and
efficient. Node.js' package ecosystem, npm, is the largest ecosystem of open
source libraries in the world.
2023-11-01 09:56:55 +08:00

15 lines
475 B
Text

--- src/crypto/crypto_util.cc.orig 2023-05-16 06:58:21 UTC
+++ src/crypto/crypto_util.cc
@@ -205,10 +205,12 @@ void InitCryptoOnce() {
// No-op with OPENSSL_NO_COMP builds of OpenSSL.
sk_SSL_COMP_zero(SSL_COMP_get_compression_methods());
+#if OPENSSL_VERSION_MAJOR < 3
#ifndef OPENSSL_NO_ENGINE
ERR_load_ENGINE_strings();
ENGINE_load_builtin_engines();
#endif // !OPENSSL_NO_ENGINE
+#endif
}
void GetFipsCrypto(const FunctionCallbackInfo<Value>& args) {