Backport minidriver changes
* Port ykpiv_auth_getchallenge and ykpiv_auth_verifyresponse - Commit 8fde607b50b19c57a662c53c6b276b54a78606d8 - Commit 6046b98e477cfef59a590ce2177336d694813e7e - Commit 422cea11745dc67d15039e242ed21ecb5208ae55 - Commit 1d31647e5a27bd2df6bda76512c7d673980f0bec * Rename connect2() and done2() to connect_with_external_card(), etc. * Select applet in ykpiv_change_pin, change_puk, and unblock_pin
This commit is contained in:
@@ -795,6 +795,10 @@ ykpiv_rc ykpiv_util_generate_key(ykpiv_state *state, uint8_t slot, uint8_t algor
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (sw == SW_ERR_SECURITY_STATUS) {
|
||||
res = YKPIV_AUTHENTICATION_ERROR;
|
||||
if (state->verbose) { fprintf(stderr, "not authenticated)\n"); }
|
||||
}
|
||||
else {
|
||||
res = YKPIV_GENERIC_ERROR;
|
||||
if (state->verbose) { fprintf(stderr, "error %x)\n", sw); }
|
||||
|
||||
Reference in New Issue
Block a user