//
// ssl_cert_new from 0x790c3c to 0x790d04 (200 bytes)
//
// 2 xrefs:
// > SSL_CTX_new @ 0x798954
// > ??> @ 0x5b15c
//
// 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
//
_DWORD *ssl_cert_new()
{
_DWORD *v0; // r4
int v1; // r5
v0 = (_DWORD *)CRYPTO_zalloc(248, "ssl/ssl_cert.c", 59);
if ( v0 )
{
*v0 = v0 + 5;
v0[60] = 1;
v0[57] = 1;
v0[56] = sub_790880;
v0[58] = 0;
v1 = CRYPTO_THREAD_lock_new();
v0[61] = v1;
if ( v1 )
{
return v0;
}
else
{
ERR_put_error(20, 162, 65, "ssl/ssl_cert.c", 73);
CRYPTO_free(v0, "ssl/ssl_cert.c", 74);
return nullptr;
}
}
else
{
ERR_put_error(20, 162, 65, "ssl/ssl_cert.c", 62);
return nullptr;
}
}