From 6dd5d99a61f24aff862ccba9f7410d7f1af87c05 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 12 Mar 2014 18:24:52 +0100 Subject: gpg: Add option --dirmngr-program. * g10/gpg.c: Add option --dirmngr-program. * g10/options.h (struct opt): Add field dirmngr_program. * g10/call-dirmngr.c (create_context): Use new var. * dirmngr/dirmngr.c: Include gc-opt-flags.h. (main): Remove GC_OPT_FLAG_*. * tools/gpgconf-comp.c (GC_OPT_FLAG_NO_CHANGE): Move macro to ... * common/gc-opt-flags.h: here. --- dirmngr/dirmngr.c | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'dirmngr/dirmngr.c') diff --git a/dirmngr/dirmngr.c b/dirmngr/dirmngr.c index 0cbdc7ba0..7bcff7a6a 100644 --- a/dirmngr/dirmngr.c +++ b/dirmngr/dirmngr.c @@ -57,6 +57,7 @@ #include "asshelp.h" #include "ldap-wrapper.h" #include "../common/init.h" +#include "gc-opt-flags.h" /* The plain Windows version uses the windows service system. For example to start the service you may use "sc start dirmngr". @@ -709,7 +710,7 @@ main (int argc, char **argv) } /* If --daemon has been given on the command line but not --homedir, - we switch to /etc/dirmngr as default home directory. Note, that + we switch to /etc/gnupg as default home directory. Note, that this also overrides the GNUPGHOME environment variable. */ if (opt.system_daemon && !homedir_seen) { @@ -910,7 +911,7 @@ main (int argc, char **argv) if (cmd == aServer) { - /* Note that this server mode is maily useful for debugging. */ + /* Note that this server mode is mainly useful for debugging. */ if (argc) wrong_args ("--server"); @@ -1193,23 +1194,6 @@ main (int argc, char **argv) char *filename; char *filename_esc; - /* List options and default values in the GPG Conf format. */ - -/* The following list is taken from gnupg/tools/gpgconf-comp.c. */ -/* Option flags. YOU MUST NOT CHANGE THE NUMBERS OF THE EXISTING - FLAGS, AS THEY ARE PART OF THE EXTERNAL INTERFACE. */ -#define GC_OPT_FLAG_NONE 0UL -/* The DEFAULT flag for an option indicates that the option has a - default value. */ -#define GC_OPT_FLAG_DEFAULT (1UL << 4) -/* The DEF_DESC flag for an option indicates that the option has a - default, which is described by the value of the default field. */ -#define GC_OPT_FLAG_DEF_DESC (1UL << 5) -/* The NO_ARG_DESC flag for an option indicates that the argument has - a default, which is described by the value of the ARGDEF field. */ -#define GC_OPT_FLAG_NO_ARG_DESC (1UL << 6) -#define GC_OPT_FLAG_NO_CHANGE (1UL <<7) - #ifdef HAVE_W32_SYSTEM /* On Windows systems, dirmngr always runs as system daemon, and the per-user configuration is never used. So we short-cut -- cgit v1.2.3