diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2021-04-23 04:10:04 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2021-04-23 04:10:04 +0200 |
commit | 97ba94e52b2390f43fc1ac7db98e8ee7a37ddfb1 (patch) | |
tree | a7f5276bc0e184c675a486ba9b857aa527f3386d /tools/gpgconf-comp.c | |
parent | speedo: Automatically select Authenticode signing cert. (diff) | |
download | gnupg2-97ba94e52b2390f43fc1ac7db98e8ee7a37ddfb1.tar.xz gnupg2-97ba94e52b2390f43fc1ac7db98e8ee7a37ddfb1.zip |
tools: Fix for --disable-tpm2d.
* tools/gpgconf-comp.c: Conditionalize with BUILD_WITH_TPM2D.
--
GnuPG-bug-id: 5408
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'tools/gpgconf-comp.c')
-rw-r--r-- | tools/gpgconf-comp.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c index 2a5087e1f..12916a64e 100644 --- a/tools/gpgconf-comp.c +++ b/tools/gpgconf-comp.c @@ -93,7 +93,9 @@ gc_error (int status, int errnum, const char *fmt, ...) /* Forward declaration. */ static void gpg_agent_runtime_change (int killflag); static void scdaemon_runtime_change (int killflag); +#ifdef BUILD_WITH_TPM2D static void tpm2daemon_runtime_change (int killflag); +#endif static void dirmngr_runtime_change (int killflag); static void keyboxd_runtime_change (int killflag); @@ -379,6 +381,7 @@ static known_option_t known_options_scdaemon[] = { NULL } }; +#ifdef BUILD_WITH_TPM2D /* The known options of the GC_COMPONENT_TPM2DAEMON component. */ static known_option_t known_options_tpm2daemon[] = { @@ -393,6 +396,7 @@ static known_option_t known_options_tpm2daemon[] = { NULL } }; +#endif /* The known options of the GC_COMPONENT_GPG component. */ @@ -666,9 +670,11 @@ static struct GNUPG_MODULE_NAME_SCDAEMON, SCDAEMON_NAME ".conf", known_options_scdaemon, NULL, scdaemon_runtime_change}, +#ifdef BUILD_WITH_TPM2D { TPM2DAEMON_NAME, TPM2DAEMON_DISP_NAME, "gnupg", N_("TPM"), GNUPG_MODULE_NAME_TPM2DAEMON, TPM2DAEMON_NAME ".conf", known_options_tpm2daemon, NULL, tpm2daemon_runtime_change}, +#endif { DIRMNGR_NAME, DIRMNGR_DISP_NAME, "gnupg", N_("Network"), GNUPG_MODULE_NAME_DIRMNGR, DIRMNGR_NAME ".conf", @@ -802,6 +808,7 @@ scdaemon_runtime_change (int killflag) } +#ifdef BUILD_WITH_TPM2D static void tpm2daemon_runtime_change (int killflag) { @@ -844,6 +851,7 @@ tpm2daemon_runtime_change (int killflag) pgmname, argv[cmdidx], gpg_strerror (err)); gnupg_release_process (pid); } +#endif static void |