//
// ssl_check_srvr_ecc_cert_and_alg from 0x9ada38 to 0x9ada98 (96 bytes)
//
// 2 xrefs:
// > ssl3_check_cert_and_algorithm @ 0x9b7bac
// > ??> @ 0x75a9c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:06:54 +0000
//
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;
}