diff options
author | Stef Walter <stef@memberwebs.com> | 2008-12-08 22:16:49 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2008-12-08 22:16:49 +0000 |
commit | 3f036e4311b4742017f8e3cf802a1b80944a2b59 (patch) | |
tree | 5dcf4f9c684372042515e2b1d24de2a3bae0ec31 | |
parent | 921f76ee4de8242ed95672c560976bb2d9f7b894 (diff) |
Allow implementations not to support CKU_SO.
-rw-r--r-- | src/session.c | 2 |
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); |