RFR [8046343] (smartcardio) CardTerminal.connect('direct') does not work on MacOSX

Valerie Peng valerie.peng at oracle.com
Wed Jul 16 22:12:02 UTC 2014


Looks good.
Thanks,
Valerie

On 7/14/2014 8:08 AM, Ivan Gerasimov wrote:
> Hello!
>
> It was reported that trying to use DIRECT as the preferred protocol 
> results in the CardException to get thrown under MacOSX.
> It turn out to be a problem of pcscd-lite implementation of the API: 
> From the source code [1] it can be seen that the SCardConnect() 
> function expects its argument dwPreferredProtocol to be non-zero.
> Windows driver normally accepts zeros [2].
>
> Could you please help review the fix?
>
> BUGURL: https://bugs.openjdk.java.net/browse/JDK-8046343
> WEBREV: http://cr.openjdk.java.net/~igerasim/8046343/0/webrev/
>
> Sincerely yours,
> Ivan
>
> [1] 
> http://pcsc-lite.sourcearchive.com/documentation/1.2.9-beta9-1/winscard__clnt_8c-source.html
> [2] 
> http://msdn.microsoft.com/en-us/library/windows/desktop/aa379473(v=vs.85).aspx
>



More information about the security-dev mailing list