diff options
author | Werner Koch <[email protected]> | 2024-11-12 11:05:37 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2024-11-12 13:19:57 +0000 |
commit | 5b3fc8abaae4016423069852728461303611f866 (patch) | |
tree | 491b1e632b0f34ff0964ac87964877efe037e8a5 | |
parent | gpgtar: Make sure to create upper directories for regular files. (diff) | |
download | gnupg-5b3fc8abaae4016423069852728461303611f866.tar.gz gnupg-5b3fc8abaae4016423069852728461303611f866.zip |
gpgconf: Show also the used nPth version with -V
* dirmngr/dirmngr.c (gpgconf_versions): Get and show nPth version.
--
Note that this requires nPth 1.8
-rw-r--r-- | dirmngr/dirmngr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dirmngr/dirmngr.c b/dirmngr/dirmngr.c index 06ef22bf5..158883009 100644 --- a/dirmngr/dirmngr.c +++ b/dirmngr/dirmngr.c @@ -2515,7 +2515,10 @@ gpgconf_versions (void) const char *s; int n; - /* Unfortunately Npth has no way to get the version. */ +#if NPTH_VERSION_NUMBER >= 0x010800 + es_fprintf (es_stdout, "* nPth %s (%s)\n\n", + npth_get_version (NULL), npth_get_version ("\x01\x02")); +#endif /*NPTH_VERSION_NUMBER*/ s = get_revision_from_blurb (assuan_check_version ("\x01\x01"), &n); es_fprintf (es_stdout, "* Libassuan %s (%.*s)\n\n", |