summaryrefslogtreecommitdiffstats
path: root/dirmngr
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2014-03-12 18:24:52 +0100
committerWerner Koch <wk@gnupg.org>2014-03-12 18:35:36 +0100
commit6dd5d99a61f24aff862ccba9f7410d7f1af87c05 (patch)
tree2fbd908268f7bf2b614884edabe09f2e00df5627 /dirmngr
parentdirmngr: Detect dead keyservers and try another one. (diff)
downloadgnupg2-6dd5d99a61f24aff862ccba9f7410d7f1af87c05.tar.xz
gnupg2-6dd5d99a61f24aff862ccba9f7410d7f1af87c05.zip
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.
Diffstat (limited to 'dirmngr')
-rw-r--r--dirmngr/dirmngr.c22
1 files changed, 3 insertions, 19 deletions
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