mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 08:11:11 +00:00
don't read openssl config file
This commit is contained in:
parent
34dc6fbdc1
commit
985a468d0f
@ -10,6 +10,7 @@
|
||||
#include <openssl/ssl.h>
|
||||
#include "Crypto.h"
|
||||
#if LEGACY_OPENSSL
|
||||
#include <openssl/conf.h>
|
||||
#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++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user