Check-in [68ed2268aa]
Overview
Comment:Corrected issue with sending wrong APDU for selecting applet, failing on older cards
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:68ed2268aae110619c8203d6bd54a9a7d9effa3f
User & Date: rkeene on 2010-05-26 15:58:08
Other Links: manifest | tags
Context
2010-05-26
16:01
CACKey 0.5.9 check-in: db42db5d95 user: rkeene tags: trunk, 0.5.9
15:58
Corrected issue with sending wrong APDU for selecting applet, failing on older cards check-in: 68ed2268aa user: rkeene tags: trunk
2010-05-23
07:07
Added more debugging for failed realloc()s

Added ifdefs to support more versions of PCSC in debug mode check-in: 170e3dfda4 user: rkeene tags: trunk

Changes

Modified cackey.c from [c8c7e5c610] to [595ac3f06f].

  1363   1363   static cackey_ret cackey_select_applet(struct cackey_slot *slot, unsigned char *aid, size_t aid_len) {
  1364   1364   	int send_ret;
  1365   1365   
  1366   1366   	CACKEY_DEBUG_PRINTF("Called.");
  1367   1367   
  1368   1368   	CACKEY_DEBUG_PRINTBUF("Selecting applet:", aid, aid_len);
  1369   1369   
  1370         -	send_ret = cackey_send_apdu(slot, GSCIS_CLASS_ISO7816, GSCIS_INSTR_SELECT, GSCIS_PARAM_SELECT_APPLET, 0x0C, aid_len, aid, 0x00, NULL, NULL, NULL);
         1370  +	send_ret = cackey_send_apdu(slot, GSCIS_CLASS_ISO7816, GSCIS_INSTR_SELECT, GSCIS_PARAM_SELECT_APPLET, 0x00, aid_len, aid, 0x00, NULL, NULL, NULL);
  1371   1371   	if (send_ret != CACKEY_PCSC_S_OK) {
  1372   1372   		CACKEY_DEBUG_PRINTF("Failed to open applet, returning in failure");
  1373   1373   
  1374   1374   		return(CACKEY_PCSC_E_GENERIC);
  1375   1375   	}
  1376   1376   
  1377   1377   	CACKEY_DEBUG_PRINTF("Successfully selected file");