Use search_file() method.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2024-04-17 19:19:45 +02:00
parent b034303193
commit 35d5d5e94e
12 changed files with 24 additions and 24 deletions

View File

@@ -37,7 +37,7 @@ int cmd_puk_auth() {
return SW_INCORRECT_P1P2();
}
for (uint8_t i = 0; i < puk_data[0]; i++) {
ef = search_dynamic_file(EF_PUK + i);
ef = search_file(EF_PUK + i);
if (!ef) { /* Never should not happen */
return SW_MEMORY_FAILURE();
}
@@ -56,7 +56,7 @@ int cmd_puk_auth() {
if (p2 >= puk_data[0]) {
return SW_INCORRECT_P1P2();
}
ef = search_dynamic_file(EF_PUK + p2);
ef = search_file(EF_PUK + p2);
if (!ef) { /* Never should not happen */
return SW_MEMORY_FAILURE();
}
@@ -72,7 +72,7 @@ int cmd_puk_auth() {
if (p2 >= puk_data[0]) {
return SW_INCORRECT_P1P2();
}
file_t *ef = search_dynamic_file(EF_PUK + p2);
file_t *ef = search_file(EF_PUK + p2);
if (!ef) {
return SW_INCORRECT_P1P2();
}