mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
gpg: Add option '--disable-dirmngr'.
* doc/gpg.texi: Document new option. * g10/call-dirmngr.c (create_context): Fail if option is given. * g10/gpg.c (cmd_and_opt_values): New value. (opts): New option. (gpgconf_list): Add new option. (main): Handle new option. * g10/options.h (struct opt): New field 'disable_dirmngr'. * tools/gpgconf-comp.c (gc_options_gpg): New option. GnuPG-bug-id: 3334 Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
81074c3b02
commit
c4506f624e
5 changed files with 15 additions and 0 deletions
|
@ -374,6 +374,7 @@ enum cmd_and_opt_values
|
|||
oPersonalCompressPreferences,
|
||||
oAgentProgram,
|
||||
oDirmngrProgram,
|
||||
oDisableDirmngr,
|
||||
oDisplay,
|
||||
oTTYname,
|
||||
oTTYtype,
|
||||
|
@ -837,6 +838,7 @@ static ARGPARSE_OPTS opts[] = {
|
|||
|
||||
ARGPARSE_s_s (oAgentProgram, "agent-program", "@"),
|
||||
ARGPARSE_s_s (oDirmngrProgram, "dirmngr-program", "@"),
|
||||
ARGPARSE_s_n (oDisableDirmngr, "disable-dirmngr", "@"),
|
||||
ARGPARSE_s_s (oDisplay, "display", "@"),
|
||||
ARGPARSE_s_s (oTTYname, "ttyname", "@"),
|
||||
ARGPARSE_s_s (oTTYtype, "ttytype", "@"),
|
||||
|
@ -1857,6 +1859,7 @@ gpgconf_list (const char *configfile)
|
|||
es_printf ("compliance:%lu:\"%s:\n", GC_OPT_FLAG_DEFAULT, "gnupg");
|
||||
es_printf ("default-new-key-algo:%lu:\n", GC_OPT_FLAG_NONE);
|
||||
es_printf ("trust-model:%lu:\n", GC_OPT_FLAG_NONE);
|
||||
es_printf ("disable-dirmngr:%lu:\n", GC_OPT_FLAG_NONE);
|
||||
|
||||
/* The next one is an info only item and should match the macros at
|
||||
the top of keygen.c */
|
||||
|
@ -3388,6 +3391,7 @@ main (int argc, char **argv)
|
|||
break;
|
||||
case oAgentProgram: opt.agent_program = pargs.r.ret_str; break;
|
||||
case oDirmngrProgram: opt.dirmngr_program = pargs.r.ret_str; break;
|
||||
case oDisableDirmngr: opt.disable_dirmngr = 1; break;
|
||||
case oWeakDigest:
|
||||
additional_weak_digest(pargs.r.ret_str);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue