Skip to content
Snippets Groups Projects
Commit a9b5e782 authored by Adrien Béraud's avatar Adrien Béraud Committed by Andreas Traczyk
Browse files

certstore: don't revoke CA with certificate


Change-Id: I8d042ce90ef715ff4c9425648ff2f88847fb85c6
Reviewed-by: default avatarAndreas Traczyk <andreas.traczyk@savoirfairelinux.com>
parent b4ba84af
No related branches found
No related tags found
No related merge requests found
...@@ -460,7 +460,7 @@ TrustStore::setCertificateStatus(std::shared_ptr<crypto::Certificate> cert, ...@@ -460,7 +460,7 @@ TrustStore::setCertificateStatus(std::shared_ptr<crypto::Certificate> cert,
if (allowed) // Certificate is re-added after ban, rebuld needed if (allowed) // Certificate is re-added after ban, rebuld needed
dirty = true; dirty = true;
else else
allowed_.remove(*s->second.first); allowed_.remove(*s->second.first, false);
} }
} }
} }
...@@ -540,7 +540,7 @@ TrustStore::setStoreCertStatus(const crypto::Certificate& crt, bool status) ...@@ -540,7 +540,7 @@ TrustStore::setStoreCertStatus(const crypto::Certificate& crt, bool status)
if (status) if (status)
allowed_.add(crt); allowed_.add(crt);
else else
allowed_.remove(crt); allowed_.remove(crt, false);
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment