//
// SSL_set_ct_validation_callback from 0xd433ac to 0xd4344c (160 bytes)
//
// 4 xrefs:
// > SSL_new @ 0xd43700
// > SSL_enable_ct @ 0xd43e70
// > SSL_enable_ct @ 0xd43eac
// > ??> @ 0x64ae8
//
// 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 SSL_set_ct_validation_callback(_QWORD *a1, __int64 a2, __int64 a3)
{
unsigned int has_client_custom_ext; // w20
if ( !a2 )
goto LABEL_4;
has_client_custom_ext = SSL_CTX_has_client_custom_ext(a1[55], 18);
if ( !has_client_custom_ext )
{
if ( !SSL_ctrl((__int64)a1, 65, 1, nullptr) )
return has_client_custom_ext;
LABEL_4:
a1[71] = a2;
has_client_custom_ext = 1;
a1[72] = a3;
return has_client_custom_ext;
}
ERR_put_error(20, 399, 206, "ssl/ssl_lib.c", 4083);
return 0;
}