From 278f85d1bc6cd012b3b2e87536e50954b21d2d91 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 6 Dec 2022 09:23:16 +0100 Subject: 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 --- g10/export.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'g10') diff --git a/g10/export.c b/g10/export.c index cab00d10c..61b5e9a13 100644 --- a/g10/export.c +++ b/g10/export.c @@ -2455,8 +2455,8 @@ do_export_stream (ctrl_t ctrl, iobuf_t out, strlist_t users, int secret, keydb_release (kdbhd); if (err || !keyblock_out) release_kbnode( keyblock ); - if( !*any ) - log_info(_("WARNING: nothing exported\n")); + if( !*any && !opt.quiet) + log_info (_("WARNING: nothing exported\n")); return err; } -- cgit v1.2.3