[Spice-devel] [PATCH 0/4] add smartcard channel

Alon Levy alevy at redhat.com
Wed Oct 6 01:38:08 PDT 2010


this is v3 (internal so far):
 + message numbers start from 101 (left is as one message, less parsing work overall)
 + no need to add a size for data, saved 4 bytes/msg
 + ignore ReaderAddResponse the device sends us (which allows independent work with vscclient)

This will not compile under windows (not even tested), but it is disabled by default so no harm.
On linux you need cac_card to compile: (no releases yet)
 git://anongit.freedesktop.org/~alon/cac_card master

You also need a qemu with the usb-ccid device and spice chrdev.
I haven't sent the patches to spice-devel yet, they are at my local branch:
git://anongit.freedesktop.org/~alon/qemu spice.kvm.v18.usb-ccid.v6

Alon Levy (4):
  smartcard: add to spice.proto
  smartcard: client side (not enabled yet)
  smartcard: server side (not enabled yet)
  smartcard: configure option --enable-smartcard

 client/Makefile.am           |    8 +-
 client/application.cpp       |    9 +
 client/smartcard_channel.cpp |  421 +++++++++++++++++++++++++++++++++
 client/smartcard_channel.h   |  122 ++++++++++
 client/x11/Makefile.am       |    9 +
 configure.ac                 |   23 ++
 server/Makefile.am           |   11 +
 server/reds.c                |   26 ++
 server/smartcard.c           |  537 ++++++++++++++++++++++++++++++++++++++++++
 server/smartcard.h           |   18 ++
 spice.proto                  |    8 +
 11 files changed, 1191 insertions(+), 1 deletions(-)
 create mode 100644 client/smartcard_channel.cpp
 create mode 100644 client/smartcard_channel.h
 create mode 100644 server/smartcard.c
 create mode 100644 server/smartcard.h

-- 
1.7.3.1



More information about the Spice-devel mailing list