Open the device in pcscd and give the file descriptor to the driver
It should be possible to open the device in pcscd and just give the file descriptor to libccid.
I guess a function from libudev gives the filename of the interface. So a call to open()
would be enough to get the file descriptor.
Todo:
- ask the driver if this feature is supported. Use something like
TAG_IFD_SLOT_DIRECT_FILE_DESCRIPTOR
. - open the interface in pcscd
- close the file descriptor in pcscd on reader removal (in
removeReader()
?)
See CCID#11
Edited by Ludovic Rousseau