From d54db0ac42bc3ffdcfab416b187b271aa9e8b2c0 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 12 Nov 2024 12:05:37 +0100 Subject: [PATCH] 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 --- dirmngr/dirmngr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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",