hi all
I have a question in SEC_ASN1EncodeItem
SECItem *
SEC_ASN1EncodeItem (PRArenaPool *poolp, SECItem *dest, void *src,
const SEC_ASN1Template *theTemplate)
What i analysed is as follows
SEC_ASN1EncodeItem calls SEC_ASN1Encode twice.
SECStatus
SEC_ASN1Encode (void *src, const SEC_ASN1Template *theTemplate,
SEC_ASN1WriteProc output_proc, void *output_arg)
first time , the function pointer "output_proc" is used for allocation the
memory using "sec_asn1e_encode_item_count"
and second time "output_proc" is used for storing the data in SECItem using
"sec_asn1e_encode_item_store".
so why does some modules like CRMF using there own function like
SECStatus
CRMF_EncodeCertReqMessages(CRMFCertReqMsg
**inCertReqMsgs,CRMFEncoderOutputCallback fn,void *arg)
My question is if we make a call to SEC_ASN1EncodeItem passing CRMF specific
structures will it give the encoded output in the SECItem.
I meant to say i won't make CRMF specific funtion pointers.
will it work.
Thanks in advance
Bye Bonny Joy
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.