From: YH C. <hue...@gm...> - 2006-01-25 01:56:10
|
Hi all, I am using openCryptoki to access IBM crypto card 4758 for my project. And when I try to initialize the HSM via PKCS11 C_InitToken, it always fail with return code 0xB6 (CKR_SESSION_EXIST). I tried both 1) make direct API call to C_InitToken, and 2) use pkcsconf -I -c 0 (which in turns call PKCS11 API as well). But the result is just the same. I tried pkcsconf -M to show the shared memory; the global session count is 0. What's is the problem? Is it sth about user permission? The application running user is not in group "pkcs11", is it related? (I searched code and the problem seems to be in function "session_exists", which check global_session_count in shared memory. ) Would anyone please help me ? Thanks , Hue |