diff options
author | Werner Koch <wk@gnupg.org> | 1999-03-08 20:50:18 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1999-03-08 20:50:18 +0100 |
commit | b31145f3e25a3dd99ad2b84a4cd7ec0f43aafe2f (patch) | |
tree | c55d9d29f4fe50c598024dbaa31f8fb9f4c56299 /g10/keylist.c | |
parent | add some demo keys (diff) | |
download | gnupg2-b31145f3e25a3dd99ad2b84a4cd7ec0f43aafe2f.tar.xz gnupg2-b31145f3e25a3dd99ad2b84a4cd7ec0f43aafe2f.zip |
See ChangeLog: Mon Mar 8 20:47:17 CET 1999 Werner Koch
Diffstat (limited to 'g10/keylist.c')
-rw-r--r-- | g10/keylist.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/g10/keylist.c b/g10/keylist.c index 1861cd824..1462dbb2f 100644 --- a/g10/keylist.c +++ b/g10/keylist.c @@ -196,7 +196,7 @@ list_keyblock( KBNODE keyblock, int secret ) sk = NULL; keyid_from_pk( pk, keyid ); if( opt.with_colons ) { - trustletter = query_trust_info( pk ); + trustletter = query_trust_info( pk, NULL ); printf("pub:%c:%u:%d:%08lX%08lX:%s:%s:", trustletter, nbits_from_pk( pk ), @@ -222,8 +222,15 @@ list_keyblock( KBNODE keyblock, int secret ) for( kbctx=NULL; (node=walk_kbnode( keyblock, &kbctx, 0)) ; ) { if( node->pkt->pkttype == PKT_USER_ID ) { if( any ) { - if( opt.with_colons ) - printf("uid:::::::::"); + if( opt.with_colons ) { + byte namehash[20]; + + rmd160_hash_buffer( namehash, + node->pkt->pkt.user_id->name, + node->pkt->pkt.user_id->len ); + trustletter = query_trust_info( pk, namehash ); + printf("uid:%c::::::::", trustletter); + } else printf("uid%*s", 28, ""); } |