//
// SSL_set_alpn_protos from 0xd41184 to 0xd4120c (136 bytes)
//
// 1 xrefs:
// > ??> @ 0x8b878
//
// 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_alpn_protos(__int64 a1, __int64 a2, unsigned int a3)
{
__int64 v6; // x0
CRYPTO_free(*(_QWORD *)(a1 + 776), "ssl/ssl_lib.c", 2247);
v6 = CRYPTO_memdup(a2, a3, "ssl/ssl_lib.c", 2248);
*(_QWORD *)(a1 + 776) = v6;
if ( v6 )
{
*(_DWORD *)(a1 + 784) = a3;
return 0;
}
else
{
ERR_put_error(20, 344, 65, "ssl/ssl_lib.c", 2250);
return 1;
}
}