Differences From Artifact [e77001954d]:
- File
cackey.c
— part of check-in
[709b50760d]
at
2010-05-15 00:34:57
on branch trunk
— Added line numbers to debugging output
Added overloaded debugging strdup to check for leaks (user: rkeene, size: 143513) [annotate] [blame] [check-ins using] 
To Artifact [e8f3ee7748]:
- File cackey.c — part of check-in [0233c7b5fe] at 2010-05-15 00:39:44 on branch trunk — Updated to censor PIN in debugging output (user: rkeene, size: 143682) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
| 1032 1033 1034 1035 1036 1037 1038 | 
	if (le != 0x00) {
		xmit_buf[xmit_len++] = le;
	}
	/* Begin Smartcard Transaction */
	cackey_begin_transaction(slot);
 | > > > | > | 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 | 
	if (le != 0x00) {
		xmit_buf[xmit_len++] = le;
	}
	/* Begin Smartcard Transaction */
	cackey_begin_transaction(slot);
	if (class == GSCIS_CLASS_ISO7816 && instruction == GSCIS_INSTR_VERIFY && p1 == 0x00 && p2 == 0x00) {
		CACKEY_DEBUG_PRINTF("Sending APDU: <<censored>>");
	} else {
		CACKEY_DEBUG_PRINTBUF("Sending APDU:", xmit_buf, xmit_len);
	}
	recv_len = sizeof(recv_buf);
	scard_xmit_ret = SCardTransmit(slot->pcsc_card, SCARD_PCI_T0, xmit_buf, xmit_len, SCARD_PCI_T1, recv_buf, &recv_len);
	if (scard_xmit_ret != SCARD_S_SUCCESS) {
		CACKEY_DEBUG_PRINTF("Failed to send APDU to card (SCardTransmit() = %s/%lx)", CACKEY_DEBUG_FUNC_SCARDERR_TO_STR(scard_xmit_ret), (unsigned long) scard_xmit_ret);
		CACKEY_DEBUG_PRINTF("Marking slot as having been reset");
 | 
| ︙ | ︙ |