Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email email@example.com
Re: [Muscle] Calling C_FindObjectsInit(...) leaves the application in hung state
From: Ludovic Rousseau (ludovic.rousseaugmail.com)
Date: Mon Feb 19 2007 - 03:01:16 CST
On 18/02/07, Harsh Sangal <hsangalgmail.com> wrote:
> 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...
Are you using the PCSC framework provided by Apple or a recent
pcsc-lite (which version)?
Can you provide a sample code exhibiting the problem?
Dr. Ludovic Rousseau
Muscle mailing list