//
// ssl_add_serverhello_use_srtp_ext from 0x7b77c4 to 0x7b7880 (188 bytes)
//
// 3 xrefs:
// > ssl_add_serverhello_tlsext @ 0x7aedac
// > ssl_add_serverhello_tlsext @ 0x7aee28
// > ??> @ 0x5d84c
//
// 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
//
int __fastcall ssl_add_serverhello_use_srtp_ext(int a1, int a2, _DWORD *a3, int a4)
{
if ( !a2 )
goto LABEL_5;
if ( a4 <= 4 )
{
ERR_put_error(20, 308, 363, "ssl/d1_srtp.c", 255);
return 1;
}
else
{
if ( *(_DWORD *)(a1 + 460) )
{
*(_BYTE *)a2 = 0;
*(_BYTE *)(a2 + 1) = 2;
*(_BYTE *)(a2 + 2) = BYTE1(*(_DWORD *)(*(_DWORD *)(a1 + 460) + 4));
*(_WORD *)(a2 + 3) = (unsigned __int8)*(_DWORD *)(*(_DWORD *)(a1 + 460) + 4);
LABEL_5:
*a3 = 5;
return 0;
}
ERR_put_error(20, 308, 369, "ssl/d1_srtp.c", 261);
return 1;
}
}