summaryrefslogtreecommitdiff
path: root/www/node20/files/patch-openssl3
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-06-30 21:23:13 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-06-30 21:23:13 +0800
commit740db3d450e24cf543e0e1ebc90d52e3fd72d847 (patch)
treefc1ea3e5c79f85e93cb862254e077511bd7dfca9 /www/node20/files/patch-openssl3
parentwww/node18: Rename and regenerate patch files (diff)
www/node20: Rename and regenerate patch files
Diffstat (limited to 'www/node20/files/patch-openssl3')
-rw-r--r--www/node20/files/patch-openssl315
1 files changed, 15 insertions, 0 deletions
diff --git a/www/node20/files/patch-openssl3 b/www/node20/files/patch-openssl3
new file mode 100644
index 000000000000..0e80424bd33c
--- /dev/null
+++ b/www/node20/files/patch-openssl3
@@ -0,0 +1,15 @@
+--- 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) {