//
// X509V3_EXT_add_alias from 0xdfe0c4 to 0xdfe184 (192 bytes)
//
// 1 xrefs:
// > ??> @ 0x88848
//
// 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_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;
}