mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-01-17 09:28:05 +00:00
Fix first AID load.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
98ad2e3d55
commit
4e6bada892
1 changed files with 2 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue