//
// X509_PURPOSE_get_by_sname from 0x85a640 to 0x85a68c (76 bytes)
//
// 1 xrefs:
// > ??> @ 0x6957c
//
// 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_PURPOSE_get_by_sname(const char *a1)
{
int i; // r4
char *v3; // r0
for ( i = 0; ; ++i )
{
if ( i >= X509_PURPOSE_get_count() )
return -1;
v3 = X509_PURPOSE_get0(i);
if ( !strcmp(*((const char **)v3 + 5), a1) )
break;
}
return i;
}