//
// OCSP_sendreq_bio from 0x8b9978 to 0x8b9a04 (140 bytes)
//
// 1 xrefs:
// > ??> @ 0x6b24c
//
// 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
//
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;
}