Only accept those applets that load successfully.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
eef2f190f2
commit
1b5a7496e1
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue