Fix unit tests for NEO: use ECCP256 and detect attestation errors

This commit is contained in:
Trevor Bentley
2017-10-20 12:40:09 +02:00
parent 7177ceda74
commit c07355fefb
4 changed files with 26 additions and 6 deletions
+3
View File
@@ -1346,6 +1346,9 @@ ykpiv_rc ykpiv_attest(ykpiv_state *state, const unsigned char key, unsigned char
return res;
}
else if(SW_SUCCESS != sw) {
if (sw == SW_ERR_NOT_SUPPORTED) {
return YKPIV_NOT_SUPPORTED;
}
return YKPIV_GENERIC_ERROR;
}
if (data[0] != 0x30) {