in native/src/sslutils.c [709:725]
static int add_ocsp_cert(OCSP_REQUEST *req, X509 *cert, X509 *issuer)
{
OCSP_CERTID *id;
if (!issuer)
return 0;
id = OCSP_cert_to_id(NULL, cert, issuer);
if (!id)
return 0;
if (!OCSP_request_add0_id(req, id)) {
OCSP_CERTID_free(id);
return 0;
} else {
/* id will be freed by OCSP_REQUEST_free() */
return 1;
}
}