//
// SCT_set1_extensions from 0xd841ac to 0xd84260 (180 bytes)
//
// 1 xrefs:
// > ??> @ 0xb46f0
//
// 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_extensions(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v6; // x0
CRYPTO_free(*(_QWORD *)(a1 + 48), "crypto/ct/ct_sct.c", 147);
*(_QWORD *)(a1 + 48) = 0;
*(_QWORD *)(a1 + 56) = 0;
*(_DWORD *)(a1 + 96) = 0;
if ( !a2 || !a3 )
return 1;
v6 = CRYPTO_memdup(a2, a3, "crypto/ct/ct_sct.c", 153);
*(_QWORD *)(a1 + 48) = v6;
if ( v6 )
{
*(_QWORD *)(a1 + 56) = a3;
return 1;
}
else
{
ERR_put_error(50, 114, 65, "crypto/ct/ct_sct.c", 155);
return 0;
}
}