//
// ASN1_STRING_set_default_mask_asc from 0x8642a4 to 0x86438c (232 bytes)
//
// 1 xrefs:
// > ??> @ 0x6994c
//
// 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 ASN1_STRING_set_default_mask_asc(const char *a1)
{
unsigned int v3; // r0
char *v4; // [sp+4h] [bp-4h] BYREF
if ( !strncmp(a1, "MASK:", 5u) )
{
if ( !a1[5] )
return 0;
v3 = strtoul(a1 + 5, &v4, 0);
if ( *v4 )
return 0;
}
else if ( !strcmp(a1, "nombstr") )
{
v3 = -10241;
}
else if ( !strcmp(a1, "pkix") )
{
v3 = -5;
}
else if ( !strcmp(a1, "utf8only") )
{
v3 = 0x2000;
}
else
{
if ( strcmp(a1, "default") )
return 0;
v3 = -1;
}
ASN1_STRING_set_default_mask(v3);
return 1;
}