[Pcsclite-muscle] ScardConnect SCARD_SHARE_DIRECT

Christophe FERRANDO christophe.ferrando at sylyca.com
Tue Sep 27 21:50:28 UTC 2016


Hello,

 

I am working on some tests for my product.

 

On of the test says :

 

Insert a card who does not support RAW PROTOCOL (A french health card :
Vitale) : OK

 

First, call :

rv = SCardEstablishContext(SCARD_SCOPE_USER, NULL, NULL, &hContext);

OK

 

Second, the return should be SCARD_E_NOT_READY

rv = SCardConnect(hContext,mszReaders,SCARD_SHARE_DIRECT,

                                                               -1, &hCard,
&dwActiveProtocol);

 

The result is every time SUCCESS, even with no card, with RAW_PROTOCOL
instead of -1, .

 

I don't think i can have an error with this test ?

 

Any idea, how can i have the return SCARD_E_NOT_READY, which is present in
the documentation of SCARD_CONNECT.

 

Sincerly,

 

Christophe FERRANDO

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pcsclite-muscle/attachments/20160927/4b7754ce/attachment.html>


More information about the Pcsclite-muscle mailing list