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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user