<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">2016-10-17 19:26 GMT+02:00 Maksim Ivanov <span dir="ltr"><<a target="_blank" href="mailto:emaxx@google.com">emaxx@google.com</a>></span>:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Hello,<br></blockquote><div><br></div><div>Hello Maksim,<br> <br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<br>
It seems that there's a difference between the PC/SC-Lite behavior and<br>
the behavior of the Windows' implementation in the following scenario:<br>
<br>
1. One thread obtains an hCard with SCARD_SHARE_SHARED.<br>
<br>
2. This thread calls then SCardBeginTransaction with this hCard.<br>
<br>
3. Another thread in the same application tries to obtain a new hCard<br>
to the same card with SCARD_SHARE_SHARED.<br>
<br>
Under Windows step #3 finishes successfully.<br>
PC/SC-Lite, however, seems to block all new connections to the card<br>
(even in the shared mode) until the previously started transaction<br>
finishes.<br>
<br>
Not sure whether this can be considered as a bug. It seems that there<br>
are no guarantees about this use case in the PC/SC specification.<br></blockquote><div><br></div><div>I could change pcsc-lite code to be more like Windows but:<br></div><div>- nobody complained about this<br></div><div>- it could has bad side effects if not done right<br></div><div>- it would take time to code and test<br></div><div> <br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
<br>
But even if this is not considered as a bug by the maintainers, it<br>
would be good to cover this detail in the corresponding "Known<br>
differences" list:<br>
<a target="_blank" rel="noreferrer" href="http://pcsclite.alioth.debian.org/api/group__API.html#differences">http://pcsclite.alioth.debian.<wbr>org/api/group__API.html#<wbr>differences</a><br>
<br></blockquote><div><br></div><div>Good suggestion.<br></div><div>Fixed in <a href="https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=pcsclite/PCSC.git;a=commitdiff;h=aa9db5f12b892c94585452fc106d48f064bc0f60;hp=45dd695d05742b039384951e130570aed289d7ca">https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi?p=pcsclite/PCSC.git;a=commitdiff;h=aa9db5f12b892c94585452fc106d48f064bc0f60;hp=45dd695d05742b039384951e130570aed289d7ca</a><br><br></div><div>Thanks<br clear="all"></div></div><br>-- <br><div class="gmail_signature"> Dr. Ludovic Rousseau</div>
</div></div>