From e6232c995f4f353f3fb62fc2af2a44e823dcee2b Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 12 Nov 2024 12:05:37 +0100 Subject: 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 f79a0f877..5a9db1491 100644 --- a/dirmngr/dirmngr.c +++ b/dirmngr/dirmngr.c @@ -2567,7 +2567,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", -- cgit v1.2.3