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, The first line would definitely cause a crash;).
>
> and it works perfectly! I am pretty n00b at C++ (well, still
> learning). I will avoid this mistake in the future. Thanks again for
> your willing to help :)
>
> M. Kurpel


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

Reply via email to