aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/x509
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-10-06 21:07:25 -0400
committerJack Lloyd <[email protected]>2017-10-06 21:07:25 -0400
commitaff93b716eda9d10be9f02e4b436b672510ab179 (patch)
tree12f992aac7cc20519cb3f643f793f1bb133d8ab0 /src/lib/x509
parent1c539719f170df9c8acc6977da3c331c7e78cbf2 (diff)
Address various GCC warnings
Things like -Wconversion and -Wuseless-cast that are noisy and not on by default.
Diffstat (limited to 'src/lib/x509')
-rw-r--r--src/lib/x509/x509path.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/x509/x509path.cpp b/src/lib/x509/x509path.cpp
index f34fc0a11..fcc5bf0ba 100644
--- a/src/lib/x509/x509path.cpp
+++ b/src/lib/x509/x509path.cpp
@@ -217,10 +217,10 @@ PKIX::check_crl(const std::vector<std::shared_ptr<const X509_Certificate>>& cert
if(!ca->allowed_usage(CRL_SIGN))
status.insert(Certificate_Status_Code::CA_CERT_NOT_FOR_CRL_ISSUER);
- if(validation_time < X509_Time(crls[i]->this_update()))
+ if(validation_time < crls[i]->this_update())
status.insert(Certificate_Status_Code::CRL_NOT_YET_VALID);
- if(validation_time > X509_Time(crls[i]->next_update()))
+ if(validation_time > crls[i]->next_update())
status.insert(Certificate_Status_Code::CRL_HAS_EXPIRED);
if(crls[i]->check_signature(ca->subject_public_key()) == false)