if (inCertRepContent != NULL && inCertRepContent->poolp != NULL) { if (inCertRepContent->response != NULL) { for (i=0; inCertRepContent->response[i] != NULL; i++) { certKeyPair = inCertRepContent->response[i]->certifiedKeyPair;
if (inCertRepContent != NULL) { CMMFCertResponse   **pResponse = inCertRepContent->response; if (pResponse != NULL) { for (; *pResponse != NULL; pResponse++) { CMMFCertifiedKeyPair *certKeyPair = (*pResponse)->certifiedKeyPair;
CMMF_DestroyCertRepContent(CMMFCertRepContent *inCertRepContent){    CMMFCertifiedKeyPair *certKeyPair;    int i;    PORT_Assert(inCertRepContent != NULL);    if (inCertRepContent != NULL && inCertRepContent->poolp != NULL) {        if (inCertRepContent->response != NULL) {            for (i=0; inCertRepContent->response[i] != NULL; i++) {                certKeyPair = inCertRepContent->response[i]->certifiedKeyPair;                if (certKeyPair != NULL                    &&                    certKeyPair->certOrEncCert.choice == cmmfCertificate &&                    certKeyPair->certOrEncCert.cert.certificate != NULL) {                    CERT_DestroyCertificate                                 (certKeyPair->certOrEncCert.cert.certificate);                }            }        }        PORT_FreeArena(inCertRepContent->poolp, PR_TRUE);    }    return SECSuccess;}