mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-23 15:07:03 +01:00
g10: Also mark revoked and expired keys as unusable.
* g10/getkey.c (skip_unusable): Also mark the key as unusable if it has been revoked or has expired. -- Signed-off-by: Neal H. Walfield <neal@g10code.com>.
This commit is contained in:
parent
1b601de06a
commit
77c2ad4a81
@ -592,8 +592,12 @@ skip_unusable (void *dummy, u32 * keyid, int uid_no)
|
|||||||
|
|
||||||
pk = keyblock->pkt->pkt.public_key;
|
pk = keyblock->pkt->pkt.public_key;
|
||||||
|
|
||||||
/* Is the user ID in question revoked/expired? */
|
/* Is the key revoked or expired? */
|
||||||
if (uid_no)
|
if (pk->flags.revoked || pk->has_expired)
|
||||||
|
unusable = 1;
|
||||||
|
|
||||||
|
/* Is the user ID in question revoked or expired? */
|
||||||
|
if (!unusable && uid_no)
|
||||||
{
|
{
|
||||||
KBNODE node;
|
KBNODE node;
|
||||||
int uids_seen = 0;
|
int uids_seen = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user