//
// X509_get_key_usage from 0x85b3e0 to 0x85b408 (40 bytes)
//
// 3 xrefs:
// > ssl_set_masks @ 0x798df0
// > ssl_check_srvr_ecc_cert_and_alg @ 0x798e58
// > ??> @ 0x5c00c
//
// 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 X509_get_key_usage(int a1)
{
X509_check_purpose(a1, -1, -1);
if ( (*(_DWORD *)(a1 + 112) & 2) != 0 )
return *(_DWORD *)(a1 + 116);
else
return -1;
}