libp11
libp11 copied to clipboard
Is force_login supposed to prompt user to re-enter their PIN?
https://github.com/OpenSC/libp11/blob/master/src/eng_back.c#L211
Looking at the code, if force_login is set, and they are already logged in, it just returns true.
Shouldn't we force it to log out first if force_login is enabled?
+ if (ctx->force_login && slot_logged_in(ctx, slot))
+ PKCS11_logout(slot);
+
if (!(ctx->force_login || tok->loginRequired) || slot_logged_in(ctx, slot))
return 1;