OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: [Muscle] SCardReconnect/SCardDisconnect specification

From: Ludovic Rousseau (ludovic.rousseaugmail.com)
Date: Mon Feb 08 2010 - 06:36:40 CST


Hello,

2010/2/8 Martin Vogt <martin.vogtitwm.fraunhofer.de>:
> pcsclite contains "testpcsc" which performs some tests.
>
> If I run this tool, my connection to the smartcard
> is lost and I need to restart firefox/thunderbird
> in order to make it work again :(.
>
> 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.
What PKCS#11 lib are you using?

> 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.

> 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?

Bye

--
 Dr. Ludovic Rousseau
_______________________________________________
Muscle mailing list
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle