Check-in [eed54cb794]
Overview
Comment:Minor cleanup
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | piv
Files: files | file ages | folders
SHA1:eed54cb7940c5ac90f4068e66acc0b92f5183109
User & Date: rkeene on 2013-01-15 04:52:26
Other Links: manifest | tags
Context
2013-01-15
05:27
Updated to copy type when copying pcsc_identities check-in: 150cbc7790 user: rkeene tags: piv
04:52
Minor cleanup check-in: eed54cb794 user: rkeene tags: piv
04:50
Corrected signature unpacking check-in: ea4c430c50 user: rkeene tags: piv
Changes

Modified cackey.c from [cdf2a50539] to [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: