//
// SSL_set_session_ticket_ext from 0xd4718c to 0xd47288 (252 bytes)
//
// 1 xrefs:
// > ??> @ 0x8c730
//
// 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_set_session_ticket_ext(__int64 a1, const void *a2, int a3)
{
__int64 v7; // x0
if ( *(int *)a1 <= 768 )
return 0;
CRYPTO_free(*(_QWORD *)(a1 + 680), "ssl/ssl_sess.c", 942);
*(_QWORD *)(a1 + 680) = 0;
v7 = CRYPTO_malloc(a3 + 16LL, "ssl/ssl_sess.c", 945);
*(_QWORD *)(a1 + 680) = v7;
if ( !v7 )
{
ERR_put_error(20, 294, 65, "ssl/ssl_sess.c", 947);
return 0;
}
if ( a2 )
{
*(_WORD *)v7 = a3;
*(_QWORD *)(v7 + 8) = v7 + 16;
memcpy((void *)(v7 + 16), a2, a3);
}
else
{
*(_WORD *)v7 = 0;
*(_QWORD *)(v7 + 8) = 0;
}
return 1;
}