I am using muscle pkcs library on a power pc MAC OS 10.4.8 . I have written
an application which dynamically loads the pkcs library and displays the
contents of the smart card. The application worked with the pkcs
library having multi-threading disabled but when I enabled multi-threading
and async_TokenEventCallback(...) in the pkcs library, the application got
itself in hung state during a call to C_FindObjectsInit(...).

While debugging, I found that at the end of C_FindObjectsInit(...),
slot_EndTransaction(session->session.slotID, MSC_LEAVE_TOKEN) has got
called after successfully reading the card contents and this function failed
to return and so the hung state occurred.

I have also observed problems with this slot_EndTransaction(...) API in some
other Smart Card applications on Macintosh upon frequent removal/insertion
of the Card, but I couldn't figure out why this API got failed, when
slot_BeginTransaction(...) and other API to read data from card
succeeded. Can any one please point out what has been wrong or suggest any
workaround?

Hope to have inputs, thanks...
_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to