mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-23 15:07:03 +01:00
* options.h, g10.c (main), mainproc.c (check_sig_and_print): Add
--verify-option show-unusable-uids.
This commit is contained in:
parent
3901d48afc
commit
cb772decc4
@ -1,5 +1,8 @@
|
|||||||
2003-09-30 David Shaw <dshaw@jabberwocky.com>
|
2003-09-30 David Shaw <dshaw@jabberwocky.com>
|
||||||
|
|
||||||
|
* options.h, g10.c (main), mainproc.c (check_sig_and_print): Add
|
||||||
|
--verify-option show-unusable-uids.
|
||||||
|
|
||||||
* gpgv.c (check_trustdb_stale): Stub.
|
* gpgv.c (check_trustdb_stale): Stub.
|
||||||
|
|
||||||
* trustdb.c (get_validity): Move the up-to-date check to
|
* trustdb.c (get_validity): Move the up-to-date check to
|
||||||
|
@ -1829,6 +1829,7 @@ main( int argc, char **argv )
|
|||||||
{"show-keyserver-url",VERIFY_SHOW_KEYSERVER},
|
{"show-keyserver-url",VERIFY_SHOW_KEYSERVER},
|
||||||
{"show-validity",VERIFY_SHOW_VALIDITY},
|
{"show-validity",VERIFY_SHOW_VALIDITY},
|
||||||
{"show-long-keyid",VERIFY_SHOW_LONG_KEYID},
|
{"show-long-keyid",VERIFY_SHOW_LONG_KEYID},
|
||||||
|
{"show-unusable-uids",VERIFY_SHOW_UNUSABLE_UIDS},
|
||||||
{NULL,0}
|
{NULL,0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1345,7 +1345,7 @@ check_sig_and_print( CTX c, KBNODE node )
|
|||||||
continue;
|
continue;
|
||||||
if ( !un->pkt->pkt.user_id->is_primary )
|
if ( !un->pkt->pkt.user_id->is_primary )
|
||||||
continue;
|
continue;
|
||||||
/* We want the textual user ID here */
|
/* We want the textual primary user ID here */
|
||||||
if ( un->pkt->pkt.user_id->attrib_data )
|
if ( un->pkt->pkt.user_id->attrib_data )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -1417,10 +1417,10 @@ check_sig_and_print( CTX c, KBNODE node )
|
|||||||
for( un=keyblock; un; un = un->next ) {
|
for( un=keyblock; un; un = un->next ) {
|
||||||
if( un->pkt->pkttype != PKT_USER_ID )
|
if( un->pkt->pkttype != PKT_USER_ID )
|
||||||
continue;
|
continue;
|
||||||
if ( un->pkt->pkt.user_id->is_revoked )
|
if((un->pkt->pkt.user_id->is_revoked
|
||||||
continue;
|
|| un->pkt->pkt.user_id->is_expired)
|
||||||
if ( un->pkt->pkt.user_id->is_expired )
|
&& !(opt.verify_options&VERIFY_SHOW_UNUSABLE_UIDS))
|
||||||
continue;
|
continue;
|
||||||
/* Only skip textual primaries */
|
/* Only skip textual primaries */
|
||||||
if ( un->pkt->pkt.user_id->is_primary &&
|
if ( un->pkt->pkt.user_id->is_primary &&
|
||||||
!un->pkt->pkt.user_id->attrib_data )
|
!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 );
|
un->pkt->pkt.user_id->len );
|
||||||
|
|
||||||
if(opt.verify_options&VERIFY_SHOW_VALIDITY)
|
if(opt.verify_options&VERIFY_SHOW_VALIDITY)
|
||||||
fprintf(log_stream(),"\" [%s]\n",
|
{
|
||||||
trust_value_to_string(get_validity(pk,
|
const char *valid;
|
||||||
un->pkt->
|
if(un->pkt->pkt.user_id->is_revoked)
|
||||||
pkt.user_id)));
|
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
|
else
|
||||||
fputs("\"\n", log_stream() );
|
fputs("\"\n", log_stream() );
|
||||||
}
|
}
|
||||||
|
@ -247,11 +247,12 @@ struct {
|
|||||||
#define LIST_SHOW_KEYRING (1<<7)
|
#define LIST_SHOW_KEYRING (1<<7)
|
||||||
#define LIST_SHOW_SIG_EXPIRE (1<<8)
|
#define LIST_SHOW_SIG_EXPIRE (1<<8)
|
||||||
|
|
||||||
#define VERIFY_SHOW_PHOTOS (1<<0)
|
#define VERIFY_SHOW_PHOTOS (1<<0)
|
||||||
#define VERIFY_SHOW_POLICY (1<<1)
|
#define VERIFY_SHOW_POLICY (1<<1)
|
||||||
#define VERIFY_SHOW_NOTATION (1<<2)
|
#define VERIFY_SHOW_NOTATION (1<<2)
|
||||||
#define VERIFY_SHOW_KEYSERVER (1<<3)
|
#define VERIFY_SHOW_KEYSERVER (1<<3)
|
||||||
#define VERIFY_SHOW_VALIDITY (1<<4)
|
#define VERIFY_SHOW_VALIDITY (1<<4)
|
||||||
#define VERIFY_SHOW_LONG_KEYID (1<<5)
|
#define VERIFY_SHOW_LONG_KEYID (1<<5)
|
||||||
|
#define VERIFY_SHOW_UNUSABLE_UIDS (1<<6)
|
||||||
|
|
||||||
#endif /*G10_OPTIONS_H*/
|
#endif /*G10_OPTIONS_H*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user