mirror of
https://github.com/polhenarejos/pico-hsm.git
synced 2026-05-03 21:36:25 +00:00
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:
parent
36a8f78313
commit
d87073f4cc
1 changed files with 1 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue