aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gpg-wks.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2022-12-06 08:23:16 +0000
committerWerner Koch <[email protected]>2022-12-06 08:23:16 +0000
commit278f85d1bc6cd012b3b2e87536e50954b21d2d91 (patch)
tree62b264ffe906dae4e0224c91ffb90a24cb56224b /tools/gpg-wks.h
parentgpgsm: Print the revocation time also with --verify. (diff)
downloadgnupg-278f85d1bc6cd012b3b2e87536e50954b21d2d91.tar.gz
gnupg-278f85d1bc6cd012b3b2e87536e50954b21d2d91.zip
wkd: Do not send/install/mirror expired user ids.
* tools/gpg-wks.h (struct uidinfo_list_s): Add fields expired and revoked. * tools/wks-util.c (append_to_uidinfo_list): Add args expired and revoked. (set_expired_revoked): New. (wks_list_key): Set expired and revoked. (wks_cmd_install_key): Skip expired uids. * tools/gpg-wks-client.c (command_check): Print flags. (command_send): Ignore expired keys. (mirror_one_key): Ditto. * g10/export.c (do_export_stream): Silence warning. -- GnuPG-bug-id: 6292
Diffstat (limited to 'tools/gpg-wks.h')
-rw-r--r--tools/gpg-wks.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gpg-wks.h b/tools/gpg-wks.h
index 59a0aca74..a7c17ca52 100644
--- a/tools/gpg-wks.h
+++ b/tools/gpg-wks.h
@@ -81,6 +81,8 @@ struct uidinfo_list_s
time_t created; /* Time the userid was created. */
char *mbox; /* NULL or the malloced mailbox from UID. */
unsigned int flags; /* These flags are cleared on creation. */
+ unsigned int expired:1;
+ unsigned int revoked:1;
char uid[1];
};
typedef struct uidinfo_list_s *uidinfo_list_t;