//
// SSL_get1_supported_ciphers from 0xd40c00 to 0xd40cc8 (200 bytes)
//
// 1 xrefs:
// > ??> @ 0x79bd8
//
// 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
//
__int64 __fastcall SSL_get1_supported_ciphers(__int64 a1)
{
__int64 ciphers; // x21
int v3; // w19
__int64 v4; // x22
bool v5; // cc
__int64 v6; // x1
__int64 v7; // x20
__int64 v8; // x0
ciphers = SSL_get_ciphers(a1);
if ( ciphers )
{
v3 = 0;
v4 = 0;
ssl_set_client_disabled(a1);
while ( 1 )
{
v5 = v3 < (int)OPENSSL_sk_num(ciphers);
v6 = (unsigned int)v3++;
if ( !v5 )
return v4;
v7 = OPENSSL_sk_value(ciphers, v6);
v8 = ssl_cipher_disabled(a1, v7, 65537);
if ( !(_DWORD)v8 )
{
if ( !v4 )
{
v4 = OPENSSL_sk_new_null(v8);
if ( !v4 )
return 0;
}
if ( !(unsigned int)OPENSSL_sk_push(v4, v7) )
break;
}
}
OPENSSL_sk_free(v4);
}
return 0;
}