//
// tls_post_process_client_key_exchange from 0xfd1854 to 0xfd18f4 (160 bytes)
//
// 2 xrefs:
// > ossl_statem_server_post_process_message @ 0xfd1924
// > ??> @ 0x71f08
//
// 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:30 +0000
//
__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;
}