//
// OCSP_sendreq_bio from 0xace978 to 0xacea04 (140 bytes)
//
// 1 xrefs:
// > ??> @ 0x84ccc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:09:22 +0000
//
int __fastcall OCSP_sendreq_bio(int a1, const char *a2, size_t *a3)
{
_DWORD *v4; // r5
int v5; // r4
int v7; // [sp+4h] [bp-8h] BYREF
v7 = 0;
v4 = OCSP_sendreq_new(a1, a2, a3, -1);
if ( !v4 )
return 0;
while ( 1 )
{
v5 = OCSP_sendreq_nbio(&v7, (int)v4);
if ( v5 != -1 )
break;
if ( !BIO_test_flags(a1, 8) )
{
OCSP_REQ_CTX_free((int)v4);
return v7;
}
}
OCSP_REQ_CTX_free((int)v4);
if ( !v5 )
return 0;
return v7;
}