nssDecodedCert *rvDC; rvDC = nss_ZNEW(arenaOpt, nssDecodedCert); rvDC->type = NSSCertificateType_PKIX; rvDC->data = (void *)cc; rvDC->getIdentifier = nss3certificate_getIdentifier; rvDC->getIssuerIdentifier = nss3certificate_getIssuerIdentifier; rvDC->matchIdentifier = nss3certificate_matchIdentifier; rvDC->isValidIssuer = nss3certificate_isValidIssuer; rvDC->getUsage = nss3certificate_getUsage; rvDC->isValidAtTime = nss3certificate_isValidAtTime; rvDC->isNewerThan = nss3certificate_isNewerThan; rvDC->matchUsage = nss3certificate_matchUsage; rvDC->getEmailAddress = nss3certificate_getEmailAddress;
nssDecodedCert *rvDC = nss_ZNEW(arenaOpt, nssDecodedCert); if (rvDC) { rvDC->type                = NSSCertificateType_PKIX; rvDC->data                = (void *)cc; rvDC->getIdentifier       = nss3certificate_getIdentifier; rvDC->getIssuerIdentifier = nss3certificate_getIssuerIdentifier; rvDC->matchIdentifier     = nss3certificate_matchIdentifier; rvDC->isValidIssuer       = nss3certificate_isValidIssuer; rvDC->getUsage            = nss3certificate_getUsage; rvDC->isValidAtTime       = nss3certificate_isValidAtTime; rvDC->isNewerThan         = nss3certificate_isNewerThan; rvDC->matchUsage          = nss3certificate_matchUsage; rvDC->getEmailAddress     = nss3certificate_getEmailAddress; }
create_decoded_pkix_cert_from_nss3cert (  NSSArena *arenaOpt,  CERTCertificate *cc){    nssDecodedCert *rvDC;    rvDC = nss_ZNEW(arenaOpt, nssDecodedCert);    rvDC->type = NSSCertificateType_PKIX;    rvDC->data = (void *)cc;    rvDC->getIdentifier = nss3certificate_getIdentifier;    rvDC->getIssuerIdentifier = nss3certificate_getIssuerIdentifier;    rvDC->matchIdentifier = nss3certificate_matchIdentifier;    rvDC->isValidIssuer = nss3certificate_isValidIssuer;    rvDC->getUsage = nss3certificate_getUsage;    rvDC->isValidAtTime = nss3certificate_isValidAtTime;    rvDC->isNewerThan = nss3certificate_isNewerThan;    rvDC->matchUsage = nss3certificate_matchUsage;    rvDC->getEmailAddress = nss3certificate_getEmailAddress;    return rvDC;}