//
// OCSP_request_add1_cert from 0xdc360c to 0xdc36a0 (148 bytes)
//
// 3 xrefs:
// > OCSP_request_sign @ 0xdc379c
// > OCSP_request_sign @ 0xdc37bc
// > ??> @ 0x90858
//
// 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_request_add1_cert(__int64 a1, __int64 a2)
{
__int64 v2; // x19
__int64 v5; // x0
__int64 v7; // x0
v2 = *(_QWORD *)(a1 + 32);
if ( !v2 )
{
v7 = OCSP_SIGNATURE_new();
*(_QWORD *)(a1 + 32) = v7;
v2 = v7;
if ( !v7 )
return 0;
}
if ( !a2 )
return 1;
v5 = *(_QWORD *)(v2 + 24);
if ( !v5 )
{
v5 = OPENSSL_sk_new_null(0);
*(_QWORD *)(v2 + 24) = v5;
if ( !v5 )
return 0;
}
if ( !(unsigned int)OPENSSL_sk_push(v5, a2) )
return 0;
X509_up_ref(a2);
return 1;
}