mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +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
|
@ -172,8 +172,11 @@ struct card_info_s
|
|||
required for each signing. Note that the
|
||||
gpg-agent might cache it anyway. */
|
||||
int is_v2; /* True if this is a v2 openpgp card. */
|
||||
byte nchvmaxlen; /* Number of valid items in CHVMAXLEN. */
|
||||
int chvmaxlen[4]; /* Maximum allowed length of a CHV. */
|
||||
byte nchvinfo; /* Number of valid items in CHVINFO. */
|
||||
int chvinfo[4]; /* Allowed retries for the CHV; 0 = blocked. */
|
||||
char *chvlabels; /* Malloced String with CHV labels. */
|
||||
unsigned char chvusage[2]; /* Data object 5F2F */
|
||||
struct {
|
||||
unsigned int ki:1; /* Key import available. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue