diff options
author | Werner Koch <wk@gnupg.org> | 2024-11-12 12:05:37 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2024-11-12 12:07:24 +0100 |
commit | d54db0ac42bc3ffdcfab416b187b271aa9e8b2c0 (patch) | |
tree | 2d37e90cd618f7f9448c0a42619ceaadf2af2e9a | |
parent | gpg-mail-tube: Fix content type for an attached non-plaintext. (diff) | |
download | gnupg2-d54db0ac42bc3ffdcfab416b187b271aa9e8b2c0.tar.xz gnupg2-d54db0ac42bc3ffdcfab416b187b271aa9e8b2c0.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 5a2a45bc1..b2af737d5 100644 --- a/dirmngr/dirmngr.c +++ b/dirmngr/dirmngr.c @@ -2568,7 +2568,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", |