Re: Thunderbird crashing when C_SignInit returns other than CKR_OK

2010-12-11 Thread Nelson B Bolyard
Matej,

Your message contains an obvious self-contradiction.  Observe:

On 2010-12-10 09:57 PDT, Matej Kurpel wrote:

 CK_RV CK_ENTRY C_SignInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR 
 pMechanism, CK_OBJECT_HANDLE hKey)
 {
   return CKR_FUNCTION_CANCELED;   
 }

 89: C_SignInit
 [in] hSession = 0x2
 pMechanism-type=CKM_RSA_PKCS
 [in] hKey = 0x2
 Returned:  84 CKR_FUNCTION_NOT_SUPPORTED  

Are you perhaps not testing with your own latest builds, or something?

-- 
/Nelson Bolyard
-- 
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto


Re: Thunderbird crashing when C_SignInit returns other than CKR_OK

2010-12-11 Thread Matej Kurpel

On 11. 12. 2010 19:05, Nelson B Bolyard wrote:

Matej,

Your message contains an obvious self-contradiction.  Observe:

On 2010-12-10 09:57 PDT, Matej Kurpel wrote:


CK_RV CK_ENTRY C_SignInit(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR
pMechanism, CK_OBJECT_HANDLE hKey)
{
   return CKR_FUNCTION_CANCELED;
}
89: C_SignInit
[in] hSession = 0x2
pMechanism-type=CKM_RSA_PKCS
[in] hKey = 0x2
Returned:  84 CKR_FUNCTION_NOT_SUPPORTED

Are you perhaps not testing with your own latest builds, or something?

Ah, that's because I tried CKR_FUNCTION_NOT_SUPPORTED then and copied 
the wrong pkcs log. But that's not really the point since it crashes 
everytime, no matter which CKR_ return code I use (apart from CKR_OK) 
from the ones allowed by the pkcs11 specification.


M. Kurpel
--
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto