//
// X509V3_EXT_REQ_add_nconf from 0x85436c to 0x8543d4 (104 bytes)
//
// 2 xrefs:
// > X509V3_EXT_REQ_add_conf @ 0x854678
// > ??> @ 0x68bec
//
// 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 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;
}