diff options
author | Werner Koch <[email protected]> | 2002-10-17 13:49:30 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2002-10-17 13:49:30 +0000 |
commit | 1f8d80a1b33fb8426ec6e4a9c8620eafcd8d946f (patch) | |
tree | 93af1245887f73dfa1ee313e7440187fd8f97009 /g10/pkclist.c | |
parent | Bump version number. (diff) | |
download | gnupg-1f8d80a1b33fb8426ec6e4a9c8620eafcd8d946f.tar.gz gnupg-1f8d80a1b33fb8426ec6e4a9c8620eafcd8d946f.zip |
* pkclist.c (do_edit_ownertrust): Show all user IDs. This should
be enhanced to also show the current trust level. Suggested by
Florian Weimer.
Diffstat (limited to 'g10/pkclist.c')
-rw-r--r-- | g10/pkclist.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/g10/pkclist.c b/g10/pkclist.c index 5bb5446d6..63bb0c13f 100644 --- a/g10/pkclist.c +++ b/g10/pkclist.c @@ -35,6 +35,7 @@ #include "trustdb.h" #include "ttyio.h" #include "status.h" +#include "photoid.h" #include "i18n.h" @@ -255,6 +256,8 @@ do_edit_ownertrust (PKT_public_key *pk, int mode, { if( !mode ) { + KBNODE keyblock, un; + tty_printf(_("No trust value assigned to:\n" "%4u%c/%08lX %s \""), nbits_from_pk( pk ), pubkey_letter( pk->pubkey_algo ), @@ -263,9 +266,36 @@ do_edit_ownertrust (PKT_public_key *pk, int mode, tty_print_utf8_string( p, n ), m_free(p); tty_printf("\"\n"); + + keyblock = get_pubkeyblock (keyid); + if (!keyblock) + BUG (); + 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; + /* Only skip textual primaries */ + if (un->pkt->pkt.user_id->is_primary && + !un->pkt->pkt.user_id->attrib_data ) + continue; + + if(opt.show_photos && un->pkt->pkt.user_id->attrib_data) + show_photos(un->pkt->pkt.user_id->attribs, + un->pkt->pkt.user_id->numattribs,pk,NULL); + + tty_printf (" %s", _(" aka \"")); + tty_print_utf8_string (un->pkt->pkt.user_id->name, + un->pkt->pkt.user_id->len ); + tty_printf("\"\n"); + } + print_fingerprint (pk, NULL, 2); tty_printf("\n"); } + tty_printf (_( "Please decide how far you trust this user to correctly\n" "verify other users' keys (by looking at passports,\n" |