Added support for CKU_CONTEXT_SPECIFIC.

This commit is contained in:
Alessio Di Mauro
2015-09-08 18:00:48 +02:00
parent 984a124508
commit 99ebfdf37c
6 changed files with 70 additions and 13 deletions
+4 -1
View File
@@ -602,7 +602,10 @@ static ykpiv_rc _general_authenticate(ykpiv_state *state,
if(state->verbose) {
fprintf(stderr, "Failed sign command with code %x.\n", sw);
}
return YKPIV_GENERIC_ERROR;
if (sw == 0x6982)
return YKPIV_AUTHENTICATION_ERROR;
else
return YKPIV_GENERIC_ERROR;
}
/* skip the first 7c tag */
if(data[0] != 0x7c) {