mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
scd: Add reder information to --card-status.
* g10/call-agent.h, g10/call-agent.c (agent_release_card_info) g10/card-util.c (card_status): Add READER. * scd/apdu.c (close_ccid_reader, open_ccid_reader): Handle RDRNAME. (apdu_get_reader_name): New. * scd/ccid-driver.c (ccid_open_reader): Add argument to RDRNAME_P. * scd/command.c (cmd_learn): Return READER information.
This commit is contained in:
parent
2242658efe
commit
bce0e3f71d
8 changed files with 41 additions and 6 deletions
|
@ -667,9 +667,18 @@ cmd_learn (assuan_context_t ctx, char *line)
|
|||
knows about this card */
|
||||
if (!only_keypairinfo)
|
||||
{
|
||||
int slot;
|
||||
const char *reader;
|
||||
char *serial;
|
||||
time_t stamp;
|
||||
|
||||
slot = vreader_slot (ctrl->server_local->vreader_idx);
|
||||
reader = apdu_get_reader_name (slot);
|
||||
if (!reader)
|
||||
return out_of_core ();
|
||||
send_status_direct (ctrl, "READER", reader);
|
||||
/* No need to free the string of READER. */
|
||||
|
||||
rc = app_get_serial_and_stamp (ctrl->app_ctx, &serial, &stamp);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue