summaryrefslogtreecommitdiff
path: root/www/node18/files/patch-openssl3
blob: 9066f5b9df9eda6853784c0c208e41684bda5892 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- src/crypto/crypto_util.cc.orig	2023-04-12 04:09:19 UTC
+++ src/crypto/crypto_util.cc
@@ -195,10 +195,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) {