aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/x509/x509path.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-21 23:51:44 -0500
committerJack Lloyd <[email protected]>2016-11-23 08:31:09 -0500
commit28b38adb037719ba08691a4e8c6f59ea2e854760 (patch)
treee0761a1fe2dde2bd3b0fc2c42a9202da8cd171fd /src/lib/x509/x509path.cpp
parentb95652957cb12e890ac4a7f9000aa957edd70357 (diff)
Better OCSP tests including online tests
Tests touching network are gated by --run-online-tests flag.
Diffstat (limited to 'src/lib/x509/x509path.cpp')
-rw-r--r--src/lib/x509/x509path.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/x509/x509path.cpp b/src/lib/x509/x509path.cpp
index 946539bab..c57985766 100644
--- a/src/lib/x509/x509path.cpp
+++ b/src/lib/x509/x509path.cpp
@@ -161,6 +161,9 @@ PKIX::check_ocsp(const std::vector<std::shared_ptr<const X509_Certificate>>& cer
}
}
+ while(cert_status.back().empty())
+ cert_status.pop_back();
+
return cert_status;
}
@@ -203,6 +206,9 @@ PKIX::check_crl(const std::vector<std::shared_ptr<const X509_Certificate>>& cert
}
}
+ while(cert_status.back().empty())
+ cert_status.pop_back();
+
return cert_status;
}