//
// CONF_module_add from 0x9ef6b0 to 0x9ef790 (224 bytes)
//
// 6 xrefs:
// > SSL_add_ssl_module @ 0x9cebdc
// > ENGINE_add_conf_module @ 0xa0af64
// > EVP_add_alg_module @ 0xa16f74
// > ASN1_add_oid_module @ 0xa7afe0
// > ASN1_add_stable_module @ 0xa7b3b4
// > ??> @ 0x77abc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:28 +0000
//
int __fastcall CONF_module_add(int a1, int a2, int a3)
{
_DWORD *v6; // r4
int v7; // r0
if ( dword_D340C0 || (dword_D340C0 = 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_D340C0, 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;
}