Clear session pin on unload and new session.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos
2022-04-13 14:25:44 +02:00
parent da6c578973
commit 9dfe0ee7b3
2 changed files with 2 additions and 0 deletions

View File

@@ -75,6 +75,7 @@ void init_sc_hsm() {
int sc_hsm_unload() {
has_session_pin = has_session_sopin = false;
isUserAuthenticated = false;
sm_session_pin_len = 0;
return HSM_OK;
}