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: branch diff | 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
2820
2821
2822
2823
2824
2825


2826
2827
2828
2829
2830

2831
2832
2833
2834
2835
2836
2837
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831

2832
2833
2834
2835
2836
2837
2838
2839







+
+




-
+







	/* We must remove the "7C" tag to get to the signature */
	switch (id_type) {
		case CACKEY_ID_TYPE_PIV:
			if (outbuf[0] != 0x7C) {
				CACKEY_DEBUG_PRINTF("Response from PIV for GENERATE AUTHENTICATION was not a 0x7C tag, returning in failure");

				return(-1);

			}

			/* XXX TODO PIV */
			memmove(outbuf, outbuf + 8, retval - 8);
			retval -= 8;
		}
			break;
		case CACKEY_ID_TYPE_CAC:
		case CACKEY_ID_TYPE_CERT_ONLY:
			break;
	}

	/* Unpad reply */
	if (unpadOutput) {