File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -405,11 +405,7 @@ namespace // Anon namespace
405405
406406static void ReportInvalidCertificate (const QSslCertificate& cert)
407407{
408- #if QT_VERSION < 0x050000
409- qDebug () << QString (" %1: Payment server found an invalid certificate: " ).arg (__func__) << cert.serialNumber () << cert.subjectInfo (QSslCertificate::CommonName) << cert.subjectInfo (QSslCertificate::OrganizationalUnitName);
410- #else
411408 qDebug () << QString (" %1: Payment server found an invalid certificate: " ).arg (__func__) << cert.serialNumber () << cert.subjectInfo (QSslCertificate::CommonName) << cert.subjectInfo (QSslCertificate::DistinguishedNameQualifier) << cert.subjectInfo (QSslCertificate::OrganizationalUnitName);
412- #endif
413409}
414410
415411//
@@ -462,13 +458,12 @@ void PaymentServer::LoadRootCAs(X509_STORE* _store)
462458 continue ;
463459 }
464460
465- #if QT_VERSION >= 0x050000
466461 // Blacklisted certificate
467462 if (cert.isBlacklisted ()) {
468463 ReportInvalidCertificate (cert);
469464 continue ;
470465 }
471- # endif
466+
472467 QByteArray certData = cert.toDer ();
473468 const unsigned char *data = (const unsigned char *)certData.data ();
474469
You can’t perform that action at this time.
0 commit comments