//
// X509V3_EXT_nconf from 0xa68994 to 0xa68b50 (444 bytes)
//
// 3 xrefs:
// > X509V3_EXT_add_nconf_sk @ 0xa68ed0
// > X509V3_EXT_conf @ 0xa6915c
// > ??> @ 0x8261c
//
// 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:37 +0000
//
const char ***__fastcall X509V3_EXT_nconf(int a1, int a2, char *a3, char *a4)
{
char *v5; // r4
size_t v8; // r9
const char *v9; // r0
int v10; // t1
int v11; // r7
const char *v12; // lr
int v13; // r3
int v14; // t1
const char ***result; // r0
char *v16; // r0
v5 = a4;
v8 = strlen(a4);
if ( v8 <= 8 )
{
v11 = 0;
}
else
{
if ( strncmp(v5, "critical,", 9u) )
{
v11 = 0;
goto LABEL_7;
}
v9 = v5 + 9;
if ( (*(_BYTE *)(ctype_ + (unsigned __int8)v5[9] + 1) & 8) != 0 )
{
do
v10 = *(unsigned __int8 *)++v9;
while ( (*(_BYTE *)(ctype_ + v10 + 1) & 8) != 0 );
}
v5 = (char *)v9;
v11 = 1;
v8 = strlen(v9);
}
if ( v8 <= 3 )
{
LABEL_15:
v16 = OBJ_sn2nid((int)a3);
result = sub_A685DC(a1, a2, (unsigned int)v16, v11, v5);
if ( !result )
{
ERR_put_error(34, 152, 128, (int)"crypto/x509v3/v3_conf.c", 47);
ERR_add_error_data(4, "name=", a3, ", value=", v5);
return nullptr;
}
return result;
}
LABEL_7:
if ( !strncmp(v5, "DER:", 4u) )
{
v12 = v5 + 4;
v13 = 1;
}
else
{
if ( v8 == 4 || strncmp(v5, "ASN1:", 5u) )
goto LABEL_15;
v12 = v5 + 5;
v13 = 2;
}
if ( (*(_BYTE *)(ctype_ + *(unsigned __int8 *)v12 + 1) & 8) != 0 )
{
do
v14 = *(unsigned __int8 *)++v12;
while ( (*(_BYTE *)(ctype_ + v14 + 1) & 8) != 0 );
}
return sub_A68410(a3, v12, v11, v13, a2);
}