Fix ykpiv_attest slot argument name

This commit is contained in:
Trevor Bentley
2017-09-20 16:59:45 +02:00
parent f6b817f056
commit 13e02f998d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1273,10 +1273,10 @@ ykpiv_rc ykpiv_import_private_key(ykpiv_state *state, const unsigned char key, u
}
ykpiv_rc ykpiv_attest(ykpiv_state *state, int object_id, unsigned char *data, size_t *data_len) {
ykpiv_rc ykpiv_attest(ykpiv_state *state, const unsigned char key, unsigned char *data, size_t *data_len) {
ykpiv_rc res;
bool ret = false;
unsigned char templ[] = {0, YKPIV_INS_ATTEST, object_id, 0};
unsigned char templ[] = {0, YKPIV_INS_ATTEST, key, 0};
int sw;
if (state == NULL || data == NULL || data_len == NULL) {