From e387033266aed2cb8f402f6f1378b181778b27dc Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Mon, 26 Dec 2022 20:45:15 +0100 Subject: [PATCH] Fix returning ID in VERSION. Signed-off-by: Pol Henarejos --- src/fido/oath.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fido/oath.c b/src/fido/oath.c index 8d2c6c7..b6f105d 100644 --- a/src/fido/oath.c +++ b/src/fido/oath.c @@ -81,12 +81,12 @@ app_t *oath_select(app_t *a, const uint8_t *aid, uint8_t aid_len) { a->unload = oath_unload; res_APDU_size = 0; res_APDU[res_APDU_size++] = TAG_VERSION; - res_APDU[res_APDU_size++] = 2; + res_APDU[res_APDU_size++] = 3; res_APDU[res_APDU_size++] = PICO_FIDO_VERSION_MAJOR; res_APDU[res_APDU_size++] = PICO_FIDO_VERSION_MINOR; + res_APDU[res_APDU_size++] = 0; res_APDU[res_APDU_size++] = TAG_NAME; - res_APDU[res_APDU_size++] = 9; - memcpy(res_APDU+res_APDU_size, (const uint8_t *)"Pico Fido", 9); res_APDU_size += 9; + res_APDU[res_APDU_size++] = 8; pico_get_unique_board_id((pico_unique_board_id_t *)(res_APDU+res_APDU_size)); res_APDU_size += 8; if (file_has_data(search_dynamic_file(EF_OATH_CODE)) == true) { res_APDU[res_APDU_size++] = TAG_CHALLENGE;