//
// OCSP_sendreq_bio from 0x10e1e08 to 0x10e1ea0 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0xcdfc0
//
// 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_bio(__int64 a1, const char *a2, __int64 a3)
{
__int64 v4; // x21
int v5; // w19
__int64 v7; // [xsp+38h] [xbp+38h] BYREF
v7 = 0;
v4 = OCSP_sendreq_new(a1, a2, a3, -1);
if ( !v4 )
return 0;
while ( 1 )
{
v5 = OCSP_sendreq_nbio(&v7, v4);
if ( v5 != -1 )
break;
if ( !(unsigned int)BIO_test_flags(a1, 8u) )
{
OCSP_REQ_CTX_free(v4);
return v7;
}
}
OCSP_REQ_CTX_free(v4);
if ( !v5 )
return 0;
return v7;
}