//
// tls_post_process_client_key_exchange from 0x9c08ac to 0x9c0958 (172 bytes)
//
// 2 xrefs:
// > ossl_statem_server_post_process_message @ 0x9c0990
// > ??> @ 0x7711c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:07:04 +0000
//
int __fastcall tls_post_process_client_key_exchange(_DWORD *a1)
{
if ( a1[20] || !*(_DWORD *)(a1[60] + 140) )
{
if ( ssl3_digest_cached_records(a1, 0) )
return 2;
LABEL_7:
ossl_statem_set_error((int)a1);
return 0;
}
if ( *(_DWORD *)(a1[26] + 212) )
{
if ( ssl3_digest_cached_records(a1, 1) )
return 2;
goto LABEL_7;
}
ERR_put_error(20, 384, 68, "ssl/statem/statem_srvr.c", 2676);
ossl_statem_set_error((int)a1);
return 0;
}