//
// SSL_CONF_CTX_set1_prefix from 0xfe1780 to 0xfe1828 (168 bytes)
//
// 1 xrefs:
// > ??> @ 0xf27d0
//
// 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:15:38 +0000
//
__int64 __fastcall SSL_CONF_CTX_set1_prefix(__int64 a1, __int64 a2)
{
__int64 v3; // x19
const char *v4; // x0
if ( a2 )
{
v3 = CRYPTO_strdup(a2, "ssl/ssl_conf.c", 831);
if ( v3 )
{
CRYPTO_free(*(_QWORD *)(a1 + 8), "ssl/ssl_conf.c", 835);
*(_QWORD *)(a1 + 8) = v3;
v4 = (const char *)v3;
LODWORD(v3) = 1;
*(_QWORD *)(a1 + 16) = strlen(v4);
}
return (unsigned int)v3;
}
else
{
CRYPTO_free(*(_QWORD *)(a1 + 8), "ssl/ssl_conf.c", 835);
*(_QWORD *)(a1 + 8) = 0;
*(_QWORD *)(a1 + 16) = 0;
return 1;
}
}