//
// SSL_CTX_set_alpn_protos from 0xfbf450 to 0xfbf4d8 (136 bytes)
//
// 2 xrefs:
// > sub_E2DA90 @ 0xe2e238
// > ??> @ 0xdb880
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:15:20 +0000
//
__int64 __fastcall SSL_CTX_set_alpn_protos(__int64 a1, __int64 a2, unsigned int a3)
{
__int64 v6; // x0
CRYPTO_free(*(_QWORD *)(a1 + 760), "ssl/ssl_lib.c", 2228);
v6 = CRYPTO_memdup(a2, a3, "ssl/ssl_lib.c", 2229);
*(_QWORD *)(a1 + 760) = v6;
if ( v6 )
{
*(_DWORD *)(a1 + 768) = a3;
return 0;
}
else
{
ERR_put_error(20, 343, 65, "ssl/ssl_lib.c", 2231);
return 1;
}
}