[pkg-opensc-commit] [libp11] 07/27: FORCE_LOGIN updated to ignore CKF_LOGIN_REQUIRED (#160)
Eric Dorland
eric at moszumanska.debian.org
Mon Aug 7 19:48:08 UTC 2017
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository libp11.
commit 9939e2a334a2df20b4fda4e243d74bda0ca25e54
Author: Michał Trojnara <Michal.Trojnara at stunnel.org>
Date: Mon May 29 19:33:56 2017 +0200
FORCE_LOGIN updated to ignore CKF_LOGIN_REQUIRED (#160)
---
src/eng_back.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/eng_back.c b/src/eng_back.c
index 926c9ca..be21113 100644
--- a/src/eng_back.c
+++ b/src/eng_back.c
@@ -160,7 +160,7 @@ static int slot_logged_in(PKCS11_SLOT *slot) {
static int ctx_login(ENGINE_CTX *ctx, PKCS11_SLOT *slot, PKCS11_TOKEN *tok,
UI_METHOD *ui_method, void *callback_data)
{
- if (!tok->loginRequired || slot_logged_in(slot))
+ if (!(ctx->force_login || tok->loginRequired) || slot_logged_in(slot))
return 1;
/* If the token has a secure login (i.e., an external keypad),
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/libp11.git
More information about the pkg-opensc-commit
mailing list