From a9b5e7820fcda38582f0aaccb105dcf2d6099e07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com> Date: Mon, 20 Aug 2018 15:32:50 -0400 Subject: [PATCH] certstore: don't revoke CA with certificate Change-Id: I8d042ce90ef715ff4c9425648ff2f88847fb85c6 Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com> --- src/security/certstore.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/security/certstore.cpp b/src/security/certstore.cpp index 5152c547fb..e4429451a7 100644 --- a/src/security/certstore.cpp +++ b/src/security/certstore.cpp @@ -460,7 +460,7 @@ TrustStore::setCertificateStatus(std::shared_ptr<crypto::Certificate> cert, if (allowed) // Certificate is re-added after ban, rebuld needed dirty = true; else - allowed_.remove(*s->second.first); + allowed_.remove(*s->second.first, false); } } } @@ -540,7 +540,7 @@ TrustStore::setStoreCertStatus(const crypto::Certificate& crt, bool status) if (status) allowed_.add(crt); else - allowed_.remove(crt); + allowed_.remove(crt, false); } void -- GitLab