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:43:17 +0000 (18:43 +0200)
commit6a87a0bd2501d82f4a6263608e4856e841305caf
tree805fa54ab2752c192fe8caf99466374c489bcfa8
parentcedd754fcb03f6dad6e462efc3d347bcef4ec83a
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>
(cherry picked from commit 26746fe65d14a00773473c2d0d271406a5105bca)
g10/key-check.c