RFR [8043507]: (smartcardio) Card.transmitControlCommand() does not work on Mac OS X

Valerie (Yu-Ching) Peng valerie.peng at oracle.com
Wed May 28 00:20:26 UTC 2014


Looks good.
Thanks,
Valerie

On 05/27/14 04:59, Ivan Gerasimov wrote:
> Hello!
>
> SunPCSC provider uses SCardControl() function to send a request to the 
> cardreader.
> However, on MacOSX pcsc-lite API has two similar functions exported: 
> SCardControl and SCardControl132.
> The second function is actually the one we need to use: The first 
> function has different signature and is a legacy.
>
> Due to this bug, a simple call card.transmitControlCommand(0x42000d48, 
> new byte[] {}) which should retrieve a list of supported commands 
> fails with SCARD_E_INVALID_PARAMETER error code:
>
> With the proposed fix the function works as expected.
> Would you please help review it?
>
> BUGURL: https://bugs.openjdk.java.net/browse/JDK-8039319
> WEBREV: http://cr.openjdk.java.net/~igerasim/8039319/0/webrev/
>
> Sincerely yours,
> Ivan




More information about the security-dev mailing list