mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-07 05:26:10 +02:00
Only accept those applets that load successfully.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -38,8 +38,9 @@ int process_apdu() {
|
||||
}
|
||||
}
|
||||
current_app = &apps[a];
|
||||
current_app->select_aid(current_app);
|
||||
return set_res_sw(0x90, 0x00);
|
||||
if (current_app->select_aid(current_app) == CCID_OK) {
|
||||
return set_res_sw(0x90, 0x00);
|
||||
}
|
||||
}
|
||||
}
|
||||
return set_res_sw(0x6a, 0x82);
|
||||
|
||||
Reference in New Issue
Block a user