2010/8/19 Murat Baran <[email protected]>:
> Hi,

Hello,

> i am using opensc, pcsc-lite on linux.
> For card detection i am using sc_detect_card_presence()
> in a task. Between two fuction calls if i remove and insert
> the card, the funtion returns SC_SLOT_CARD_PRESENT.
> So i miss the removal.
> As i debug, i saw that pcsc detects the removal and the
> following condition in refresh_slot_attributes()
>
>  if (pslot->reader_state.dwEventState & SCARD_STATE_CHANGED)
>
> becomes true.
> But later refresh_slot_attributes() removes it from the flags.
> I could not see a way that SCARD_STATE_CHANGED is set
> in that function.
> Am i wrong?
> How can i detect that removal?

refresh_slot_attributes() was a function in OpenSC. I guess the new
name is refresh_attributes() now.

You should ask on the OpenSC-devel mailing list since you are using OpenSC code.

As you said the card change has been notified by pcsc-lite to the
OpenSC layer. So the problem is in your code or OpenSC.

Bye

-- 
 Dr. Ludovic Rousseau

_______________________________________________
Muscle mailing list
[email protected]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to