//
// SSL_CTX_set_cipher_list from 0x7981a8 to 0x798224 (124 bytes)
//
// 4 xrefs:
// > sub_643938 @ 0x643d9a
// > sub_643938 @ 0x64407c
// > sub_7BB6F4 @ 0x7bb710
// > ??> @ 0x551ec
//
// 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_CTX_set_cipher_list(int a1, char *a2)
{
int *cipher_list; // r0
int *v3; // r4
cipher_list = ssl_create_cipher_list(*(_DWORD *)a1, (int **)(a1 + 4), (int *)(a1 + 8), a2, *(_DWORD *)(a1 + 176));
v3 = cipher_list;
if ( cipher_list )
{
if ( !OPENSSL_sk_num(cipher_list) )
{
ERR_put_error(20, 269, 185, "ssl/ssl_lib.c", 2018);
return nullptr;
}
return &dword_0 + 1;
}
return v3;
}