From 5b3fc8abaae4016423069852728461303611f866 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 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",