//
// X509_EXTENSION_create_by_NID from 0x841b98 to 0x841c1c (132 bytes)
//
// 3 xrefs:
// > sub_8539DC @ 0x853ad8
// > X509V3_EXT_i2d @ 0x854168
// > ??> @ 0x6747c
//
// 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
//
const char ***__fastcall X509_EXTENSION_create_by_NID(const char ****a1, unsigned int a2, int a3, _DWORD *a4)
{
char **v7; // r5
const char ***result; // r0
v7 = OBJ_nid2obj(a2);
if ( v7 )
{
result = X509_EXTENSION_create_by_OBJ(a1, (const char **)v7, a3, a4);
if ( !result )
{
ASN1_OBJECT_free(v7);
return nullptr;
}
}
else
{
ERR_put_error(11, 108, 109, (int)"crypto/x509/x509_v3.c", 144);
return nullptr;
}
return result;
}