1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

card: Allow listing of NKS cards.

* tools/card-call-scd.c (learn_status_cb): Always fill chvinfo.
* tools/gpg-card.h (struct card_info_s): Increase size of chvinfo and
chvmaxlen.
* tools/gpg-card.c (list_nks): New.
(print_a_version): Support single part version numbers.
(list_card): Call list_nks.
--

Note that chvmaxlen is not yet used with NKS.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2020-05-07 19:47:07 +02:00
parent 1f6a39092f
commit 9496634745
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
3 changed files with 42 additions and 4 deletions

View file

@ -913,7 +913,7 @@ learn_status_cb (void *opaque, const char *line)
p++;
}
}
else if (parm->apptype == APP_TYPE_PIV)
else
{
for (i=0; *p && i < DIM (parm->chvinfo); i++)
{