diff options
author | Werner Koch <wk@gnupg.org> | 2016-10-27 11:45:01 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-10-27 19:56:42 +0200 |
commit | ece9ade4b44fb3d5d120cfd32b23632e5efd2134 (patch) | |
tree | 4bda7951366fa4d73ef5d21bf665c14c140143f0 /common | |
parent | g10: Fix iteration over getkey results. (diff) | |
download | gnupg2-ece9ade4b44fb3d5d120cfd32b23632e5efd2134.tar.xz gnupg2-ece9ade4b44fb3d5d120cfd32b23632e5efd2134.zip |
common: Add GNUPG_MODULE_NAME_GPGV.
* common/util.h (GNUPG_MODULE_NAME_GPGV): New.
* common/homedir.c (gnupg_module_name): Implement.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to '')
-rw-r--r-- | common/homedir.c | 7 | ||||
-rw-r--r-- | common/util.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/common/homedir.c b/common/homedir.c index 574561a6c..13ed44c7f 100644 --- a/common/homedir.c +++ b/common/homedir.c @@ -953,6 +953,13 @@ gnupg_module_name (int which) X(bindir, GPG_NAME); #endif + case GNUPG_MODULE_NAME_GPGV: +#if USE_GPG2_HACK + X(bindir, GPG_NAME "v2"); +#else + X(bindir, GPG_NAME "v"); +#endif + case GNUPG_MODULE_NAME_CONNECT_AGENT: X(bindir, "gpg-connect-agent"); diff --git a/common/util.h b/common/util.h index f293234e0..8a6732fdd 100644 --- a/common/util.h +++ b/common/util.h @@ -244,6 +244,7 @@ char *_gnupg_socketdir_internal (int skip_checks, unsigned *r_info); #define GNUPG_MODULE_NAME_CONNECT_AGENT 9 #define GNUPG_MODULE_NAME_GPGCONF 10 #define GNUPG_MODULE_NAME_DIRMNGR_LDAP 11 +#define GNUPG_MODULE_NAME_GPGV 12 const char *gnupg_module_name (int which); void gnupg_module_name_flush_some (void); |