diff options
author | Werner Koch <[email protected]> | 2019-07-01 13:14:59 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2019-07-01 13:23:23 +0000 |
commit | adb120e663fc5e78f714976c6e42ae233c1990b0 (patch) | |
tree | 0e3df1cd79ac5d77abac88011100a0659845e1e4 /g10/options.h | |
parent | gpg: Make read_block in import.c more flexible. (diff) | |
download | gnupg-adb120e663fc5e78f714976c6e42ae233c1990b0.tar.gz gnupg-adb120e663fc5e78f714976c6e42ae233c1990b0.zip |
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 <[email protected]>
(cherry picked from commit 15a425a1dfe60bd976b17671aa8e3d9aed12e1c0)
Diffstat (limited to '')
-rw-r--r-- | g10/options.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/options.h b/g10/options.h index a7677e605..0f007c16c 100644 --- a/g10/options.h +++ b/g10/options.h @@ -356,6 +356,7 @@ EXTERN_UNLESS_MAIN_MODULE int memory_stat_debug_mode; #define IMPORT_RESTORE (1<<10) #define IMPORT_REPAIR_KEYS (1<<11) #define IMPORT_DRY_RUN (1<<12) +#define IMPORT_SELF_SIGS_ONLY (1<<14) #define EXPORT_LOCAL_SIGS (1<<0) #define EXPORT_ATTRIBUTES (1<<1) |