//
// tls_post_process_client_key_exchange from 0xd53500 to 0xd535a0 (160 bytes)
//
// 2 xrefs:
// > ossl_statem_server_post_process_message @ 0xd535d0
// > ??> @ 0x51e70
//
// 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 tls_post_process_client_key_exchange(__int64 a1)
{
if ( *(_DWORD *)(a1 + 108) || !*(_QWORD *)(*(_QWORD *)(a1 + 376) + 152LL) )
{
if ( (unsigned int)ssl3_digest_cached_records(a1, 0) )
return 2;
LABEL_8:
ossl_statem_set_error(a1);
return 0;
}
if ( !*(_QWORD *)(*(_QWORD *)(a1 + 144) + 216LL) )
{
ERR_put_error(20, 384, 68, "ssl/statem/statem_srvr.c", 2676);
ossl_statem_set_error(a1);
return 0;
}
if ( !(unsigned int)ssl3_digest_cached_records(a1, 1) )
goto LABEL_8;
return 2;
}