//
// OCSP_REQ_CTX_new from 0x8b8ff8 to 0x8b908c (148 bytes)
//
// 2 xrefs:
// > OCSP_sendreq_new @ 0x8b9240
// > ??> @ 0x6b1ac
//
// 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
//
_DWORD *__fastcall OCSP_REQ_CTX_new(int a1, int a2)
{
_DWORD *v4; // r0
_DWORD *v5; // r4
void *v6; // r0
_DWORD *v7; // r0
void *v8; // r0
void *v9; // r0
bool v10; // zf
_DWORD *result; // r0
v4 = CRYPTO_zalloc(&dword_1C, (int)"crypto/ocsp/ocsp_ht.c", 66);
v5 = v4;
if ( !v4 )
return nullptr;
v4[6] = 102400;
*v4 = 4096;
v6 = BIO_s_mem();
v7 = BIO_new((int)v6);
v5[3] = a1;
v5[4] = v7;
if ( a2 <= 0 )
v8 = &stru_FFC + 4;
else
v8 = (void *)a2;
v5[2] = v8;
v9 = CRYPTO_malloc(v8, (int)"crypto/ocsp/ocsp_ht.c", 78);
v10 = v9 == nullptr;
v5[1] = v9;
result = v5;
if ( v10 || !v5[4] )
{
OCSP_REQ_CTX_free((int)v5);
return nullptr;
}
return result;
}