//
// SSL_CONF_CTX_set1_prefix from 0xd6342c to 0xd634d4 (168 bytes)
//
// 1 xrefs:
// > ??> @ 0xb9dd8
//
// 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 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;
}
}