aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorPavel Janík <Pavel@Janik.cz>2016-02-11 21:20:12 +0100
committerPavel Janík <Pavel@Janik.cz>2016-02-12 07:01:33 +0100
commita0a17b3e441ac82bc64ca183d458258ded26c9ed (patch)
treed8a92eee442efc3a331d13670356aeae0e3fdf69 /src/init.cpp
parent3cd836c1d855b92e7c73ab31979f471c4f8dad68 (diff)
LibreSSL doesn't define OPENSSL_VERSION, use LIBRESSL_VERSION_TEXT instead
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 645c8f94b1..231fb18011 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1034,8 +1034,10 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
LogPrintf("Using OpenSSL version %s\n", SSLeay_version(SSLEAY_VERSION));
-#else
+#elif defined OPENSSL_VERSION
LogPrintf("Using OpenSSL version %s\n", OpenSSL_version(OPENSSL_VERSION));
+#elif defined LIBRESSL_VERSION_TEXT
+ LogPrintf("Using %s\n", LIBRESSL_VERSION_TEXT);
#endif
#ifdef ENABLE_WALLET