diff options
author | NIIBE Yutaka <[email protected]> | 2015-11-09 07:15:44 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2015-11-09 07:15:44 +0000 |
commit | bce0e3f71df0709a7d323a688ddf2690c1727a6c (patch) | |
tree | ed4c60607c098596b578d323ff1566f78d3a22fd /g10/card-util.c | |
parent | gpg: Avoid new strings. (diff) | |
download | gnupg-bce0e3f71df0709a7d323a688ddf2690c1727a6c.tar.gz gnupg-bce0e3f71df0709a7d323a688ddf2690c1727a6c.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | g10/card-util.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/g10/card-util.c b/g10/card-util.c index b8c505423..7196031c4 100644 --- a/g10/card-util.c +++ b/g10/card-util.c @@ -387,6 +387,11 @@ card_status (estream_t fp, char *serialno, size_t serialnobuflen) } if (opt.with_colons) + es_fprintf (fp, "Reader:%s:", info.reader? info.reader : ""); + else + tty_fprintf (fp, "Reader ...........: %s\n", + info.reader? info.reader : "[none]"); + if (opt.with_colons) es_fprintf (fp, "AID:%s:", info.serialno? info.serialno : ""); else tty_fprintf (fp, "Application ID ...: %s\n", |