I am using an e-gate USB token with multiple applications on Mac
OS X.  I found that the token reset in the slot_TokenChanged function
(PKCS11/src/p11x_slot.c) causes problems with the other applications
using the token on the Mac.  On Windows the token reset does not cause
problems to the other apps using the token.  I don't know why.

On the Mac, the token reset may cause another app to get into an
infinite recursion and crash.  The infinite recursion and the
SCardReconnect failure that starts the recursion are both bugs.

I filed three bugs on these issues with my proposed patches.

http://alioth.debian.org/tracker/index.php?func=detail&aid=300064&group_id=1225&atid=410085
http://alioth.debian.org/tracker/index.php?func=detail&aid=300065&group_id=1232&atid=410105
http://alioth.debian.org/tracker/index.php?func=detail&aid=300066&group_id=1231&atid=410101

Among these three, I am least confident on my patch for p11x_slot.c
regarding the token reset.  I am not sure if the token reset is
supposed to address some issues that I am not aware of.  If I remove
the token reset, things seem to work just fine on both Windows and
Mac.

Wan-Teh Chang

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to