aboutsummaryrefslogtreecommitdiffstats
path: root/g10/options.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-04-13 12:25:16 +0000
committerWerner Koch <[email protected]>2021-04-13 12:33:50 +0000
commit6c26e593df51475921410ac97e9227df6b258618 (patch)
tree6dc3982e9453c4b1f83684e7797835ff7cf01e56 /g10/options.h
parentcommon: Fix memory leaks. (diff)
downloadgnupg-6c26e593df51475921410ac97e9227df6b258618.tar.gz
gnupg-6c26e593df51475921410ac97e9227df6b258618.zip
gpg: Do not use self-sigs-only for LDAP keyserver imports.
* dirmngr/ks-engine-ldap.c (ks_ldap_get): Print a SOURCE status. * g10/options.h (opts): New field expl_import_self_sigs_only. * g10/import.c (parse_import_options): Set it. * g10/keyserver.c (keyserver_get_chunk): Add special options for LDAP. -- I can be assumed that configured LDAP servers are somehow curated and not affected by rogue key signatures as the HKP servers are. Thus we can allow the import of key signature from LDAP keyservers by default. GnuPG-bug-id: 5387
Diffstat (limited to 'g10/options.h')
-rw-r--r--g10/options.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/options.h b/g10/options.h
index 958d3fb87..fca23cb5c 100644
--- a/g10/options.h
+++ b/g10/options.h
@@ -256,6 +256,9 @@ struct
unsigned int force_sign_key:1;
/* On key generation do not set the ownertrust. */
unsigned int no_auto_trust_new_key:1;
+ /* The next flag is set internally iff IMPORT_SELF_SIGS_ONLY has
+ * been set by the user and is not the default value. */
+ unsigned int expl_import_self_sigs_only:1;
} flags;
/* Linked list of ways to find a key if the key isn't on the local