//
// SCT_set1_signature from 0xd842ac to 0xd84360 (180 bytes)
//
// 2 xrefs:
// > o2i_SCT_signature @ 0xd830fc
// > ??> @ 0xb0040
//
// 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_set1_signature(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v6; // x0
CRYPTO_free(*(_QWORD *)(a1 + 72), "crypto/ct/ct_sct.c", 173);
*(_QWORD *)(a1 + 72) = 0;
*(_QWORD *)(a1 + 80) = 0;
*(_DWORD *)(a1 + 96) = 0;
if ( !a2 || !a3 )
return 1;
v6 = CRYPTO_memdup(a2, a3, "crypto/ct/ct_sct.c", 179);
*(_QWORD *)(a1 + 72) = v6;
if ( v6 )
{
*(_QWORD *)(a1 + 80) = a3;
return 1;
}
else
{
ERR_put_error(50, 116, 65, "crypto/ct/ct_sct.c", 181);
return 0;
}
}