opensc/src
Vincent JARDIN 1a3666364d IASECC/CPX: Avoid APDU Incorrect Parameters
Without this patch, we would get from the logs:
Outgoing APDU (18 bytes):
00 A4 04 00 0D E8 28 BD 08 0F 80 25 00 00 01 FF ......(....%....
00 10                                           ..
 [opensc-pkcs11] reader-pcsc.c:242:pcsc_internal_transmit: called
 [opensc-pkcs11] reader-pcsc.c:333:pcsc_transmit:
Incoming APDU (2 bytes):
6A 86 j.
 [opensc-pkcs11] apdu.c:382:sc_single_transmit: returning with: 0 (Success)
 [opensc-pkcs11] apdu.c:537:sc_transmit: returning with: 0 (Success)
 [opensc-pkcs11] card.c:523:sc_unlock: called
 [opensc-pkcs11] iso7816.c:128:iso7816_check_sw: Incorrect parameters P1-P2
 [opensc-pkcs11] card-iasecc.c:1064:iasecc_select_file: Warning: SC_ERROR_INCORRECT_PARAMETERS for SC_PATH_TYPE_DF_NAME, try again with P2=0x0C
 [opensc-pkcs11] apdu.c:548:sc_transmit_apdu: called
 [opensc-pkcs11] card.c:473:sc_lock: called
 [opensc-pkcs11] card.c:513:sc_lock: returning with: 0 (Success)
 [opensc-pkcs11] apdu.c:515:sc_transmit: called
 [opensc-pkcs11] apdu.c:363:sc_single_transmit: called
 [opensc-pkcs11] apdu.c:367:sc_single_transmit: CLA:0, INS:A4, P1:4, P2:C, data(13) 0x7fff4b339b20
 [opensc-pkcs11] reader-pcsc.c:323:pcsc_transmit: reader 'Ingenico TL TELIUM (25005334) 00 02'
 [opensc-pkcs11] reader-pcsc.c:324:pcsc_transmit:
Outgoing APDU (18 bytes):
00 A4 04 0C 0D E8 28 BD 08 0F 80 25 00 00 01 FF ......(....%....
00 10                                           ..
 [opensc-pkcs11] reader-pcsc.c:242:pcsc_internal_transmit: called
 [opensc-pkcs11] reader-pcsc.c:333:pcsc_transmit:
Incoming APDU (2 bytes):
90 00 ..

Let's align it with the behaviour of the other IASECC cards.
2021-04-01 11:11:33 +02:00
..
common update configure.ac to be less noisy 2021-04-01 11:09:22 +02:00
libopensc IASECC/CPX: Avoid APDU Incorrect Parameters 2021-04-01 11:11:33 +02:00
minidriver Minidriver RSA-PSS signing not working 2021-02-25 18:35:57 +01:00
pkcs11 update configure.ac to be less noisy 2021-04-01 11:09:22 +02:00
pkcs15init update configure.ac to be less noisy 2021-04-01 11:09:22 +02:00
scconf fixed missing includes 2020-05-11 18:58:12 +02:00
sm Initial support for Polish eID card (e-dowód, eDO) (#2023) 2020-05-19 14:05:13 +02:00
smm sm-global-platform: Fix possible memory leak 2021-02-25 09:08:52 +01:00
tests p11test: Remove unnecessary spaces in JSON output 2021-03-24 16:25:08 +01:00
tools Avoid accessing Uninitialized scalar variable 2021-03-24 23:27:01 +01:00
ui pcsc: immediately exit on hotplug events 2020-06-09 12:07:04 +02:00
Makefile.am added fuzzing with libFuzzer and OSS-Fuzz 2019-07-26 15:23:02 +02:00
Makefile.mak use compat_getopt_long if getopt_long is not available 2019-03-25 14:30:09 +01:00