From d87073f4cc8314a2f8a0f292231ade497e043c76 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Thu, 17 Mar 2022 23:37:02 +0100 Subject: [PATCH] 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 --- src/hsm/sc_hsm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hsm/sc_hsm.c b/src/hsm/sc_hsm.c index 7bed7cd..9e30eb4 100644 --- a/src/hsm/sc_hsm.c +++ b/src/hsm/sc_hsm.c @@ -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() {