1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-04-13 22:21:09 +02:00

* pkclist.c (do_edit_ownertrust): Show all user IDs. This should

be enhanced to also show the current trust level.  Suggested by
Florian Weimer.
This commit is contained in:
Werner Koch 2002-10-17 13:49:30 +00:00
parent 8a2dcb3bcb
commit 1f8d80a1b3
2 changed files with 36 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2002-10-17 Werner Koch <wk@gnupg.org>
* pkclist.c (do_edit_ownertrust): Show all user IDs. This should
be enhanced to also show the current trust level. Suggested by
Florian Weimer.
2002-10-12 Werner Koch <wk@gnupg.org> 2002-10-12 Werner Koch <wk@gnupg.org>
* keygen.c (print_status_key_created): New. * keygen.c (print_status_key_created): New.

View File

@ -35,6 +35,7 @@
#include "trustdb.h" #include "trustdb.h"
#include "ttyio.h" #include "ttyio.h"
#include "status.h" #include "status.h"
#include "photoid.h"
#include "i18n.h" #include "i18n.h"
@ -255,6 +256,8 @@ do_edit_ownertrust (PKT_public_key *pk, int mode,
{ {
if( !mode ) if( !mode )
{ {
KBNODE keyblock, un;
tty_printf(_("No trust value assigned to:\n" tty_printf(_("No trust value assigned to:\n"
"%4u%c/%08lX %s \""), "%4u%c/%08lX %s \""),
nbits_from_pk( pk ), pubkey_letter( pk->pubkey_algo ), 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 ), tty_print_utf8_string( p, n ),
m_free(p); m_free(p);
tty_printf("\"\n"); 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); print_fingerprint (pk, NULL, 2);
tty_printf("\n"); tty_printf("\n");
} }
tty_printf (_( tty_printf (_(
"Please decide how far you trust this user to correctly\n" "Please decide how far you trust this user to correctly\n"
"verify other users' keys (by looking at passports,\n" "verify other users' keys (by looking at passports,\n"