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

Reply via email to