Skip to content

Commit

Permalink
Merge bitcoin#7520: LibreSSL doesn't define OPENSSL_VERSION, use LIBR…
Browse files Browse the repository at this point in the history
…ESSL_VERSION_TEXT instead

a0a17b3 LibreSSL doesn't define OPENSSL_VERSION, use LIBRESSL_VERSION_TEXT instead (Pavel Janík)
  • Loading branch information
laanwj committed Feb 12, 2016
2 parents 2f3f4af + a0a17b3 commit 621940e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1091,8 +1091,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
Expand Down

0 comments on commit 621940e

Please sign in to comment.