Re: Assertion when using SEC_ASN1EncodeItem with subtemplate

2010-07-31 Thread Nelson B Bolyard
On 2010-07-31 14:23 PDT, Nelson B Bolyard wrote: > So, I moved the XTRN flag up to the PointerTo template, and that > didn't crash, but it failed. I'm debugging it now. My mistake. It succeeded. I interpreted the returned pointer to the output buffer as a non-zero result code indicating failur

Re: Assertion when using SEC_ASN1EncodeItem with subtemplate

2010-07-31 Thread Nelson B Bolyard
On 2010-07-30 20:53 PDT, Wan-Teh Chang wrote: > Here is Hanno's code modified to use a PointerTo template: > > SEC_ASN1_MKSUB(SECOID_AlgorithmIDTemplate) > > const SEC_ASN1Template MY_PointerToAlgorithmIDTemplate[] = { > { SEC_ASN1_POINTER, 0, SEC_ASN1_SUB(SECOID_AlgorithmIDTemplate) } > };

Re: Assertion when using SEC_ASN1EncodeItem with subtemplate

2010-07-31 Thread Nelson B Bolyard
On 2010-07-30 20:53 PDT, Wan-Teh Chang wrote: > On Fri, Jul 30, 2010 at 11:29 AM, Nelson B Bolyard wrote: >> I think you're right. I filed >> https://bugzilla.mozilla.org/show_bug.cgi?id=583308 >> with a patch to fix at least one problem. > > I ran Hanno's test program in a debugger. Why didn't