//
// X509V3_EXT_REQ_add_nconf from 0xa68f6c to 0xa68fd4 (104 bytes)
//
// 2 xrefs:
// > X509V3_EXT_REQ_add_conf @ 0xa69278
// > ??> @ 0x8266c
//
// 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
//
int __fastcall X509V3_EXT_REQ_add_nconf(int a1, _DWORD *a2, int a3, int a4)
{
int result; // r0
int v6; // r4
void **v7; // [sp+4h] [bp-4h] BYREF
v7 = nullptr;
if ( !a4 )
return X509V3_EXT_add_nconf_sk(a1, a2, a3, nullptr);
result = X509V3_EXT_add_nconf_sk(a1, a2, a3, &v7);
if ( result )
{
v6 = X509_REQ_add_extensions(a4, v7);
OPENSSL_sk_pop_free((int)v7, (void (__fastcall *)(int))X509_EXTENSION_free);
return v6;
}
return result;
}