//
// ssl3_init_finished_mac from 0xd5f408 to 0xd5f488 (128 bytes)
//
// 6 xrefs:
// > sub_D47644 @ 0xd47c5c
// > sub_D47644 @ 0xd47f84
// > ossl_statem_client_pre_work @ 0xd48c50
// > ossl_statem_server_post_work @ 0xd50318
// > ossl_statem_server_post_work @ 0xd503a0
// > ??> @ 0x6ee38
//
// 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 ssl3_init_finished_mac(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x19
v2 = BIO_s_mem();
v3 = BIO_new(v2);
if ( v3 )
{
ssl3_free_digest_list(a1);
*(_QWORD *)(*(_QWORD *)(a1 + 144) + 216LL) = v3;
BIO_ctrl(v3, 9, 1, 0);
return 1;
}
else
{
ERR_put_error(20, 397, 65, "ssl/s3_enc.c", 337);
return 0;
}
}