Re: PKCS#11 module: C_GetAttributeValue problems

2010-08-13 Thread Robert Relyea
Guys, I figured out that Thunderbird didn't like this assignment of CKA_TOKEN when assigning the values (with the buffers of right sizes already allocated): > > pTemplate[i].pValue = (CK_BBOOL *)TRUE; > > (but it compiled fine). I changed it to > > *((CK_BBOOL *)pTemplate[i].pValue) = TRUE; Oh, yes

Re: PKCS#11 module: C_GetAttributeValue problems

2010-08-13 Thread Matej Kurpel
Dňa 13. 8. 2010 18:35, Robert Relyea wrote / napísal(a): On 08/13/2010 05:37 AM, Konstantin Andreev wrote: On 08/13/10 04:44, Robert Relyea wrote: On Wed, Aug 11, 2010 at 1:18 PM, Matej Kurpel wrote: [ ... skip ... ] Later, thunderbird asks for its attributes CKA_TOKEN and CKA_LABEL but give

Re: PKCS#11 module: C_GetAttributeValue problems

2010-08-13 Thread Robert Relyea
On 08/13/2010 05:37 AM, Konstantin Andreev wrote: > On 08/13/10 04:44, Robert Relyea wrote: >>> On Wed, Aug 11, 2010 at 1:18 PM, Matej Kurpel >>> wrote: >>> [ ... skip ... ] Later, thunderbird asks for its attributes CKA_TOKEN and CKA_LABEL but gives zero-sized buffers for both valu

Re[6]: PKCS#11 module: C_GetAttributeValue problems

2010-08-13 Thread Konstantin Andreev
On 08/13/10 04:44, Robert Relyea wrote: On Wed, Aug 11, 2010 at 1:18 PM, Matej Kurpel wrote: [ ... skip ... ] Later, thunderbird asks for its attributes CKA_TOKEN and CKA_LABEL but gives zero-sized buffers for both values. ... According to the specification (if I understood correctly), I sho

Re: PKCS#11 module: C_GetAttributeValue problems

2010-08-12 Thread Robert Relyea
On 08/11/2010 09:53 PM, Wan-Teh Chang wrote: > On Wed, Aug 11, 2010 at 1:18 PM, Matej Kurpel wrote: > >> Hello, >> I am trying to implement a PKCS#11 module for my diploma thesis. It is >> intended to be used with thunderbird. I am using opensc pkcs11-spy module to >> debug it. I have a proble

Re[5]: PKCS#11 module: C_GetAttributeValue problems

2010-08-12 Thread Konstantin Andreev
On 08/12/10 14:26, Matej Kurpel wrote: Dňa 12. 8. 2010 11:03, Konstantin Andreev wrote / napísal(a): On 08/12/10 00:18, Matej Kurpel wrote: [ ... skip ...] Later, thunderbird asks for its attributes CKA_TOKEN and CKA_LABEL but gives zero-sized buffers for both values. This is where my problem

Re: PKCS#11 module: C_GetAttributeValue problems

2010-08-12 Thread Matej Kurpel
Dňa 12. 8. 2010 11:03, Konstantin Andreev wrote / napísal(a): On 08/12/10 00:18, Matej Kurpel wrote: [ ... skip ...] Later, thunderbird asks for its attributes CKA_TOKEN and CKA_LABEL but gives zero-sized buffers for both values. This is where my problem lies - I don't know what to return an

Re[2]: PKCS#11 module: C_GetAttributeValue problems

2010-08-12 Thread Konstantin Andreev
On 08/12/10 00:18, Matej Kurpel wrote: [ ... skip ...] Later, thunderbird asks for its attributes CKA_TOKEN and CKA_LABEL but gives zero-sized buffers for both values. This is where my problem lies - I don't know what to return and if I have to fill the values in the template or not. Accordin

Re: PKCS#11 module: C_GetAttributeValue problems

2010-08-11 Thread Wan-Teh Chang
On Wed, Aug 11, 2010 at 1:18 PM, Matej Kurpel wrote: >  Hello, > I am trying to implement a PKCS#11 module for my diploma thesis. It is > intended to be used with thunderbird. I am using opensc pkcs11-spy module to > debug it. I have a problem for quite some days I don't seem to be able to > solve

PKCS#11 module: C_GetAttributeValue problems

2010-08-11 Thread Matej Kurpel
Hello, I am trying to implement a PKCS#11 module for my diploma thesis. It is intended to be used with thunderbird. I am using opensc pkcs11-spy module to debug it. I have a problem for quite some days I don't seem to be able to solve myself. At first, thunderbird searches for token certificat