//
// SSL_CTX_set_alpn_protos from 0xd410fc to 0xd41184 (136 bytes)
//
// 2 xrefs:
// > sub_BB78D0 @ 0xbb8078
// > ??> @ 0xa7460
//
// 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_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;
}
}