mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-31 11:41:32 +01:00
gpgconf: Also print revision of libksba.
* dirmngr/dirmngr.c (get_revision_from_blurb): Fix detection of empty string. (gpgconf_versions): Print ksba revision. -- The latest Libksba version support retrieving of the revision (commit) id. We now use that or print a question mark. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
8ddadbbdbb
commit
4070f302e4
@ -2348,7 +2348,7 @@ get_revision_from_blurb (const char *blurb, int *r_len)
|
||||
for (; *s; s++)
|
||||
if (*s == '\n' && s[1] == '(')
|
||||
break;
|
||||
if (s)
|
||||
if (*s)
|
||||
{
|
||||
s += 2;
|
||||
for (n=0; s[n] && s[n] != ' '; n++)
|
||||
@ -2380,8 +2380,9 @@ gpgconf_versions (void)
|
||||
es_fprintf (es_stdout, "* Libassuan %s (%.*s)\n\n",
|
||||
assuan_check_version (NULL), n, s);
|
||||
|
||||
es_fprintf (es_stdout, "* KSBA %s \n\n",
|
||||
ksba_check_version (NULL));
|
||||
s = get_revision_from_blurb (ksba_check_version ("\x01\x01"), &n);
|
||||
es_fprintf (es_stdout, "* KSBA %s (%.*s)\n\n",
|
||||
ksba_check_version (NULL), n, s);
|
||||
|
||||
#ifdef HTTP_USE_NTBTLS
|
||||
s = get_revision_from_blurb (ntbtls_check_version ("\x01\x01"), &n);
|
||||
|
Loading…
x
Reference in New Issue
Block a user