gpg: Fix printing of the user id during import.
authorWerner Koch <wk@gnupg.org>
Fri, 5 Apr 2019 15:02:43 +0000 (17:02 +0200)
committerWerner Koch <wk@gnupg.org>
Fri, 5 Apr 2019 15:02:43 +0000 (17:02 +0200)
commitea32842d5c2e2d262d32791130d7eae5c8c3edcf
treeabd6a0925cf27392ffc484f7d16c21c94b4ad33a
parent958172cc3acb7172bc5e1fa76efafe26695ed402
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>
g10/getkey.c
g10/import.c
g10/keydb.h