//
// CONF_module_add from 0x7daab0 to 0x7dab90 (224 bytes)
//
// 6 xrefs:
// > SSL_add_ssl_module @ 0x7b9fd8
// > ENGINE_add_conf_module @ 0x7f6364
// > EVP_add_alg_module @ 0x802374
// > ASN1_add_oid_module @ 0x8663e0
// > ASN1_add_stable_module @ 0x8667b4
// > ??> @ 0x5e03c
//
// 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
//
int __fastcall CONF_module_add(int a1, int a2, int a3)
{
_DWORD *v6; // r4
int v7; // r0
if ( dword_AD2E34 || (dword_AD2E34 = OPENSSL_sk_new_null(a1)) != 0 )
{
v6 = (_DWORD *)CRYPTO_zalloc(24, "crypto/conf/conf_mod.c", 234);
if ( v6 )
{
*v6 = 0;
v7 = CRYPTO_strdup(a1, "crypto/conf/conf_mod.c", 239);
v6[3] = a3;
v6[1] = v7;
v6[2] = a2;
if ( v7 )
{
if ( OPENSSL_sk_push(dword_AD2E34, v6) )
return 1;
CRYPTO_free(v6[1], "crypto/conf/conf_mod.c", 248);
CRYPTO_free(v6, "crypto/conf/conf_mod.c", 249);
}
else
{
CRYPTO_free(v6, "crypto/conf/conf_mod.c", 243);
}
}
}
return 0;
}