From 5fd7ff3488d64cddad9b0f767ef21059fe52be71 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 14 Dec 2010 19:17:58 +0000 Subject: Tweaks for gpgconf. Fixed dirmngr bug 1010. --- tools/ChangeLog | 6 ++++++ tools/gpgconf-comp.c | 23 ++++++++++++++++++++--- 2 files changed, 26 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/ChangeLog b/tools/ChangeLog index c6ac33207..110e43ef1 100644 --- a/tools/ChangeLog +++ b/tools/ChangeLog @@ -1,3 +1,9 @@ +2010-12-14 Werner Koch + + * gpgconf-comp.c (gc_options_gpg_agent, gc_options_scdaemon) + (gc_options_gpg, gc_options_gpgsm, gc_options_dirmngr): Define to + NULL if corresponding BUILD_WITH_foo is not defined. + 2010-12-02 Werner Koch * no-libgcrypt.c (gcry_cipher_algo_name): New. diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c index d0372469d..74feadb6c 100644 --- a/tools/gpgconf-comp.c +++ b/tools/gpgconf-comp.c @@ -51,7 +51,6 @@ #include "gc-opt-flags.h" #include "gpgconf.h" - /* There is a problem with gpg 1.4 under Windows: --gpgconf-list returns a plain filename without escaping. As long as we have not fixed that we need to use gpg2. */ @@ -467,6 +466,9 @@ typedef struct gc_option gc_option_t; #define GC_OPTION_NULL { NULL } +#ifndef BUILD_WITH_AGENT +#define gc_options_gpg_agent NULL +#else /* The options of the GC_COMPONENT_GPG_AGENT component. */ static gc_option_t gc_options_gpg_agent[] = { @@ -569,8 +571,12 @@ static gc_option_t gc_options_gpg_agent[] = GC_OPTION_NULL }; +#endif /*BUILD_WITH_AGENT*/ +#ifndef BUILD_WITH_SCDAEMON +#define gc_options_scdaemon NULL +#else /* The options of the GC_COMPONENT_SCDAEMON component. */ static gc_option_t gc_options_scdaemon[] = { @@ -636,8 +642,11 @@ static gc_option_t gc_options_scdaemon[] = GC_OPTION_NULL }; +#endif /*BUILD_WITH_SCDAEMON*/ - +#ifndef BUILD_WITH_GPG +#define gc_options_gpg NULL +#else /* The options of the GC_COMPONENT_GPG component. */ static gc_option_t gc_options_gpg[] = { @@ -710,9 +719,12 @@ static gc_option_t gc_options_gpg[] = GC_OPTION_NULL }; +#endif /*BUILD_WITH_GPG*/ - +#ifndef BUILD_WITH_GPGSM +#define gc_options_gpgsm NULL +#else /* The options of the GC_COMPONENT_GPGSM component. */ static gc_option_t gc_options_gpgsm[] = { @@ -802,8 +814,12 @@ static gc_option_t gc_options_gpgsm[] = GC_OPTION_NULL }; +#endif /*BUILD_WITH_GPGSM*/ +#ifndef BUILD_WITH_DIRMNGR +#define gc_options_dirmngr NULL +#else /* The options of the GC_COMPONENT_DIRMNGR component. */ static gc_option_t gc_options_dirmngr[] = { @@ -942,6 +958,7 @@ static gc_option_t gc_options_dirmngr[] = GC_OPTION_NULL }; +#endif /*BUILD_WITH_DIRMNGR*/ /* The options of the GC_COMPONENT_PINENTRY component. */ -- cgit v1.2.3