//
// ssl_check_srvr_ecc_cert_and_alg from 0x798e34 to 0x798e94 (96 bytes)
//
// 2 xrefs:
// > ssl3_check_cert_and_algorithm @ 0x7a2fa8
// > ??> @ 0x5c01c
//
// 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_check_srvr_ecc_cert_and_alg(int a1, int a2)
{
if ( (*(_DWORD *)(*(_DWORD *)(*(_DWORD *)(a2 + 104) + 528) + 16) & 8) == 0 )
return 1;
if ( (X509_get_key_usage(a1) & 0x80) != 0 )
return 1;
ERR_put_error(20, 279, 318, "ssl/ssl_lib.c", 2742);
return 0;
}