Check-in [ea4c430c50]
Overview
Comment:Corrected signature unpacking
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | piv
Files: files | file ages | folders
SHA1:ea4c430c50dd9a4a4ec0642f3d985283e26ee27e
User & Date: rkeene on 2013-01-15 04:50:15
Other Links: manifest | tags
Context
2013-01-15
04:52
Minor cleanup check-in: eed54cb794 user: rkeene tags: piv
04:50
Corrected signature unpacking check-in: ea4c430c50 user: rkeene tags: piv
04:48
Updated code so that information on accessing each certificate for different kinds of cards is not shared check-in: dc6044978a user: rkeene tags: piv
Changes

Modified cackey.c from [9baedfd1c9] to [cdf2a50539].

  2819   2819   	/* We must remove the "7C" tag to get to the signature */
  2820   2820   	switch (id_type) {
  2821   2821   		case CACKEY_ID_TYPE_PIV:
  2822   2822   			if (outbuf[0] != 0x7C) {
  2823   2823   				CACKEY_DEBUG_PRINTF("Response from PIV for GENERATE AUTHENTICATION was not a 0x7C tag, returning in failure");
  2824   2824   
  2825   2825   				return(-1);
         2826  +
         2827  +			}
  2826   2828   
  2827   2829   			/* XXX TODO PIV */
  2828   2830   			memmove(outbuf, outbuf + 8, retval - 8);
  2829   2831   			retval -= 8;
  2830         -		}
         2832  +			break;
  2831   2833   		case CACKEY_ID_TYPE_CAC:
  2832   2834   		case CACKEY_ID_TYPE_CERT_ONLY:
  2833   2835   			break;
  2834   2836   	}
  2835   2837   
  2836   2838   	/* Unpad reply */
  2837   2839   	if (unpadOutput) {