Only accept those applets that load successfully.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2023-10-11 21:04:45 +02:00
parent eef2f190f2
commit 1b5a7496e1
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -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);