IAS/ECC: fixed applet selection

fixes https://github.com/OpenSC/OpenSC/issues/1240
This commit is contained in:
Frank Morgner 2018-01-15 16:07:53 +01:00
parent 74553a5a8f
commit f24b55db4a
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ iasecc_select_aid(struct sc_card *card, struct sc_aid *aid, unsigned char *out,
int rv;
/* Select application (deselect previously selected application) */
sc_format_apdu(card, &apdu, SC_APDU_CASE_3_SHORT, 0xA4, 0x04, 0x00);
sc_format_apdu(card, &apdu, SC_APDU_CASE_4_SHORT, 0xA4, 0x04, 0x00);
apdu.lc = aid->len;
apdu.data = aid->value;
apdu.datalen = aid->len;