From: Doug E. <no...@gi...> - 2019-09-09 10:50:06
|
Branch: refs/heads/master Home: https://github.com/OpenSC/OpenSC Commit: 3b632e64a19235636ab0a93fc2a4b5a7caf078a3 https://github.com/OpenSC/OpenSC/commit/3b632e64a19235636ab0a93fc2a4b5a7caf078a3 Author: Doug Engert <dee...@gm...> Date: 2019-09-09 (Mon, 09 Sep 2019) Changed paths: M src/libopensc/card.c Log Message: ----------- 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 |