//
// ssl_check_srvr_ecc_cert_and_alg from 0xd41974 to 0xd419d8 (100 bytes)
//
// 2 xrefs:
// > ssl3_check_cert_and_algorithm @ 0xd4b260
// > ??> @ 0x9fc18
//
// 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_check_srvr_ecc_cert_and_alg(__int64 a1, __int64 a2)
{
if ( (*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a2 + 144) + 552LL) + 24LL) & 8) == 0 || (X509_get_key_usage(a1) & 0x80) != 0 )
return 1;
ERR_put_error(20, 279, 318, "ssl/ssl_lib.c", 2742);
return 0;
}