//
// SCT_set_log_entry_type from 0x1002258 to 0x10022a4 (76 bytes)
//
// 4 xrefs:
// > SCT_set_source @ 0x1002828
// > SCT_set_source @ 0x1002830
// > SCT_new_from_base64 @ 0x10a2950
// > ??> @ 0xed658
//
// 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:54 +0000
//
__int64 __fastcall SCT_set_log_entry_type(__int64 a1, unsigned int a2)
{
*(_DWORD *)(a1 + 96) = 0;
if ( a2 > 1 )
{
ERR_put_error(50, 102, 102, "crypto/ct/ct_sct.c", 69);
return 0;
}
else
{
*(_DWORD *)(a1 + 88) = a2;
return 1;
}
}