PORT_Assert(cert != NULL);  if (cert == NULL) return SECFailure;
PORT_Assert(cert); PORT_Assert(sigd); if (!sigd || !cert) { PORT_SetError(SEC_ERROR_LIBRARY_FAILURE); return SECFailure; }
NSS_CMSSignedData_AddCertificate(NSSCMSSignedData *sigd, CERTCertificate *cert){    CERTCertificate *c;    SECStatus rv;    PORT_Assert(cert != NULL);    if (cert == NULL)	return SECFailure;    c = CERT_DupCertificate(cert);    rv = NSS_CMSArray_Add(sigd->cmsg->poolp, (void ***)&(sigd->certs), (void *)c);    return rv;}