aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-10-21 10:09:51 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-10-21 10:17:18 +0100
commit937e7f8aa6bda1280abdea493583f4f959ee18e8 (patch)
tree5d88a15ed55bec94d672a6c5edca52053965ba0b /src/common/util.cpp
parentMerge pull request #2601 (diff)
downloadmonero-937e7f8aa6bda1280abdea493583f4f959ee18e8.tar.xz
Initialize openssl on startup
Diffstat (limited to '')
-rw-r--r--src/common/util.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/util.cpp b/src/common/util.cpp
index 30746f680..1e180d325 100644
--- a/src/common/util.cpp
+++ b/src/common/util.cpp
@@ -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)