certOrEncCert->cert.certificate = NULL;
cmmf_DestroyCertOrEncCert(CMMFCertOrEncCert *certOrEncCert, PRBool freeit){    switch (certOrEncCert->choice) {    case cmmfCertificate:        CERT_DestroyCertificate(certOrEncCert->cert.certificate);	break;    case cmmfEncryptedCert:        crmf_destroy_encrypted_value(certOrEncCert->cert.encryptedCert,				     PR_TRUE);	break;    default:        break;    }    if (freeit) {        PORT_Free(certOrEncCert);    }    return SECSuccess;}