//
// OCSP_sendreq_bio from 0xe63e08 to 0xe63ea0 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0x9c6a8
//
// 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_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;
}