//
// X509V3_EXT_add_alias from 0x107c404 to 0x107c4c4 (192 bytes)
//
// 1 xrefs:
// > ??> @ 0xb50c0
//
// 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:07 +0000
//
__int64 __fastcall X509V3_EXT_add_alias(int a1, int a2)
{
const void *nid; // x21
_DWORD *v4; // x0
_DWORD *v5; // x19
nid = (const void *)X509V3_EXT_get_nid(a2);
if ( nid )
{
v4 = CRYPTO_malloc(&qword_68, (__int64)"crypto/x509v3/v3_lib.c", 162);
v5 = v4;
if ( v4 )
{
memcpy(v4, nid, 0x68u);
*v5 = a1;
v5[1] |= 1u;
return X509V3_EXT_add((__int64)v5);
}
ERR_put_error(34, 106, 65, (__int64)"crypto/x509v3/v3_lib.c", 163);
}
else
{
ERR_put_error(34, 106, 102, (__int64)"crypto/x509v3/v3_lib.c", 159);
}
return 0;
}