Fix first AID load.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2022-04-08 00:29:15 +02:00
parent 98ad2e3d55
commit 4e6bada892
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -47,6 +47,7 @@ static int sc_hsm_process_apdu();
static void init_sc_hsm();
static int sc_hsm_unload();
static int cmd_select();
app_t *sc_hsm_select_aid(app_t *a) {
if (!memcmp(apdu.cmd_apdu_data, sc_hsm_aid+1, MIN(apdu.cmd_apdu_data_len,sc_hsm_aid[0]))) {
@ -67,6 +68,7 @@ void init_sc_hsm() {
scan_flash();
has_session_pin = has_session_sopin = false;
isUserAuthenticated = false;
cmd_select();
}
int sc_hsm_unload() {