//
// X509V3_EXT_REQ_add_nconf from 0xdfb46c to 0xdfb4f0 (132 bytes)
//
// 2 xrefs:
// > X509V3_EXT_REQ_add_conf @ 0xdfb7bc
// > ??> @ 0x79d10
//
// 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
//
__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;
}