Skip to content

Commit 3a093dd

Browse files
committed
Remove QT_VERSION checks
1 parent 5280b29 commit 3a093dd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/qt/paymentserver.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -405,11 +405,7 @@ namespace // Anon namespace
405405

406406
static 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

0 commit comments

Comments
 (0)