Refactor CTAP2 file structure.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-09-15 14:16:12 +02:00
parent 82b5b1cb96
commit 3873303309
12 changed files with 708 additions and 1 deletions

View File

@@ -193,6 +193,7 @@ int scan_files() {
else {
printf("FATAL ERROR: Global counter not found in memory!\r\n");
}
ef_pin = search_by_fid(EF_PIN, NULL, SPECIFY_EF);
low_flash_available();
return CCID_OK;
}
@@ -211,7 +212,7 @@ bool wait_button_pressed() {
do {
queue_remove_blocking(&usb_to_card_q, &val);
} while (val != EV_BUTTON_PRESSED && val != EV_BUTTON_TIMEOUT);
return val == EV_BUTTON_TIMEOUT;
return (val == EV_BUTTON_TIMEOUT);
}
typedef struct cmd