Commit ddaf31d3 authored by Ingo Klöcker's avatar Ingo Klöcker
Browse files

Log a warning if the signatures are not available

By default, we load the keys without the signatures. Make sure we notice
if we forgot to load the signatures.

GnuPG-bug-id: 6115
parent 82d5bbb8
......@@ -111,6 +111,9 @@ Kleo::CertificationRevocationFeasibility Kleo::userCanRevokeCertification(const
bool Kleo::userCanRevokeCertifications(const GpgME::UserID &userId)
if (userId.numSignatures() == 0) {
qCWarning(KLEOPATRA_LOG) << __func__ << "- Error: Signatures of user ID" << QString::fromUtf8( << "not available";
return Kleo::any_of(userId.signatures(), [](const auto &certification) {
return userCanRevokeCertification(certification) == CertificationCanBeRevoked;
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