Differences From Artifact [c8c7e5c610]:
- File
cackey.c
— part of check-in
[170e3dfda4]
at
2010-05-23 07:07:11
on branch trunk
— Added more debugging for failed realloc()s
Added ifdefs to support more versions of PCSC in debug mode (user: rkeene, size: 161607) [annotate] [blame] [check-ins using]
To Artifact [595ac3f06f]:
- File cackey.c — part of check-in [68ed2268aa] at 2010-05-26 15:58:08 on branch trunk — Corrected issue with sending wrong APDU for selecting applet, failing on older cards (user: rkeene, size: 161607) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
1363 1364 1365 1366 1367 1368 1369 | static cackey_ret cackey_select_applet(struct cackey_slot *slot, unsigned char *aid, size_t aid_len) { int send_ret; CACKEY_DEBUG_PRINTF("Called."); CACKEY_DEBUG_PRINTBUF("Selecting applet:", aid, aid_len); | | | 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 | static cackey_ret cackey_select_applet(struct cackey_slot *slot, unsigned char *aid, size_t aid_len) { int send_ret; CACKEY_DEBUG_PRINTF("Called."); CACKEY_DEBUG_PRINTBUF("Selecting applet:", aid, aid_len); send_ret = cackey_send_apdu(slot, GSCIS_CLASS_ISO7816, GSCIS_INSTR_SELECT, GSCIS_PARAM_SELECT_APPLET, 0x00, aid_len, aid, 0x00, NULL, NULL, NULL); if (send_ret != CACKEY_PCSC_S_OK) { CACKEY_DEBUG_PRINTF("Failed to open applet, returning in failure"); return(CACKEY_PCSC_E_GENERIC); } CACKEY_DEBUG_PRINTF("Successfully selected file"); |
︙ | ︙ |