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.
Then thunderbird should ask for the values again (by calling
C_GetAttributeValue again), but with the right buffer sizes. The
problem is that it does not.
--
Konstantin
--
dev-tech-crypto mailing list
dev-tech-crypto@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-crypto