//
// SSL_CTX_set_alpn_protos from 0x79850c to 0x79858c (128 bytes)
//
// 2 xrefs:
// > sub_643938 @ 0x643dea
// > ??> @ 0x551fc
//
// 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_CTX_set_alpn_protos(int a1, int a2, int a3)
{
int v6; // r0
CRYPTO_free(*(_DWORD *)(a1 + 476), "ssl/ssl_lib.c", 2228);
v6 = CRYPTO_memdup(a2, a3, "ssl/ssl_lib.c", 2229);
*(_DWORD *)(a1 + 476) = v6;
if ( v6 )
{
*(_DWORD *)(a1 + 480) = a3;
return 0;
}
else
{
ERR_put_error(20, 343, 65, "ssl/ssl_lib.c", 2231);
return 1;
}
}