In the svn tree there is a change that breaks my code: The ISO driver
automatically sends read binary APDUs until the number of requested
bytes is reached (iso7816.c:136). Previously only one APDU was sent. The
change surely intendeds to read as much as possible (and requested). The
problem is that 6282 is only recognized when the card returns 0 bytes of
data (iso7816.c:132).

There are three alternatives for a fix, I think:
1. Offer a flag to disable the new behaviour as it is done for get
   response with SC_APDU_FLAGS_NO_GET_RESP.
2. Offer a possibilities to read a file to EOF.
3. Correctly recognize 6282 even when data is present.

Cheers, Frank.

Attachment: pgpurOxhFA05l.pgp
Description: PGP signature

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to