Ludovic Rousseau wrote: > Hello, > >> >> Is this the expected behaviour, that I need to restart >> my applications after using "testpcsc" ? > > It is a bug in your PKCS#11 module. > Your module is not stateless since it assumes the card to be in a > certain state between calls.
This means that the pkcs11 driver somehow should get a signal and it can ask me agin for my password? The driver is not doing this. (unless I restart firefox/thunderbrid of course) > What PKCS#11 lib are you using? http://www.aeteurope.com/aet/aet-europe/_www/en/pub/products/safesign.cfm >> So my question ist: >> >> Is this the correct behaviour, that SCardReconnect/SCardDisconnect >> affect every application using the reader? (with stateless drivers) > > Yes. If an application power off the card then the card is powered off > for every application. And the driver is notified and should ask me for my password again... > >> PS: my previous mail did not make it to the list, which conatins >> a patch. Here is the patch again: > > Can you explain why you need to patch testpcsc? > Why do you want to add a timeout? > My idea was to automatically monitor the correct behaviour of the reader. I run a script and it checks for example if a card is present etc. (it blocks forever without this patch) For this I modified testpcsc, if everything is green, fine otherwise eg. ->mail. But then I noticed that the test program disconnects my running sessions, which makes the idea to monitor anything useless... The disconnect is triggered by SCardReconnect/SCardDisconnect so maybe I drop that call too..... regards, Martin PS: I saw that the latest svn got rid of the SHM interface and uses sockets, very nice. This opens the possibility to make pcsc available over network easier than before.(I already thought about doing this...) _______________________________________________ Muscle mailing list [email protected] http://lists.drizzle.com/mailman/listinfo/muscle
