//
// SSL_CTX_has_client_custom_ext from 0xd549b8 to 0xd54a08 (80 bytes)
//
// 3 xrefs:
// > SSL_set_ct_validation_callback @ 0xd433d4
// > SSL_CTX_set_ct_validation_callback @ 0xd43c04
// > ??> @ 0xc0930
//
// 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_CTX_has_client_custom_ext(__int64 a1, int a2)
{
__int64 v2; // x2
__int64 result; // x0
unsigned __int16 *v4; // x2
__int64 v5; // x3
v2 = *(_QWORD *)(a1 + 288);
result = *(_QWORD *)(v2 + 416);
v4 = *(unsigned __int16 **)(v2 + 408);
if ( result )
{
if ( a2 == *v4 )
{
return 1;
}
else
{
v5 = 0;
while ( 1 )
{
++v5;
v4 += 24;
if ( v5 == result )
break;
if ( a2 == *v4 )
return 1;
}
return 0;
}
}
return result;
}