//
// X509V3_EXT_REQ_add_nconf from 0x10797ac to 0x1079830 (132 bytes)
//
// 2 xrefs:
// > X509V3_EXT_REQ_add_conf @ 0x1079afc
// > ??> @ 0xa2d60
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:17:05 +0000
//
__int64 __fastcall X509V3_EXT_REQ_add_nconf(__int64 a1, _DWORD *a2, __int64 a3, __int64 a4)
{
unsigned int v6; // w19
void **v7; // [xsp+28h] [xbp+28h] BYREF
v7 = nullptr;
if ( !a4 )
return (unsigned int)X509V3_EXT_add_nconf_sk(a1, a2, a3, nullptr);
if ( !(unsigned int)X509V3_EXT_add_nconf_sk(a1, a2, a3, &v7) )
return 0;
v6 = X509_REQ_add_extensions(a4, v7);
OPENSSL_sk_pop_free((int *)v7, (void (__fastcall *)(__int64))X509_EXTENSION_free);
return v6;
}