On 17/01/2011 11:55, Newsha Ardalani wrote:
and this is my piece of code:


/*2. Open Session*/


rv = C_OpenSession(0 , CKF_SERIAL_SESSION | CKF_RW_SESSION, NULL, NULL,
&hSession);

That is your problem.

0 is not a valid CK_SESSION_HANDLE what you want is the element in the slot list array at position 0 not the literal value of 0.

This is a very common PKCS#11 programming error.

--
Darren J Moffat
_______________________________________________
crypto-discuss mailing list
crypto-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/crypto-discuss

Reply via email to