//
// SSL_add_client_CA from 0x791bb4 to 0x791c34 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x5b3cc
//
// 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 SSL_add_client_CA(int a1, int a2)
{
int subject_name; // r0
int v5; // r5
int v7; // r0
if ( !a2 )
return 0;
if ( !*(_DWORD *)(a1 + 292) )
{
v7 = OPENSSL_sk_new_null();
*(_DWORD *)(a1 + 292) = v7;
if ( !v7 )
return 0;
}
subject_name = X509_get_subject_name(a2);
v5 = X509_NAME_dup(subject_name);
if ( !v5 )
return 0;
if ( OPENSSL_sk_push(*(_DWORD *)(a1 + 292), v5) )
return 1;
X509_NAME_free(v5);
return 0;
}