Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #1731 sc_format_apdu_cse_lc_le fails to set Le correctly
Changed four places where "<" should be "<=" so Le will be set correctly Previous for 65K (extended) or 256 (short) Le is left set to 0. This then caused Le to be to be not added to APDU as Le==0 Code later converts actual Le in APDU to be set to 0 to mean 256 or 65K. SC_APDU_CASE_*_EXT are changed to SC_APDU_CASE_* so sc_detect_apdu_cse to set the cse based on card capabilities as well as data chaining. This commit is not well tested and neds review. On branch fix-1731 Changes to be committed: modified: src/libopensc/card.c
- Loading branch information