//
// SSL_get1_supported_ciphers from 0x798070 to 0x798118 (168 bytes)
//
// 1 xrefs:
// > ??> @ 0x5bdac
//
// 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_get1_supported_ciphers(int a1)
{
int ciphers; // r6
int v3; // r4
int v4; // r7
int v5; // r0
int v6; // r1
int v8; // r5
ciphers = SSL_get_ciphers(a1);
if ( !ciphers )
return 0;
ssl_set_client_disabled(a1);
v3 = 0;
v4 = 0;
while ( 1 )
{
v5 = OPENSSL_sk_num(ciphers);
v6 = v3;
if ( v3++ >= v5 )
return v4;
v8 = OPENSSL_sk_value(ciphers, v6);
if ( !ssl_cipher_disabled(a1, v8, 65537) )
{
if ( !v4 )
{
v4 = OPENSSL_sk_new_null(0);
if ( !v4 )
return 0;
}
if ( !OPENSSL_sk_push(v4, v8) )
break;
}
}
OPENSSL_sk_free(v4);
return 0;
}