diff --git a/src/init.cpp b/src/init.cpp index 7902a2e55b..57d0bd1c2d 100755 --- a/src/init.cpp +++ b/src/init.cpp @@ -957,7 +957,11 @@ bool AppInit2(ThreadHandlerPtr threads) } #endif - LogPrintf("Using OpenSSL version %s", SSLeay_version(SSLEAY_VERSION)); + #if (OPENSSL_VERSION_NUMBER < 0x10100000L) + LogPrintf("Using OpenSSL version %s\n", SSLeay_version(SSLEAY_VERSION)); + #else + LogPrintf("Using OpenSSL version %s\n", OpenSSL_version(OPENSSL_VERSION)); + #endif std::ostringstream strErrors; diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp index 06ca7bcddf..c915640a0d 100644 --- a/src/qt/rpcconsole.cpp +++ b/src/qt/rpcconsole.cpp @@ -234,7 +234,11 @@ RPCConsole::RPCConsole(QWidget *parent) : connect(ui->clearButton, &QPushButton::clicked, this, &RPCConsole::clear); // set OpenSSL version label - ui->openSSLVersion->setText(SSLeay_version(SSLEAY_VERSION)); + #if (OPENSSL_VERSION_NUMBER < 0x10100000L) + ui->openSSLVersion->setText(SSLeay_version(SSLEAY_VERSION)); + #else + ui->openSSLVersion->setText(OpenSSL_version(OPENSSL_VERSION)); + #endif // set Qt version label ui->qtVersion->setText("Qt " + QString::fromLocal8Bit(qVersion()) + " (built against " + QString::fromStdString(QT_VERSION_STR) + ")");