//
// SSL_add_client_CA from 0xfb9088 to 0xfb911c (148 bytes)
//
// 1 xrefs:
// > ??> @ 0x77c50
//
// 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:15:16 +0000
//
__int64 __fastcall SSL_add_client_CA(__int64 a1, __int64 a2)
{
__int64 subject_name; // x0
__int64 v5; // x20
__int64 v7; // x0
if ( !a2 )
return 0;
if ( !*(_QWORD *)(a1 + 472) )
{
v7 = OPENSSL_sk_new_null();
*(_QWORD *)(a1 + 472) = v7;
if ( !v7 )
return 0;
}
subject_name = X509_get_subject_name(a2);
v5 = X509_NAME_dup(subject_name);
if ( !v5 )
return 0;
if ( (unsigned int)OPENSSL_sk_push(*(_QWORD *)(a1 + 472), v5) )
return 1;
X509_NAME_free(v5);
return 0;
}