//
// SCT_set0_log_id from 0xd83f44 to 0xd83fd4 (144 bytes)
//
// 2 xrefs:
// > SCT_new_from_base64 @ 0xe245d0
// > ??> @ 0x5a630
//
// 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 SCT_set0_log_id(__int64 a1, __int64 a2, __int64 a3)
{
if ( a3 == 32 || *(_DWORD *)a1 )
{
CRYPTO_free(*(_QWORD *)(a1 + 24), "crypto/ct/ct_sct.c", 81);
*(_QWORD *)(a1 + 24) = a2;
*(_QWORD *)(a1 + 32) = a3;
*(_DWORD *)(a1 + 96) = 0;
return 1;
}
else
{
ERR_put_error(50, 101, 100, "crypto/ct/ct_sct.c", 77);
return 0;
}
}