On 16/01/07, Alon Bar-Lev <[EMAIL PROTECTED]> wrote:
So the problem is the following... USB token (Embedded reader + card) cannot be implemented as pcsc-lite USB bundle, since if they are, every time you insert them you get a new reader, and everytime you remove them the reader is deleted.
Yes
This causes problems with PKCS#11 providers that fix the reader list when C_Initialize is called.
So it is a bug in the PKCS#11 provider. No?
The solution is to write such a driver as a serial driver, which is always available as far as pcscd concerned. But then it has to track on reader/token remove/insert by it-self... Solutions: 1. Modify pcscd to be able to have persistence readers to bundle, for example, you define: USB-Token-01 USB-Token-02 USB-Token-03 Which are always available, and when a device is inserted you select a free slot and allocate this to the bundle instance. 2. Allow a serial driver to be notified about hotplug event, so it may rescan the bus.
You do not have to modify pcscd. Just write a driver that will fake a reader. The driver will return "no card" if the reader is not connected, and will return "card present" if the reader is connected. It may be possible to include this behavior in the USB token driver itself.
So you assume that you know the /dev/ttyXXXX in order to make it work. This is not the case with USB tokens.
Yes. It can't be just plug and play since the admin has to edit the /etc/reader.conf file to set the correct DEVICENAME. Bye, -- Dr. Ludovic Rousseau _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
