mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +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
|
@ -569,7 +569,7 @@ send_keypair_and_cert_info (app_t app, ctrl_t ctrl, data_object_t dobj,
|
|||
}
|
||||
|
||||
|
||||
/* Handle the LEARN command for OpenPGP. */
|
||||
/* Handle the LEARN command. */
|
||||
static gpg_error_t
|
||||
do_learn_status (app_t app, ctrl_t ctrl, unsigned int flags)
|
||||
{
|
||||
|
@ -577,10 +577,13 @@ do_learn_status (app_t app, ctrl_t ctrl, unsigned int flags)
|
|||
|
||||
(void)flags;
|
||||
|
||||
do_getattr (app, ctrl, "CHV-STATUS");
|
||||
|
||||
for (i=0; data_objects[i].tag; i++)
|
||||
if (data_objects[i].keypair)
|
||||
send_keypair_and_cert_info (app, ctrl, data_objects + i, !!(flags & 1));
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue