mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-25 15:27:03 +01:00
dirmngr: Simplify --gpgconf-list output
* dirmngr/dirmngr.c (main): Keep only values with the default flag. -- This is not anymore required abnd brings us in sync with 2.3.
This commit is contained in:
parent
bcf446b70c
commit
0b76ef48e1
@ -1587,68 +1587,19 @@ main (int argc, char **argv)
|
|||||||
else if (cmd == aGPGConfList)
|
else if (cmd == aGPGConfList)
|
||||||
{
|
{
|
||||||
unsigned long flags = 0;
|
unsigned long flags = 0;
|
||||||
char *filename;
|
|
||||||
char *filename_esc;
|
char *filename_esc;
|
||||||
|
|
||||||
filename = percent_escape (opt.config_filename, NULL);
|
|
||||||
es_printf ("gpgconf-dirmngr.conf:%lu:\"%s\n",
|
|
||||||
GC_OPT_FLAG_DEFAULT, filename);
|
|
||||||
xfree (filename);
|
|
||||||
|
|
||||||
es_printf ("verbose:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
es_printf ("quiet:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
es_printf ("debug-level:%lu:\"none\n", flags | GC_OPT_FLAG_DEFAULT);
|
es_printf ("debug-level:%lu:\"none\n", flags | GC_OPT_FLAG_DEFAULT);
|
||||||
es_printf ("log-file:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
es_printf ("force:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
|
|
||||||
/* --csh and --sh are mutually exclusive, something we can not
|
|
||||||
express in GPG Conf. --options is only usable from the
|
|
||||||
command line, really. --debug-all interacts with --debug,
|
|
||||||
and having both of them is thus problematic. --no-detach is
|
|
||||||
also only usable on the command line. --batch is unused. */
|
|
||||||
|
|
||||||
filename = make_filename (gnupg_homedir (),
|
|
||||||
"dirmngr_ldapservers.conf",
|
|
||||||
NULL);
|
|
||||||
filename_esc = percent_escape (filename, NULL);
|
|
||||||
es_printf ("ldapserverlist-file:%lu:\"%s\n", flags | GC_OPT_FLAG_DEFAULT,
|
|
||||||
filename_esc);
|
|
||||||
xfree (filename_esc);
|
|
||||||
xfree (filename);
|
|
||||||
|
|
||||||
es_printf ("ldaptimeout:%lu:%u\n",
|
es_printf ("ldaptimeout:%lu:%u\n",
|
||||||
flags | GC_OPT_FLAG_DEFAULT, DEFAULT_LDAP_TIMEOUT);
|
flags | GC_OPT_FLAG_DEFAULT, DEFAULT_LDAP_TIMEOUT);
|
||||||
es_printf ("max-replies:%lu:%u\n",
|
es_printf ("max-replies:%lu:%u\n",
|
||||||
flags | GC_OPT_FLAG_DEFAULT, DEFAULT_MAX_REPLIES);
|
flags | GC_OPT_FLAG_DEFAULT, DEFAULT_MAX_REPLIES);
|
||||||
es_printf ("allow-ocsp:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
es_printf ("allow-version-check:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
es_printf ("ocsp-responder:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
es_printf ("ocsp-signer:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
|
|
||||||
es_printf ("faked-system-time:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
es_printf ("no-greeting:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
|
|
||||||
es_printf ("disable-http:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
es_printf ("disable-ldap:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
es_printf ("honor-http-proxy:%lu\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
es_printf ("http-proxy:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
es_printf ("ldap-proxy:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
es_printf ("only-ldap-proxy:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
es_printf ("ignore-ldap-dp:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
es_printf ("ignore-http-dp:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
es_printf ("ignore-ocsp-service-url:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
/* Note: The next one is to fix a typo in gpgconf - should be
|
|
||||||
removed eventually. */
|
|
||||||
es_printf ("ignore-ocsp-servic-url:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
|
|
||||||
es_printf ("use-tor:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
|
|
||||||
filename_esc = percent_escape (get_default_keyserver (0), NULL);
|
filename_esc = percent_escape (get_default_keyserver (0), NULL);
|
||||||
es_printf ("keyserver:%lu:\"%s:\n", flags | GC_OPT_FLAG_DEFAULT,
|
es_printf ("keyserver:%lu:\"%s:\n", flags | GC_OPT_FLAG_DEFAULT,
|
||||||
filename_esc);
|
filename_esc);
|
||||||
xfree (filename_esc);
|
xfree (filename_esc);
|
||||||
|
|
||||||
es_printf ("nameserver:%lu:\n", flags | GC_OPT_FLAG_NONE);
|
|
||||||
es_printf ("resolver-timeout:%lu:%u\n",
|
es_printf ("resolver-timeout:%lu:%u\n",
|
||||||
flags | GC_OPT_FLAG_DEFAULT, 0);
|
flags | GC_OPT_FLAG_DEFAULT, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user