From 985a468d0f7abe5dce57b19309777a4b298ff8a8 Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 4 Dec 2018 18:39:49 -0500 Subject: [PATCH] don't read openssl config file --- libi2pd/Crypto.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libi2pd/Crypto.cpp b/libi2pd/Crypto.cpp index 1d79fc71..271e98a1 100644 --- a/libi2pd/Crypto.cpp +++ b/libi2pd/Crypto.cpp @@ -10,6 +10,7 @@ #include #include "Crypto.h" #if LEGACY_OPENSSL +#include #include "ChaCha20.h" #include "Poly1305.h" #endif @@ -1242,6 +1243,11 @@ namespace crypto void InitCrypto (bool precomputation) { i2p::cpu::Detect (); +#if LEGACY_OPENSSL + OPENSSL_no_config (); +#else + OPENSSL_init_crypto (OPENSSL_INIT_NO_LOAD_CONFIG, NULL); +#endif SSL_library_init (); /* auto numLocks = CRYPTO_num_locks(); for (int i = 0; i < numLocks; i++)