Diff

Differences From Artifact [c8c7e5c610]:

To Artifact [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");