aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/homedir.c7
-rw-r--r--common/mapstrings.c1
-rw-r--r--common/util.h1
3 files changed, 9 insertions, 0 deletions
diff --git a/common/homedir.c b/common/homedir.c
index 830b1e2ce..8b54f9dda 100644
--- a/common/homedir.c
+++ b/common/homedir.c
@@ -1153,6 +1153,13 @@ gnupg_module_name (int which)
X(libexecdir, "scd", "scdaemon");
#endif
+ case GNUPG_MODULE_NAME_TPM2DAEMON:
+#ifdef GNUPG_DEFAULT_TPM2DAEMON
+ return GNUPG_DEFAULT_TPM2DAEMON;
+#else
+ X(libexecdir, "tpm2d", TPM2DAEMON_NAME);
+#endif
+
case GNUPG_MODULE_NAME_DIRMNGR:
#ifdef GNUPG_DEFAULT_DIRMNGR
return GNUPG_DEFAULT_DIRMNGR;
diff --git a/common/mapstrings.c b/common/mapstrings.c
index 614fddd12..318ca5bd1 100644
--- a/common/mapstrings.c
+++ b/common/mapstrings.c
@@ -50,6 +50,7 @@ static struct {
{ "GPGSM", GPGSM_NAME },
{ "GPG_AGENT", GPG_AGENT_NAME },
{ "SCDAEMON", SCDAEMON_NAME },
+ { "TPM2DAEMON",TPM2DAEMON_NAME},
{ "DIRMNGR", DIRMNGR_NAME },
{ "G13", G13_NAME },
{ "GPGCONF", GPGCONF_NAME },
diff --git a/common/util.h b/common/util.h
index 18217af7b..56187f1e0 100644
--- a/common/util.h
+++ b/common/util.h
@@ -293,6 +293,7 @@ char *_gnupg_socketdir_internal (int skip_checks, unsigned *r_info);
#define GNUPG_MODULE_NAME_DIRMNGR_LDAP 11
#define GNUPG_MODULE_NAME_GPGV 12
#define GNUPG_MODULE_NAME_KEYBOXD 13
+#define GNUPG_MODULE_NAME_TPM2DAEMON 14
const char *gnupg_module_name (int which);
void gnupg_module_name_flush_some (void);
void gnupg_set_builddir (const char *newdir);