mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
card: Print PIN descriptions and fix number of printed retry counters.
* tools/gpg-card.h (struct card_info_s): Add fields nmaxlen, nchvinfo, and chvlabels. * tools/card-call-scd.c (release_card_info): Free chvlabels. (learn_status_cb): Parse CHV-LABEL. Set nmaxlen and nchvinfo. * tools/gpg-card.c (list_retry_counter): Print CHV labels. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
ef29a960bf
commit
1ac189f2df
3 changed files with 15 additions and 1 deletions
|
@ -836,8 +836,10 @@ list_retry_counter (card_info_t info, estream_t fp)
|
|||
const char *s;
|
||||
int i;
|
||||
|
||||
if (info->chvlabels)
|
||||
tty_fprintf (fp, "PIN labels .......: %s\n", info->chvlabels);
|
||||
tty_fprintf (fp, "PIN retry counter :");
|
||||
for (i=0; i < DIM (info->chvinfo); i++)
|
||||
for (i=0; i < DIM (info->chvinfo) && i < info->nchvinfo; i++)
|
||||
{
|
||||
if (info->chvinfo[i] >= 0)
|
||||
tty_fprintf (fp, " %d", info->chvinfo[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue