//
// OCSP_sendreq_new from 0xe6372c to 0xe637ac (128 bytes)
//
// 2 xrefs:
// > OCSP_sendreq_bio @ 0xe63e28
// > ??> @ 0x65760
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__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;
}