mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
* keyedit.c (show_key_with_all_names): Use list-option show-validity in
--edit-key interface as well.
This commit is contained in:
parent
726b36b647
commit
fa0cc6602b
2 changed files with 13 additions and 0 deletions
|
@ -1980,6 +1980,7 @@ show_key_with_all_names( KBNODE keyblock, int only_marked, int with_revoker,
|
|||
int i, rc;
|
||||
int do_warn = 0;
|
||||
byte pk_version=0;
|
||||
PKT_public_key *primary=NULL;
|
||||
|
||||
if (opt.with_colons)
|
||||
{
|
||||
|
@ -2010,6 +2011,7 @@ show_key_with_all_names( KBNODE keyblock, int only_marked, int with_revoker,
|
|||
}
|
||||
|
||||
pk_version=pk->version;
|
||||
primary=pk;
|
||||
}
|
||||
|
||||
if(with_revoker) {
|
||||
|
@ -2095,6 +2097,9 @@ show_key_with_all_names( KBNODE keyblock, int only_marked, int with_revoker,
|
|||
g10_errstr(rc) );
|
||||
}
|
||||
}
|
||||
|
||||
assert(primary);
|
||||
|
||||
/* the user ids */
|
||||
i = 0;
|
||||
for( node = keyblock; node; node = node->next ) {
|
||||
|
@ -2102,6 +2107,9 @@ show_key_with_all_names( KBNODE keyblock, int only_marked, int with_revoker,
|
|||
PKT_user_id *uid = node->pkt->pkt.user_id;
|
||||
++i;
|
||||
if( !only_marked || (only_marked && (node->flag & NODFLG_MARK_A))){
|
||||
if(opt.list_options&LIST_SHOW_VALIDITY)
|
||||
tty_printf("[%8.8s] ",
|
||||
trust_value_to_string(get_validity(primary,uid)));
|
||||
if( only_marked )
|
||||
tty_printf(" ");
|
||||
else if( node->flag & NODFLG_SELUID )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue