Verified Commit 7ceef3e1 authored by Ingo Klöcker's avatar Ingo Klöcker Committed by Ingo Klöcker
Browse files

Do not offer expired user ID for certification

gpg doesn't create expiring self signatures, but some other OpenPGP
software may do this.

GnuPG-bug-id: 6155
parent 39d9c325
Pipeline #231767 passed with stage
in 2 minutes and 16 seconds
......@@ -12,6 +12,7 @@
#include "certifywidget.h"
#include <utils/accessibility.h>
#include <utils/keys.h>
#include "view/infofield.h"
#include "kleopatra_debug.h"
......@@ -199,7 +200,7 @@ public:
const std::vector<GpgME::UserID> ids = key.userIDs();
int i = 0;
for (const auto &uid: key.userIDs()) {
if (uid.isRevoked() || uid.isInvalid()) {
if (uid.isRevoked() || uid.isInvalid() || Kleo::isRevokedOrExpired(uid)) {
// Skip user IDs that cannot really be certified.
i++;
continue;
......
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