gpg: New import and keyserver option "self-sigs-only"
authorWerner Koch <wk@gnupg.org>
Mon, 1 Jul 2019 13:14:59 +0000 (15:14 +0200)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Fri, 1 Jul 2022 16:06:43 +0000 (17:06 +0100)
commitb00c70b6e86e87d360387210824cf1c541cb07a3
tree2f13d270b694bb1fe167a4a555b39ef56b6a25e4
parent1ee404fb23c55b69f19e16c4bd90ecd4b80caaba
gpg: New import and keyserver option "self-sigs-only"

* g10/options.h (IMPORT_SELF_SIGS_ONLY): New.
* g10/import.c (parse_import_options): Add option "self-sigs-only".
(read_block): Handle that option.
--

This option is intended to help against importing keys with many bogus
key-signatures.  It has obvious drawbacks and is not a bullet-proof
solution because a self-signature can also be faked and would be
detected only later.

GnuPG-bug-id: 4591
Signed-off-by: Werner Koch <wk@gnupg.org>
(cherry picked from commit 15a425a1dfe60bd976b17671aa8e3d9aed12e1c0)
(cherry picked from commit adb120e663fc5e78f714976c6e42ae233c1990b0)

Gbp-Pq: Topic from-2.2.17
Gbp-Pq: Name gpg-New-import-and-keyserver-option-self-sigs-only.patch
doc/gpg.texi
g10/import.c
g10/options.h