ports/databases/mongosh/files/node-patches/004-openssl3
Fabien Amelinck 31d8a7eb34
databases/mongosh: new port
Standalone MongoDB Shell replacing deprecated Mongo CLI.
NodeJS doesn't need to be installed.

PR:	279519
2024-11-21 09:52:59 +01:00

15 lines
474 B
Text

--- a/src/crypto/crypto_util.cc 2023-05-16 06:58:21 UTC
+++ b/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) {