diff options
author | Timothy Pearson <[email protected]> | 2015-09-04 01:04:37 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2015-09-04 01:04:37 -0500 |
commit | ba7bc5afacb793fba3724dd526ade68a5db95927 (patch) | |
tree | 30685d67a8ed17ef9fd029fe28b7cb804c4f641f | |
parent | c714661bc99909ed38d453032e14098a85ea1c00 (diff) | |
download | libtdeldap-ba7bc5afacb793fba3724dd526ade68a5db95927.tar.gz libtdeldap-ba7bc5afacb793fba3724dd526ade68a5db95927.zip |
Fix up certificate expiry detection
-rw-r--r-- | src/libtdeldap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libtdeldap.cpp b/src/libtdeldap.cpp index 940a91d..63ff769 100644 --- a/src/libtdeldap.cpp +++ b/src/libtdeldap.cpp @@ -4434,7 +4434,7 @@ int LDAPManager::generatePKICRL(int expirydays, LDAPRealmConfig realmcfg, TQStri KSSLCertificate* cert = KSSLCertificate::fromString(ssldata); if (cert) { bool expired = false; - if (TQDate::currentDate().daysTo(cert->getQDTNotAfter().date()) < 0) { + if (TQDateTime::currentDateTime(Qt::UTC) > cert->getQDTNotAfter()) { expired = true; } |