gpg: Improve import's repair-key duplicate signature detection.
authorWerner Koch <wk@gnupg.org>
Thu, 7 Jun 2018 16:41:17 +0000 (18:41 +0200)
committerWerner Koch <wk@gnupg.org>
Thu, 7 Jun 2018 16:41:17 +0000 (18:41 +0200)
commit26746fe65d14a00773473c2d0d271406a5105bca
tree44b117f23f5e39250e1d50e539197dcd3aa600e8
parent26bce2f01d2029ea2b8a8dbbe36118e3c83c5cba
gpg: Improve import's repair-key duplicate signature detection.

* g10/key-check.c (key_check_all_keysigs): Factor some code out to ...
(remove_duplicate_sigs): new.
(key_check_all_keysigs): Call remove_duplicate_sigs again after
reordering.
--

This is a follupup for commit 26bce2f01d2029ea2b8a8dbbe36118e3c83c5cba
to cleanup the code and to add a second de-duplicate step when needed.

GnuPG-bug-id: 3994
Signed-off-by: Werner Koch <wk@gnupg.org>
g10/key-check.c