diff options
Diffstat (limited to 'src/pgp/gpg.c')
-rw-r--r-- | src/pgp/gpg.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/pgp/gpg.c b/src/pgp/gpg.c index 2a9e6431..4b1b57c9 100644 --- a/src/pgp/gpg.c +++ b/src/pgp/gpg.c @@ -39,11 +39,13 @@ #include "log.h" +static const char *libversion; + void p_gpg_init(void) { - char *version = gpgme_check_version (NULL); - log_debug("GPG: Found gpgme version: %s",version); + libversion = gpgme_check_version(NULL); + log_debug("GPG: Found gpgme version: %s", libversion); gpgme_set_locale(NULL, LC_CTYPE, setlocale(LC_CTYPE, NULL)); } @@ -79,3 +81,10 @@ p_gpg_list_keys(void) return result; } + +const char* +p_gpg_libver(void) +{ + return libversion; +} + |