Auth status should not be removed when apple is reselected. Auth status is removed when the reader disconnects the card (unloads it).

With this fix, it is possible to login first and send immediate low level APDU command that requires authentification (such as login+CMAC).

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2022-03-17 23:37:02 +01:00
parent 36a8f78313
commit d87073f4cc
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -112,7 +112,7 @@ void select_file(file_t *pe) {
}
if (currentEF == file_openpgp || currentEF == file_sc_hsm) {
selected_applet = currentEF;
sc_hsm_unload(); //reset auth status
//sc_hsm_unload(); //reset auth status
}
}
static int cmd_select() {