//
// OCSP_sendreq_new from 0x10e172c to 0x10e17ac (128 bytes)
//
// 2 xrefs:
// > OCSP_sendreq_bio @ 0x10e1e28
// > ??> @ 0x89e00
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:17:49 +0000
//
__int64 __fastcall OCSP_sendreq_new(__int64 a1, const char *a2, __int64 a3, int a4)
{
_QWORD *v6; // x0
__int64 v7; // x19
__int64 result; // x0
v6 = OCSP_REQ_CTX_new(a1, a4);
v7 = (__int64)v6;
if ( !v6 )
return 0;
if ( !(unsigned int)OCSP_REQ_CTX_http((__int64)v6, "POST", a2) )
goto LABEL_7;
result = v7;
if ( !a3 )
return result;
if ( !(unsigned int)OCSP_REQ_CTX_set1_req(v7, a3) )
{
LABEL_7:
OCSP_REQ_CTX_free(v7);
return 0;
}
return v7;
}