Home GnuPG
Diffusion GnuPG 633c1fea5f0d

gpg: Collapse duplicate subkeys.

Description

gpg: Collapse duplicate subkeys.

* g10/options.h (IMPORT_COLLAPSE_UIDS): New.
(IMPORT_COLLAPSE_SUBKEYS): New.
* g10/gpg.c (main): Make them the default.
* g10/import.c (parse_import_options): New import options
"no-collapse-uids" and "no-collapse_subkeys".
(collapse_subkeys): New.
(import_one_real): Collapse subkeys and allow disabling the collapsing
using the new options.
(read_key_from_file_or_buffer): Always collapse subkeys.
* g10/keyedit.c (fix_keyblock): Call collapse_subkeys.
  • GnuPG-bug-id: T4421
  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Aug 25 2020, 10:33 AM
Parents
rG96e15051ba16: Add a new dist signing key
Branches
Unknown
Tags
Unknown
Tasks
T4421: import-export does not remove duplicated subkeys