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 lies - I don't
know what to return and if I have to fill the values in the template or not.
According to the specification (if I understood correctly), I should return
CKR_BUFFER_TOO_SMALL and fill the ulValueLen properties to the length of the
two attribute values, which makes perfect sense.
Could you, please, provide stack trace at this point ? Which versions of NSS
and Thunderbird you are using ?
How do I get stack trace, please? I am using the latest stable release of
Thunderbird (3.1.2) which I am normally using.
Even better... As far as you are developer, you could investigate the problem
yourself for a bit.
Live with stock Thunderbird, but build debug version of NSS. Run TB against
built NSS, and let your interactive debugger break at the moment where TB calls
C_GetAttributeValue with zero-sized buffers. Then walk the stack trace and you
will quickly isolate the fault point.
--
Konstantin
--
dev-tech-crypto mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-crypto