diff options
Diffstat (limited to 'plugins/openpgp/src/gpgme_helper.vala')
-rw-r--r-- | plugins/openpgp/src/gpgme_helper.vala | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/openpgp/src/gpgme_helper.vala b/plugins/openpgp/src/gpgme_helper.vala index 18d07c06..c53437d3 100644 --- a/plugins/openpgp/src/gpgme_helper.vala +++ b/plugins/openpgp/src/gpgme_helper.vala @@ -112,7 +112,13 @@ public static Gee.List<Key> get_keylist(string? pattern = null, bool secret_only try { while (true) { Key key = context.op_keylist_next(); - keys.add(key); + if (!key.expired && !key.revoked){ + debug("PGP Key " + key.fpr + " is valid!"); + keys.add(key); + } + else { + debug("PGP Key " + key.fpr + " is either expired or revoked!"); + } } } catch (Error e) { if (e.code != GPGError.ErrorCode.EOF) throw e; |