summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-12-08 22:16:49 +0000
committerStef Walter <stef@memberwebs.com>2008-12-08 22:16:49 +0000
commit3f036e4311b4742017f8e3cf802a1b80944a2b59 (patch)
tree5dcf4f9c684372042515e2b1d24de2a3bae0ec31 /src
parent921f76ee4de8242ed95672c560976bb2d9f7b894 (diff)
Allow implementations not to support CKU_SO.
Diffstat (limited to 'src')
-rw-r--r--src/session.c2
1 files changed, 2 insertions, 0 deletions
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);