Merge pull request #2696

937e7f8a Initialize openssl on startup (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2017-11-14 15:13:43 +02:00
commit 8df6b010eb
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
10 changed files with 21 additions and 1 deletions

View file

@ -549,6 +549,13 @@ std::string get_nix_version_display_string()
if (!strcmp(ver, "2.25"))
MCLOG_RED(el::Level::Warning, "global", "Running with glibc " << ver << ", hangs may occur - change glibc version if possible");
#endif
#if OPENSSL_VERSION_NUMBER < 0x10100000
SSL_library_init();
#else
OPENSSL_init_ssl(0, NULL);
#endif
return true;
}
void set_strict_default_file_permissions(bool strict)