Initialize openssl on startup

This commit is contained in:
moneromooo-monero 2017-10-21 10:09:51 +01:00
parent 8d511f3c24
commit 937e7f8aa6
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
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)