//
// SSL_get_client_CA_list from 0xfb9040 to 0xfb9088 (72 bytes)
//
// 3 xrefs:
// > ssl_do_client_cert_cb @ 0xfca79c
// > tls_construct_certificate_request @ 0xfd0940
// > ??> @ 0xb24f8
//
// 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_get_client_CA_list(__int64 a1)
{
__int64 result; // x0
if ( *(_DWORD *)(a1 + 56) )
{
result = *(_QWORD *)(a1 + 472);
if ( !result )
return *(_QWORD *)(*(_QWORD *)(a1 + 440) + 256LL);
}
else if ( *(int *)a1 >> 8 == 3 )
{
result = *(_QWORD *)(a1 + 144);
if ( result )
return *(_QWORD *)(result + 592);
}
else
{
return 0;
}
return result;
}