RFR [8043507]: (smartcardio) Card.transmitControlCommand() does not work on Mac OS X
Ivan Gerasimov
ivan.gerasimov at oracle.com
Tue May 27 11:59:21 UTC 2014
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