SecCmsEncoderRef p7ecx;
SecCmsContentInfoRef rootcinfo, cinfo;
Boolean after = !before;
- PLArenaPool *poolp;
SECOidTag childtype;
SecAsn1Item * item;
PORT_Assert(p7ecx != NULL);
rootcinfo = &(p7ecx->cmsg->contentInfo);
- poolp = p7ecx->cmsg->poolp;
#ifdef CMSDEBUG
fprintf(stderr, "%6.6s, dest = 0x%08x, depth = %d\n", before ? "before" : "after", dest, depth);
OSStatus rv;
SECOidTag childtype;
SecCmsContentInfoRef cinfo;
- PLArenaPool *poolp;
SecCmsEncoderRef childp7ecx;
const SecAsn1Template *template;
- poolp = p7ecx->cmsg->poolp;
-
/* call _Encode_BeforeData handlers */
switch (p7ecx->type) {
case SEC_OID_PKCS7_SIGNED_DATA:
SecCmsContentInfoRef cinfo;
SECOidTag childtype;
+ if (!p7ecx) {
+ return errSecParam;
+ }
+
if (p7ecx->error)
return p7ecx->error;