Diff

Differences From Artifact [9baedfd1c9]:

To Artifact [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) {