Diff

Differences From Artifact [cdf2a50539]:

To Artifact [50fa54ae2c]:


  1725   1725   	if (send_ret == CACKEY_PCSC_E_RETRY) {
  1726   1726   		CACKEY_DEBUG_PRINTF("ADPU Sending failed, retrying read buffer");
  1727   1727   
  1728   1728   		return(cackey_get_data(slot, buffer, init_count, oid));
  1729   1729   	}
  1730   1730   
  1731   1731   	if (send_ret != CACKEY_PCSC_S_OK) {
  1732         -		if (respcode == 0x6A86) {
  1733         -/* XXX TODO PIV */
  1734         -		}
  1735         -
  1736   1732   		CACKEY_DEBUG_PRINTF("cackey_send_apdu() failed, returning in failure");
  1737   1733   
  1738   1734   		return(-1);
  1739   1735   	}
  1740   1736   
  1741   1737   	offset += count;
  1742   1738   
................................................................................
  2819   2815   	/* We must remove the "7C" tag to get to the signature */
  2820   2816   	switch (id_type) {
  2821   2817   		case CACKEY_ID_TYPE_PIV:
  2822   2818   			if (outbuf[0] != 0x7C) {
  2823   2819   				CACKEY_DEBUG_PRINTF("Response from PIV for GENERATE AUTHENTICATION was not a 0x7C tag, returning in failure");
  2824   2820   
  2825   2821   				return(-1);
  2826         -
  2827   2822   			}
  2828   2823   
  2829   2824   			/* XXX TODO PIV */
  2830   2825   			memmove(outbuf, outbuf + 8, retval - 8);
  2831   2826   			retval -= 8;
  2832   2827   			break;
  2833   2828   		case CACKEY_ID_TYPE_CAC: