[Pcsclite-muscle] Client code review request

Ludovic Rousseau ludovic.rousseau
Wed Nov 12 10:53:36 PST 2014


2014-11-12 18:55 GMT+01:00 David Woodhouse <dwmw2 at infradead.org>:
> On Wed, 2014-11-12 at 18:18 +0100, Ludovic Rousseau wrote:
>> 2014-11-12 17:39 GMT+01:00 David Woodhouse <dwmw2 at infradead.org>:
>> > Should I be worrying about SCardReconnect(), and doing something like
>> > the example in http://pcsclite.alioth.debian.org/pcsc-lite/node13.html?
>> > Or does the use of transactions save me from that concern?
>>
>> Why do you think you would need SCardReconnect()?
>
> Because I see warnings about having to do so if SCardTransmit() and
> other functions return SCARD_W_RESET_CARD... but I have no real clue
> when/if they might actually *do* that in practice.
>
>> It may be the case if another application has reset the card. But
>> maybe the use case would be to remove and insert the key again.
>
> OK, thanks.
>
> I have it building and running on Windows too now, but I always just get
> SCARD_W_CARD_REMOVED from the call to SCardConnect(). Is that my fault,
> or just Windows being its normal difficult self?

Sorry. I can't really help on Windows.

You may want to start with a very simple program [1] on Windows.

Bye

[1] http://ludovicrousseau.blogspot.fr/2010/04/pcsc-sample-in-c.html

-- 
 Dr. Ludovic Rousseau




More information about the pcsclite-muscle mailing list