Index: cackey.c ================================================================== --- cackey.c +++ cackey.c @@ -1034,11 +1034,15 @@ } /* Begin Smartcard Transaction */ cackey_begin_transaction(slot); - CACKEY_DEBUG_PRINTBUF("Sending APDU:", xmit_buf, xmit_len); + if (class == GSCIS_CLASS_ISO7816 && instruction == GSCIS_INSTR_VERIFY && p1 == 0x00 && p2 == 0x00) { + CACKEY_DEBUG_PRINTF("Sending APDU: <>"); + } 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);