Skip to content

Add support for passthru cards to libcacard

Jeremy White qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 12 repliesIn review
  2. v24 patches 1 replySuperseded

Changes in v3 from the cover letter

* Include outstanding patches not strictly related to passthru mode
* Include a fix for read binary transactions
* Mitigate some performance issues arising from libpccslite's heavy handed thread safety code

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Bug fix: delete the reader entry after queueing an event, not before.libcacard/vreader.c+1 -11 reply
2/7Retrieve the correct TD byte when checking an ATR.hw/usb/ccid-card-passthru.c+1 -11 reply
3/7Add a configure check for libpcsclite, and an option to enable or disable it.configure+38 -01 reply
4/7Add error checking to vcard_emul_options.libcacard/vcard_emul_nss.c+38 -111 reply
5/7Add a VCARD_DIRECT implemention to the libcacard smartcard support.Makefile.objs libcacard/capcsc.c libcacard/capcsc.h +3 more+527 -11 reply
6/7Enable support for passthru (e.g. direct to pcsc) smart cards in the emul_options entry point in libcacard.libcacard/vcard.c libcacard/vcard.h libcacard/vcard_emul_nss.c +1 more+32 -41 reply
7/7Remove the (broken) passthru option.libcacard/vscclient.c+3 -131 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchMarc-André Lureau
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 0/7] Add support for passthru cards to libcacard

This is a resend of my outstanding patches, gathered together as one series. I'm hoping to agitate for this whole set to be considered.

Changes since v2:
* Include outstanding patches not strictly related to passthru mode
* Include a fix for read binary transactions
* Mitigate some performance issues arising from libpccslite's heavy handed thread safety code

Jeremy White (7):
Bug fix: delete the reader entry after queueing an event, not before. Retrieve the correct TD byte when checking an ATR.
Add a configure check for libpcsclite, and an option to enable or
disable it.
Add error checking to vcard_emul_options.
Add a VCARD_DIRECT implemention to the libcacard smartcard support.
Enable support for passthru (e.g. direct to pcsc) smart cards in
the emul_options entry point in libcacard.
Remove the (broken) passthru option.

 Makefile.objs               |    5 +
 configure                   |   38 ++++
 hw/usb/ccid-card-passthru.c |    2 +-
 libcacard/capcsc.c          |  498 +++++++++++++++++++++++++++++++++++++++++++
 libcacard/capcsc.h          |   18 ++
 libcacard/card_7816.c       |    2 +-
 libcacard/card_7816.h       |    3 +
 libcacard/libcacard.syms    |    2 +
 libcacard/vcard.c           |    2 +-
 libcacard/vcard.h           |    2 +-
 libcacard/vcard_emul_nss.c  |   78 +++++--
 libcacard/vcard_emul_type.c |    3 +-
 libcacard/vreader.c         |    2 +-
 libcacard/vscclient.c       |   16 +-
 14 files changed, 640 insertions(+), 31 deletions(-)
 create mode 100644 libcacard/capcsc.c
 create mode 100644 libcacard/capcsc.h
Signature · 1 line
1.7.10.4