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) {
+1 -1
View File
@@ -126,7 +126,7 @@ extern "C"
ykpiv_rc ykpiv_get_pin_retries(ykpiv_state *state, int* tries);
// TREV TODO: document that 0 == successful no-op.
ykpiv_rc ykpiv_set_pin_retries(ykpiv_state *state, int pin_tries, int puk_tries);
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);
#define YKPIV_ALGO_TAG 0x80
#define YKPIV_ALGO_3DES 0x03