From 58edc20b2fcbf24d1ad484a9a6a22d2450f8ab7d Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 13 Nov 2009 04:28:31 +0000 Subject: Close all sessions before trying to log in as SO. --- src/session.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/session.c b/src/session.c index 6c3b4b1..db3ad47 100644 --- a/src/session.c +++ b/src/session.c @@ -127,6 +127,8 @@ test_session_so_login(CK_SLOT_ID slot) CK_ULONG n_pin; CK_RV rv; + (p11t_module_funcs->C_CloseAllSessions) (slot); + pin = p11t_session_get_pin (slot, CKU_SO, &n_pin); rv = (p11t_module_funcs->C_OpenSession)(slot, CKF_SERIAL_SESSION | CKF_RW_SESSION, NULL, NULL, &session_rw); -- cgit v1.2.3