//
// X509_get_extended_key_usage from 0x85b408 to 0x85b430 (40 bytes)
//
// 2 xrefs:
// > OCSP_basic_verify @ 0x81fe88
// > ??> @ 0x64dac
//
// 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_extended_key_usage(int a1)
{
X509_check_purpose(a1, -1, -1);
if ( (*(_DWORD *)(a1 + 112) & 4) != 0 )
return *(_DWORD *)(a1 + 120);
else
return -1;
}