Skip to content

Commit

Permalink
Set ALPN manually
Browse files Browse the repository at this point in the history
  • Loading branch information
kp-mariappan-ramasamy committed Feb 12, 2025
1 parent cb7b843 commit 94fc6de
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/he/conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,13 @@ static he_return_code_t he_conn_internal_connect(he_conn_t *conn, he_ssl_ctx_t *
}
#endif

char *alpn_list = "WebRTC";
if (wolfSSL_UseALPN(conn->wolf_ssl, alpn_list, strlen(alpn_list),
WOLFSSL_APN_FAILED_ON_MISMATCH) != WOLFSSL_SUCCESS)
{
return HE_ERR_INIT_FAILED;
}

// Change state to connecting
he_internal_change_conn_state(conn, HE_STATE_CONNECTING);

Expand Down

0 comments on commit 94fc6de

Please sign in to comment.