1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

See ChangeLog: Sun Apr 18 20:48:15 CEST 1999 Werner Koch

This commit is contained in:
Werner Koch 1999-04-18 18:53:34 +00:00
parent 1feae2011c
commit ebb0ed57c7
4 changed files with 14 additions and 3 deletions

View file

@ -164,6 +164,7 @@ list_keyblock( KBNODE keyblock, int secret )
u32 keyid[2];
int any=0;
int trustletter = 0;
int ulti_hack = 0;
/* get the keyid from the keyblock */
node = find_kbnode( keyblock, secret? PKT_SECRET_KEY : PKT_PUBLIC_KEY );
@ -197,6 +198,8 @@ list_keyblock( KBNODE keyblock, int secret )
keyid_from_pk( pk, keyid );
if( opt.with_colons ) {
trustletter = query_trust_info( pk, NULL );
if( trustletter == 'u' )
ulti_hack = 1;
printf("pub:%c:%u:%d:%08lX%08lX:%s:%s:",
trustletter,
nbits_from_pk( pk ),
@ -225,7 +228,7 @@ list_keyblock( KBNODE keyblock, int secret )
if( opt.with_colons ) {
byte namehash[20];
if( pk ) {
if( pk && !ulti_hack ) {
rmd160_hash_buffer( namehash,
node->pkt->pkt.user_id->name,
node->pkt->pkt.user_id->len );