diff options
author | David Shaw <[email protected]> | 2003-09-30 21:16:36 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2003-09-30 21:16:36 +0000 |
commit | cb772decc4a1414452ff5ff1bf01717c31933d51 (patch) | |
tree | 354b52f34c5823e1f4769e5000c87c695f305ace /g10/mainproc.c | |
parent | * gpg.sgml: Clarify --mangle-dos-filenames, document list-option (diff) | |
download | gnupg-cb772decc4a1414452ff5ff1bf01717c31933d51.tar.gz gnupg-cb772decc4a1414452ff5ff1bf01717c31933d51.zip |
* options.h, g10.c (main), mainproc.c (check_sig_and_print): Add
--verify-option show-unusable-uids.
Diffstat (limited to 'g10/mainproc.c')
-rw-r--r-- | g10/mainproc.c | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/g10/mainproc.c b/g10/mainproc.c index f92181e2b..e6522f1ed 100644 --- a/g10/mainproc.c +++ b/g10/mainproc.c @@ -1345,7 +1345,7 @@ check_sig_and_print( CTX c, KBNODE node ) continue; if ( !un->pkt->pkt.user_id->is_primary ) continue; - /* We want the textual user ID here */ + /* We want the textual primary user ID here */ if ( un->pkt->pkt.user_id->attrib_data ) continue; @@ -1417,10 +1417,10 @@ check_sig_and_print( CTX c, KBNODE node ) for( un=keyblock; un; un = un->next ) { if( un->pkt->pkttype != PKT_USER_ID ) continue; - if ( un->pkt->pkt.user_id->is_revoked ) - continue; - if ( un->pkt->pkt.user_id->is_expired ) - continue; + if((un->pkt->pkt.user_id->is_revoked + || un->pkt->pkt.user_id->is_expired) + && !(opt.verify_options&VERIFY_SHOW_UNUSABLE_UIDS)) + continue; /* Only skip textual primaries */ if ( un->pkt->pkt.user_id->is_primary && !un->pkt->pkt.user_id->attrib_data ) @@ -1440,10 +1440,18 @@ check_sig_and_print( CTX c, KBNODE node ) un->pkt->pkt.user_id->len ); if(opt.verify_options&VERIFY_SHOW_VALIDITY) - fprintf(log_stream(),"\" [%s]\n", - trust_value_to_string(get_validity(pk, - un->pkt-> - pkt.user_id))); + { + const char *valid; + if(un->pkt->pkt.user_id->is_revoked) + valid=_("revoked"); + else if(un->pkt->pkt.user_id->is_expired) + valid=_("expired"); + else + valid=trust_value_to_string(get_validity(pk, + un->pkt-> + pkt.user_id)); + fprintf(log_stream(),"\" [%s]\n",valid); + } else fputs("\"\n", log_stream() ); } |