//
// X509_PURPOSE_get_by_sname from 0xe00dc4 to 0xe00e24 (96 bytes)
//
// 1 xrefs:
// > ??> @ 0x64b00
//
// 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 X509_PURPOSE_get_by_sname(const char *a1)
{
int i; // w19
char *v3; // x0
for ( i = 0; ; ++i )
{
if ( i >= (int)X509_PURPOSE_get_count() )
return 0xFFFFFFFFLL;
v3 = X509_PURPOSE_get0(i);
if ( !strcmp(*((const char **)v3 + 4), a1) )
break;
}
return (unsigned int)i;
}