Home GnuPG
Diffusion GnuPG 6a87a0bd2501

gpg: Improve import's repair-key duplicate signature detection.

Description

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.

(cherry picked from commit 26746fe65d14a00773473c2d0d271406a5105bca)

  • GnuPG-bug-id: T3994
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Jun 7 2018, 6:41 PM
Parents
rGcedd754fcb03: gpg: Fix import's repair-key duplicate signature detection.
Branches
Unknown
Tags
Unknown
Tasks
T3994: import-clean drops a seemingly valid subkey