mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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
This commit is contained in:
parent
a16f726f94
commit
6c26e593df
5 changed files with 37 additions and 5 deletions
12
g10/import.c
12
g10/import.c
|
@ -225,8 +225,20 @@ parse_import_options(char *str,unsigned int *options,int noisy)
|
|||
{NULL,0,NULL,NULL}
|
||||
};
|
||||
int rc;
|
||||
int saved_self_sigs_only;
|
||||
|
||||
/* We need to set a flag indicating wether the user has set
|
||||
* IMPORT_SELF_SIGS_ONLY or it came from the default. */
|
||||
saved_self_sigs_only = (*options & IMPORT_SELF_SIGS_ONLY);
|
||||
saved_self_sigs_only &= ~IMPORT_SELF_SIGS_ONLY;
|
||||
|
||||
rc = parse_options (str, options, import_opts, noisy);
|
||||
|
||||
if (rc && (*options & IMPORT_SELF_SIGS_ONLY))
|
||||
opt.flags.expl_import_self_sigs_only = 1;
|
||||
else
|
||||
*options |= saved_self_sigs_only;
|
||||
|
||||
if (rc && (*options & IMPORT_RESTORE))
|
||||
{
|
||||
/* Alter other options we want or don't want for restore. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue