//
// X509V3_EXT_add from 0xdfdf04 to 0xdfdfb0 (172 bytes)
//
// 3 xrefs:
// > X509V3_EXT_add_list @ 0xdfe0a0
// > X509V3_EXT_add_alias @ 0xdfe134
// > ??> @ 0xc96a8
//
// 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(__int64 a1)
{
__int64 v1; // x1
int *v2; // x19
v1 = a1;
v2 = (int *)qword_125F728;
if ( !qword_125F728 )
{
qword_125F728 = (__int64)OPENSSL_sk_new((__int64)sub_DFDEB8);
v2 = (int *)qword_125F728;
v1 = a1;
if ( !qword_125F728 )
{
ERR_put_error(34, 104, 65, (__int64)"crypto/x509v3/v3_lib.c", 29);
return (unsigned int)v2;
}
}
if ( (unsigned int)OPENSSL_sk_push(v2, v1) )
{
LODWORD(v2) = 1;
return (unsigned int)v2;
}
ERR_put_error(34, 104, 65, (__int64)"crypto/x509v3/v3_lib.c", 33);
return 0;
}