//
// OCSP_request_add1_cert from 0xa326c0 to 0xa32748 (136 bytes)
//
// 3 xrefs:
// > OCSP_request_sign @ 0xa32830
// > OCSP_request_sign @ 0xa32850
// > ??> @ 0x7e27c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:08:06 +0000
//
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;
}