Check-in [7272e3d08a]
Overview
Comment:Added additional debugging information for SCardTransmit() being done successfully
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:7272e3d08ae12bb5ae860d195adf2cd4d2f86596
User & Date: rkeene on 2016-02-26 18:36:58
Other Links: manifest | tags
Context
2016-02-26
18:42
Updated to workaround a bug in Google's PCSC implementation where SCardStatus() requires a reader parameter check-in: bf8001bc42 user: rkeene tags: trunk
18:36
Added additional debugging information for SCardTransmit() being done successfully check-in: 7272e3d08a user: rkeene tags: trunk
18:36
Updated to supply a pioRecvPci parameter to SCardTransmit(), needed by Google's PCSC implementation check-in: dc38d00e61 user: rkeene tags: trunk
Changes

Modified cackey.c from [36cd71f6ea] to [bf13559221].

  1589   1589   	} else {
  1590   1590   		CACKEY_DEBUG_PRINTBUF("Sending APDU:", xmit_buf, xmit_len);
  1591   1591   	}
  1592   1592   
  1593   1593   	recv_len = sizeof(recv_buf);
  1594   1594   	memcpy(&pioRecvPci, pioSendPci, sizeof(pioRecvPci));
  1595   1595   	scard_xmit_ret = SCardTransmit(slot->pcsc_card, pioSendPci, xmit_buf, xmit_len, &pioRecvPci, recv_buf, &recv_len);
         1596  +
         1597  +	CACKEY_DEBUG_PRINTF("SCardTransmit() completed with value: %s/%lx", CACKEY_DEBUG_FUNC_SCARDERR_TO_STR(scard_xmit_ret), (unsigned long) scard_xmit_ret);
  1596   1598   
  1597   1599   	if (scard_xmit_ret == SCARD_E_NOT_TRANSACTED) {
  1598   1600   		CACKEY_DEBUG_PRINTF("Failed to send APDU to card (SCardTransmit() = %s/%lx), will ask calling function to retry (not resetting card)...", CACKEY_DEBUG_FUNC_SCARDERR_TO_STR(scard_xmit_ret), (unsigned long) scard_xmit_ret);
  1599   1601   
  1600   1602   		/* End Smartcard Transaction */
  1601   1603   		cackey_end_transaction(slot);
  1602   1604