Skip to contentSkip to conversation

ccid: add ccid-card-emulated device

PATCH In review Alon Levy 1 participant 1 message Apr 1, 2011 Kbuild

lore
Share & tools
lore

Alon Levy

author
#0 lore raw

PATCH v25 9/10 ccid: add ccid-card-emulated device

This devices uses libcacard (internal) to emulate a smartcard conforming to the CAC standard. It attaches to the usb-ccid bus. Usage instructions (example command lines) are in the following patch in docs/ccid.txt. It uses libcacard which uses nss, so it can work with both hw cards and certificates (files).

---

changes from v20->v21: (Jes Sorenson review)
* cosmetics
* use qemu-thread and qemu_malloc/qemu_free

changes from v19->v20:
* checkpatch.pl

changes from v18->v19:
* add qdev.desc
* backend: drop the enumeration property, back to using a string one.

changes from v16->v17:
* use PROP_TYPE_ENUM for backend

changes from v15->v16:
* fix error reporting in initfn
* bump copyright year
* update copyright license

changes from v1:
* remove stale comments, use only c-style comments
* bugfix, forgot to set recv_len
* change reader name to 'Virtual Reader'

---
 Makefile.objs           |    1 +
 hw/ccid-card-emulated.c |  595 +++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 596 insertions(+), 0 deletions(-)
 create mode 100644 hw/ccid-card-emulated.c
Makefile.objs +1 -0
index 8c42524..c05f5e5 100644
@@ -201,6 +201,7 @@ hw-obj-$(CONFIG_DMA) += dma.o
 hw-obj-$(CONFIG_HPET) += hpet.o
 hw-obj-$(CONFIG_APPLESMC) += applesmc.o
 hw-obj-$(CONFIG_SMARTCARD) += usb-ccid.o ccid-card-passthru.o
+hw-obj-$(CONFIG_SMARTCARD_NSS) += ccid-card-emulated.o
 
 # PPC devices
 hw-obj-$(CONFIG_OPENPIC) += openpic.o
hw/ccid-card-emulated.c new file +595 -0

595 lines not on this page · raw message

Signature · 1 line
1.7.4.2