diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2019-08-24 15:32:04 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2019-08-24 15:32:04 +0300 |
commit | 2e1455c4a100170c322165af3ecbbcd3004b2f9d (patch) | |
tree | f9f926b445a0e4028293426b11422e4a75ceda3f | |
parent | 3ca514ddb77253042877d1a72dfd3021c3de2812 (diff) |
Replace obsolete functions of QSslSocket
The QSslSocket::setDefaultCaCertificates() and
QSslSocket::systemCaCertificates() member functions are obsolete since
Qt 5.12.
-rw-r--r-- | src/qt/paymentserver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qt/paymentserver.cpp b/src/qt/paymentserver.cpp index f3f5d28af9..0bb87742e9 100644 --- a/src/qt/paymentserver.cpp +++ b/src/qt/paymentserver.cpp @@ -41,8 +41,8 @@ #include <QNetworkReply> #include <QNetworkRequest> #include <QSslCertificate> +#include <QSslConfiguration> #include <QSslError> -#include <QSslSocket> #include <QStringList> #include <QTextDocument> #include <QUrlQuery> @@ -448,9 +448,9 @@ void PaymentServer::LoadRootCAs(X509_STORE* _store) certList = QSslCertificate::fromPath(certFile); // Use those certificates when fetching payment requests, too: - QSslSocket::setDefaultCaCertificates(certList); + QSslConfiguration::defaultConfiguration().setCaCertificates(certList); } else - certList = QSslSocket::systemCaCertificates(); + certList = QSslConfiguration::systemCaCertificates(); int nRootCerts = 0; const QDateTime currentTime = QDateTime::currentDateTime(); |