diff options
Diffstat (limited to 'src')
-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); |