diff options
author | Werner Koch <wk@gnupg.org> | 1999-07-23 14:03:01 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1999-07-23 14:03:01 +0200 |
commit | 843742c0865ace27fb352303ef59ae8ecc838b51 (patch) | |
tree | d8573ab4937878054ba84e9f8e4367cd0f127979 /g10 | |
parent | See ChangeLog: Thu Jul 22 20:03:03 CEST 1999 Werner Koch (diff) | |
download | gnupg2-843742c0865ace27fb352303ef59ae8ecc838b51.tar.xz gnupg2-843742c0865ace27fb352303ef59ae8ecc838b51.zip |
See ChangeLog: Fri Jul 23 13:53:03 CEST 1999 Werner KochV0-9-9
Diffstat (limited to 'g10')
-rw-r--r-- | g10/ChangeLog | 20 | ||||
-rw-r--r-- | g10/keyedit.c | 2 | ||||
-rw-r--r-- | g10/pkclist.c | 39 |
3 files changed, 58 insertions, 3 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog index 5fa88ec54..08ef6b11d 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,3 +1,23 @@ +Fri Jul 23 13:53:03 CEST 1999 Werner Koch <wk@isil.d.shuttle.de> + + + * ringedit.c (enum_keyblocks): Removed annoying error message in cases + when we have no keyring at all to enum. + + * getkey.c (classify_user_id): Rewrote to relax the recognition of + keyIDs and fingerprints (Michael). + + * mainproc.c (check_sig_and_print): Print status NO_PUBKEY. + (print_failed_pkenc): Print status NO_SECKEY. + + * import.c (mark_non_selfsigned_uids_valid): New. + * g10.c: New option --allow-non-selfsigned-uid. + + * pkclist.c (print_fpr): New. + (do_we_trust_pre): Print the fpr before asking whether to use the key + anyway. + (do_edit_ownertrust): Likewise. + Thu Jul 22 20:03:03 CEST 1999 Werner Koch <wk@isil.d.shuttle.de> diff --git a/g10/keyedit.c b/g10/keyedit.c index 7025b4d26..5b04e2883 100644 --- a/g10/keyedit.c +++ b/g10/keyedit.c @@ -655,7 +655,7 @@ keyedit_menu( const char *username, STRLIST locusr, STRLIST commands, toggle = 0; cur_keyblock = keyblock; for(;;) { /* main loop */ - int i, arg_number=0; + int i, arg_number; char *p; tty_printf("\n"); diff --git a/g10/pkclist.c b/g10/pkclist.c index 01d12babb..6dff74219 100644 --- a/g10/pkclist.c +++ b/g10/pkclist.c @@ -39,6 +39,36 @@ #define CONTROL_D ('D' - 'A' + 1) +/* fixme: we have nearly the same code in keyedit.c */ +static void +print_fpr( PKT_public_key *pk ) +{ + byte array[MAX_FINGERPRINT_LEN], *p; + size_t i, n; + + fingerprint_from_pk( pk, array, &n ); + p = array; + /* Translators: this shoud fit into 24 bytes to that the fingerprint + * data is properly aligned with the user ID */ + tty_printf(_(" Fingerprint:")); + if( n == 20 ) { + for(i=0; i < n ; i++, i++, p += 2 ) { + if( i == 10 ) + tty_printf(" "); + tty_printf(" %02X%02X", *p, p[1] ); + } + } + else { + for(i=0; i < n ; i++, p++ ) { + if( i && !(i%8) ) + tty_printf(" "); + tty_printf(" %02X", *p ); + } + } + tty_printf("\n"); +} + + static void show_paths( ulong lid, int only_first ) @@ -148,7 +178,9 @@ do_edit_ownertrust( ulong lid, int mode, unsigned *new_trust, int defer_help ) p = get_user_id( keyid, &n ); tty_print_string( p, n ), m_free(p); - tty_printf("\"\n\n"); + tty_printf("\"\n"); + print_fpr( pk ); + tty_printf("\n"); } tty_printf(_( "Please decide how far you trust this user to correctly\n" @@ -375,6 +407,7 @@ do_we_trust( PKT_public_key *pk, int trustlevel ) } + /**************** * wrapper around do_we_trust, so we can ask whether to use the * key anyway. @@ -402,7 +435,9 @@ do_we_trust_pre( PKT_public_key *pk, int trustlevel ) p = get_user_id( keyid, &n ); tty_print_string( p, n ), m_free(p); - tty_printf("\"\n\n"); + tty_printf("\"\n"); + print_fpr( pk ); + tty_printf("\n"); tty_printf(_( "It is NOT certain that the key belongs to its owner.\n" |