Verified Commit 6c387232 authored by Ingo Klöcker's avatar Ingo Klöcker Committed by Ingo Klöcker
Browse files

Don't ask user to certify an imported expired or revoked OpenPGP key

GnuPG-bug-id: 6155
parent 82d51381
......@@ -399,6 +399,10 @@ bool ImportCertificatesCommand::Private::showPleaseCertify(const GpgME::Import &
// No such key most likely not OpenPGP
return false;
}
if (!Kleo::canBeCertified(key)) {
// key is expired or revoked
return false;
}
for (const auto &uid: key.userIDs()) {
if (uid.validity() >= GpgME::UserID::Marginal) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment