From 3f036e4311b4742017f8e3cf802a1b80944a2b59 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 8 Dec 2008 22:16:49 +0000 Subject: Allow implementations not to support CKU_SO. --- src/session.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/session.c b/src/session.c index 81e7dc6..1ed0104 100644 --- a/src/session.c +++ b/src/session.c @@ -160,6 +160,8 @@ test_session_so_login(CK_SLOT_ID slot) P11T_CHECK_RV("Test opening RO session before login as SO", rv, CKR_OK); rv = (p11t_module_funcs->C_Login)(session_ro, CKU_SO, pin, n_pin); + if(rv == CKR_USER_TYPE_INVALID) + return CONTINUE; P11T_CHECK_RV("Login as SO not allowed with RO session", rv, CKR_SESSION_READ_ONLY_EXISTS); rv = (p11t_module_funcs->C_CloseSession)(session_ro); -- cgit v1.2.3