aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/cert/x509/x509path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/cert/x509/x509path.cpp')
-rw-r--r--src/lib/cert/x509/x509path.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/cert/x509/x509path.cpp b/src/lib/cert/x509/x509path.cpp
index c1b68e72d..e8e44f653 100644
--- a/src/lib/cert/x509/x509path.cpp
+++ b/src/lib/cert/x509/x509path.cpp
@@ -171,7 +171,8 @@ check_chain(const std::vector<X509_Certificate>& cert_path,
if(!crl_p)
{
- status.insert(Certificate_Status_Code::NO_REVOCATION_DATA);
+ if(restrictions.require_revocation_information())
+ status.insert(Certificate_Status_Code::NO_REVOCATION_DATA);
continue;
}