//
// SSL_CTX_set_ssl_version from 0x795b00 to 0x795b80 (128 bytes)
//
// 1 xrefs:
// > ??> @ 0x5b79c
//
// 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_ssl_version(int a1, int a2)
{
int v2; // r12
int *cipher_list; // r0
v2 = *(_DWORD *)(a1 + 176);
*(_DWORD *)a1 = a2;
cipher_list = ssl_create_cipher_list(a2, (int **)(a1 + 4), (int *)(a1 + 8), "ALL:!COMPLEMENTOFDEFAULT:!eNULL", v2);
if ( cipher_list && OPENSSL_sk_num(cipher_list) > 0 )
return 1;
ERR_put_error(20, 170, 230, "ssl/ssl_lib.c", 514);
return 0;
}