//
// SSL_dup_CA_list from 0x9a6654 to 0x9a670c (184 bytes)
//
// 1 xrefs:
// > ??> @ 0x74dec
//
// 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:06:50 +0000
//
int __fastcall SSL_dup_CA_list(int a1)
{
int v2; // r7
int v3; // r4
int v4; // r0
int v5; // r6
v2 = OPENSSL_sk_new_null();
if ( v2 )
{
v3 = 0;
while ( v3 < OPENSSL_sk_num(a1) )
{
v4 = OPENSSL_sk_value(a1, v3++);
v5 = X509_NAME_dup(v4);
if ( !v5 || !OPENSSL_sk_push(v2, v5) )
{
OPENSSL_sk_pop_free(v2, X509_NAME_free);
X509_NAME_free(v5);
return 0;
}
}
}
else
{
ERR_put_error(20, 408, 65, "ssl/ssl_cert.c", 475);
}
return v2;
}