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