mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Fix printing of the user id during import.
* g10/getkey.c (struct keyid_list): Add field fprlen. (cache_user_id): Set and test it. (get_user_id_byfpr): Make static, add arg fprlen and use it. (get_user_id_byfpr_native): Add arg fprlen and change all callers. -- This was a regression in the 2.3 base. GnuPG-bug-id: 3801 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
958172cc3a
commit
ea32842d5c
3 changed files with 17 additions and 14 deletions
|
@ -2028,7 +2028,7 @@ import_one (ctrl_t ctrl,
|
|||
/* We are ready. */
|
||||
if (!opt.quiet && !silent)
|
||||
{
|
||||
char *p = get_user_id_byfpr_native (ctrl, fpr2);
|
||||
char *p = get_user_id_byfpr_native (ctrl, fpr2, fpr2len);
|
||||
log_info (_("key %s: public key \"%s\" imported\n"),
|
||||
keystr(keyid), p);
|
||||
xfree(p);
|
||||
|
@ -2114,7 +2114,7 @@ import_one (ctrl_t ctrl,
|
|||
/* We are ready. */
|
||||
if (!opt.quiet && !silent)
|
||||
{
|
||||
char *p = get_user_id_byfpr_native (ctrl, fpr2);
|
||||
char *p = get_user_id_byfpr_native (ctrl, fpr2, fpr2len);
|
||||
if (n_uids == 1 )
|
||||
log_info( _("key %s: \"%s\" 1 new user ID\n"),
|
||||
keystr(keyid),p);
|
||||
|
@ -2175,7 +2175,7 @@ import_one (ctrl_t ctrl,
|
|||
|
||||
if (!opt.quiet && !silent)
|
||||
{
|
||||
char *p = get_user_id_byfpr_native (ctrl, fpr2);
|
||||
char *p = get_user_id_byfpr_native (ctrl, fpr2, fpr2len);
|
||||
log_info( _("key %s: \"%s\" not changed\n"),keystr(keyid),p);
|
||||
xfree(p);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue