Skip to contentSkip to conversation

usb-ccid: add smart card reader CCID usb device

RFC New Alon Levy 1 participant 1 message Aug 15, 2010 1 message not in the archive Kbuild

lore
Share & tools
lore

Alon Levy

author
#1 lore raw

RFC 1/1 usb-ccid: add smart card reader CCID usb device

In reply to a message not in the archive

Hi,

This patch adds a usb CCID device, a common standard for smart cards that is
supported by linux and windows (and probably others that I didn't test).

It is intended to be used by SPICE and RHEV-M, but of course it is valuable
independently from those. Uses include usage of client smartcard at both the client and guest machines simultaneously and introducing completely virtual smart card into guest.

It has been tested with the virtual card emulator below to work with the coolkey
provider using a linux host and linux guest. The smart card itself doesn't have to be on the qemu host machine.

Please test and review,

Alon

commit message below:
------

The usb-ccid device talks the protocol in vscard_common.h through the chardev it is attached to. A program implementing a virtual card based on static certificates or a real card on the client is available at:

http://cgit.freedesktop.org/~alon/cac_card (temporary home)

cac_card written by Robert Relyea <[email protected]>

---
 Makefile.objs   |    2 +-
 hw/usb-ccid.c   |  998 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 vscard_common.h |  118 +++++++
 3 files changed, 1117 insertions(+), 1 deletions(-)
 create mode 100644 hw/usb-ccid.c
 create mode 100644 vscard_common.h
Makefile.objs +1 -1
index 4a1eaa1..8baa8fe 100644
@@ -72,7 +72,7 @@ common-obj-y += eeprom93xx.o
 common-obj-y += scsi-disk.o cdrom.o
 common-obj-y += scsi-generic.o scsi-bus.o
 common-obj-y += usb.o usb-hub.o usb-$(HOST_USB).o usb-hid.o usb-msd.o usb-wacom.o
-common-obj-y += usb-serial.o usb-net.o usb-bus.o
+common-obj-y += usb-serial.o usb-net.o usb-ccid.o usb-bus.o
 common-obj-$(CONFIG_SSI) += ssi.o
 common-obj-$(CONFIG_SSI_SD) += ssi-sd.o
 common-obj-$(CONFIG_SD) += sd.o
hw/usb-ccid.c new file +998 -0

998 lines not on this page · raw message

vscard_common.h new file +118 -0

118 lines not on this page · raw message

Signature · 1 line
1.7.2