diff options
author | David Shaw <[email protected]> | 2003-02-02 15:47:43 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2003-02-02 15:47:43 +0000 |
commit | 6291f18371bedc974055649ea96ad19ba56f87e9 (patch) | |
tree | 533f53a35ffc2c924eb182fb99e8d242fa129746 /g10/import.c | |
parent | * gpgkeys_mailto.in: Fix regexp to work properly if the "keyid" is not a (diff) | |
download | gnupg-6291f18371bedc974055649ea96ad19ba56f87e9.tar.gz gnupg-6291f18371bedc974055649ea96ad19ba56f87e9.zip |
* keyedit.c (menu_revuid): Properly handle a nonselfsigned uid on a v4 key
(treat as a v4 revocation).
* import.c (print_import_check): Do not re-utf8 convert user IDs.
Diffstat (limited to 'g10/import.c')
-rw-r--r-- | g10/import.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/g10/import.c b/g10/import.c index 200b53360..83ae0b804 100644 --- a/g10/import.c +++ b/g10/import.c @@ -555,11 +555,10 @@ print_import_ok (PKT_public_key *pk, PKT_secret_key *sk, unsigned int reason) write_status_text (STATUS_IMPORT_OK, buf); } - void print_import_check (PKT_public_key * pk, PKT_user_id * id) { - char * buf, * p; + char * buf; byte fpr[24]; u32 keyid[2]; size_t i, pos = 0, n; @@ -573,14 +572,11 @@ print_import_check (PKT_public_key * pk, PKT_user_id * id) sprintf (buf+pos, "%02X", fpr[i]); strcat (buf, " "); pos += 1; - p = native_to_utf8 (id->name); - strcat (buf, p); + strcat (buf, id->name); write_status_text (STATUS_IMPORT_CHECK, buf); m_free (buf); - m_free (p); } - /**************** * Try to import one keyblock. Return an error only in serious cases, but * never for an invalid keyblock. It uses log_error to increase the @@ -632,7 +628,7 @@ import_one( const char *fname, KBNODE keyblock, if (opt.interactive) { if(is_status_enabled()) print_import_check (pk, uidnode->pkt->pkt.user_id); - merge_keys_and_selfsig (keyblock); + merge_keys_and_selfsig (keyblock); tty_printf ("\n"); show_basic_key_info (keyblock); tty_printf ("\n"); |