Browse Source

don't read openssl config file

pull/1277/head
orignal 6 years ago
parent
commit
985a468d0f
  1. 6
      libi2pd/Crypto.cpp

6
libi2pd/Crypto.cpp

@ -10,6 +10,7 @@
#include <openssl/ssl.h> #include <openssl/ssl.h>
#include "Crypto.h" #include "Crypto.h"
#if LEGACY_OPENSSL #if LEGACY_OPENSSL
#include <openssl/conf.h>
#include "ChaCha20.h" #include "ChaCha20.h"
#include "Poly1305.h" #include "Poly1305.h"
#endif #endif
@ -1242,6 +1243,11 @@ namespace crypto
void InitCrypto (bool precomputation) void InitCrypto (bool precomputation)
{ {
i2p::cpu::Detect (); i2p::cpu::Detect ();
#if LEGACY_OPENSSL
OPENSSL_no_config ();
#else
OPENSSL_init_crypto (OPENSSL_INIT_NO_LOAD_CONFIG, NULL);
#endif
SSL_library_init (); SSL_library_init ();
/* auto numLocks = CRYPTO_num_locks(); /* auto numLocks = CRYPTO_num_locks();
for (int i = 0; i < numLocks; i++) for (int i = 0; i < numLocks; i++)

Loading…
Cancel
Save