//
// OCSP_request_add1_cert from 0x104196c to 0x1041a00 (148 bytes)
//
// 3 xrefs:
// > OCSP_request_sign @ 0x1041afc
// > OCSP_request_sign @ 0x1041b1c
// > ??> @ 0xbf398
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:16:31 +0000
//
__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;
}