//
// OCSP_request_add1_cert from 0x81dac0 to 0x81db48 (136 bytes)
//
// 3 xrefs:
// > OCSP_request_sign @ 0x81dc30
// > OCSP_request_sign @ 0x81dc50
// > ??> @ 0x647fc
//
// 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_request_add1_cert(int a1, int a2)
{
_DWORD *v2; // r4
int v5; // r0
v2 = *(_DWORD **)(a1 + 16);
if ( !v2 )
{
v2 = OCSP_SIGNATURE_new();
*(_DWORD *)(a1 + 16) = v2;
if ( !v2 )
return 0;
}
if ( !a2 )
return 1;
v5 = v2[3];
if ( !v5 )
{
v5 = OPENSSL_sk_new_null(0);
v2[3] = v5;
if ( !v5 )
return 0;
}
if ( !OPENSSL_sk_push(v5, a2) )
return 0;
X509_up_ref(a2);
return 1;
}