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