//
// X509_PURPOSE_get_by_sname from 0xa6f240 to 0xa6f28c (76 bytes)
//
// 1 xrefs:
// > ??> @ 0x82ffc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:08:41 +0000
//
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;
}