mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
card: Print keyinfo for PIV cards.
* scd/app-piv.c (do_learn_status): Print CHV-STATUS. * tools/card-tool.h (struct card_info_s): Rename chvretry to chvinfo. * tools/card-call-scd.c (learn_status_cb): Depend CHV-STATUS on app type. * tools/gpg-card-tool.c (list_piv): New. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
237880175f
commit
9325c92284
4 changed files with 70 additions and 12 deletions
|
@ -122,12 +122,12 @@ struct card_info_s
|
|||
char cafpr3[20];
|
||||
key_info_t kinfo; /* Linked list with all keypair related data. */
|
||||
unsigned long sig_counter;
|
||||
int chv1_cached; /* True if a PIN is not required for each
|
||||
signing. Note that the gpg-agent might cache
|
||||
it anyway. */
|
||||
int is_v2; /* True if this is a v2 card. */
|
||||
int chv1_cached; /* For openpgp this is true if a PIN is not
|
||||
required for each signing. Note that the
|
||||
gpg-agent might cache it anyway. */
|
||||
int is_v2; /* True if this is a v2 openpgp card. */
|
||||
int chvmaxlen[3]; /* Maximum allowed length of a CHV. */
|
||||
int chvretry[3]; /* Allowed retries for the CHV; 0 = blocked. */
|
||||
int chvinfo[3]; /* Allowed retries for the CHV; 0 = blocked. */
|
||||
struct key_attr key_attr[3]; /* OpenPGP card key attributes. */
|
||||
struct {
|
||||
unsigned int ki:1; /* Key import available. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue