mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-24 05:44:30 +00:00
[Qt] paymentserver: do not log NULL certificates
- also add a few more comments in PaymentServer::LoadRootCAs
This commit is contained in:
parent
ea2b425b00
commit
5a53d7cda3
@ -143,13 +143,20 @@ void PaymentServer::LoadRootCAs(X509_STORE* _store)
|
|||||||
|
|
||||||
int nRootCerts = 0;
|
int nRootCerts = 0;
|
||||||
const QDateTime currentTime = QDateTime::currentDateTime();
|
const QDateTime currentTime = QDateTime::currentDateTime();
|
||||||
foreach (const QSslCertificate& cert, certList)
|
|
||||||
{
|
foreach (const QSslCertificate& cert, certList) {
|
||||||
|
// Don't log NULL certificates
|
||||||
|
if (cert.isNull())
|
||||||
|
continue;
|
||||||
|
|
||||||
|
// Not yet active/valid, or expired certificate
|
||||||
if (currentTime < cert.effectiveDate() || currentTime > cert.expiryDate()) {
|
if (currentTime < cert.effectiveDate() || currentTime > cert.expiryDate()) {
|
||||||
ReportInvalidCertificate(cert);
|
ReportInvalidCertificate(cert);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if QT_VERSION >= 0x050000
|
#if QT_VERSION >= 0x050000
|
||||||
|
// Blacklisted certificate
|
||||||
if (cert.isBlacklisted()) {
|
if (cert.isBlacklisted()) {
|
||||||
ReportInvalidCertificate(cert);
|
ReportInvalidCertificate(cert);
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user