aboutsummaryrefslogtreecommitdiffstats
path: root/g10/keylist.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/keylist.c')
-rw-r--r--g10/keylist.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/g10/keylist.c b/g10/keylist.c
index 62194d823..f445d67b6 100644
--- a/g10/keylist.c
+++ b/g10/keylist.c
@@ -243,6 +243,12 @@ list_keyblock_print ( KBNODE keyblock, int secret )
for( kbctx=NULL; (node=walk_kbnode( keyblock, &kbctx, 0)) ; ) {
if( node->pkt->pkttype == PKT_USER_ID && !opt.fast_list_mode ) {
+ /* don't list revoked UIDS unless we are in verbose mode and
+ * signature listing has not been requested */
+ if ( !opt.verbose && !opt.list_sigs
+ && node->pkt->pkt.user_id->is_revoked )
+ continue;
+
if( any )
printf("uid%*s", 28, "");