//
// OCSP_REQ_CTX_new from 0xe634b4 to 0xe6356c (184 bytes)
//
// 2 xrefs:
// > OCSP_sendreq_new @ 0xe63748
// > ??> @ 0x3d9c8
//
// 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
//
_QWORD *__fastcall OCSP_REQ_CTX_new(__int64 a1, int a2)
{
_QWORD *result; // x0
__int64 v5; // x19
void *v6; // x0
__int64 v7; // x0
__int64 v8; // x0
void *v9; // x0
result = CRYPTO_zalloc(&word_38, (__int64)"crypto/ocsp/ocsp_ht.c", 66);
v5 = (__int64)result;
if ( result )
{
*(_DWORD *)result = 4096;
result[6] = 102400;
v6 = BIO_s_mem();
v7 = BIO_new((__int64)v6);
*(_QWORD *)(v5 + 24) = a1;
*(_QWORD *)(v5 + 32) = v7;
if ( a2 <= 0 )
{
v8 = 4096;
a2 = 4096;
}
else
{
v8 = a2;
}
*(_DWORD *)(v5 + 16) = a2;
v9 = CRYPTO_malloc((void *)v8, (__int64)"crypto/ocsp/ocsp_ht.c", 78);
*(_QWORD *)(v5 + 8) = v9;
if ( !v9 || (result = (_QWORD *)v5, !*(_QWORD *)(v5 + 32)) )
{
OCSP_REQ_CTX_free(v5);
return nullptr;
}
}
return result;
}