Commit f6632bda authored by Youness Alaoui's avatar Youness Alaoui

Update the integrity to send the correct username and no password for the google interop

parent ca8fe244
...@@ -1568,7 +1568,8 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream, Compo ...@@ -1568,7 +1568,8 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream, Compo
StunMessage msg; StunMessage msg;
nice_address_copy_to_sockaddr (from, &sockaddr); nice_address_copy_to_sockaddr (from, &sockaddr);
g_snprintf (uname, sizeof (uname), "%s:%s", stream->local_ufrag, g_snprintf (uname, sizeof (uname), "%s%s%s", stream->local_ufrag,
agent->compatibility == NICE_COMPATIBILITY_ID19 ? ":" : "",
stream->remote_ufrag); stream->remote_ufrag);
/* note: contents of 'buf' already validated, so it is /* note: contents of 'buf' already validated, so it is
...@@ -1580,7 +1581,8 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream, Compo ...@@ -1580,7 +1581,8 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream, Compo
res = stun_conncheck_reply (&agent->stun_agent, &req, (uint8_t *)buf, (size_t) len, &msg, rbuf, &rbuf_len, res = stun_conncheck_reply (&agent->stun_agent, &req, (uint8_t *)buf, (size_t) len, &msg, rbuf, &rbuf_len,
&sockaddr, sizeof (sockaddr), (uint8_t *) uname, strlen (uname), &sockaddr, sizeof (sockaddr), (uint8_t *) uname, strlen (uname),
(uint8_t *)stream->local_password, strlen (stream->local_password), agent->compatibility == NICE_COMPATIBILITY_GOOGLE ? NULL : (uint8_t *)stream->local_password,
agent->compatibility == NICE_COMPATIBILITY_GOOGLE ? 0 : strlen (stream->local_password),
&control, agent->tie_breaker, agent->compatibility); &control, agent->tie_breaker, agent->compatibility);
if (res == EACCES) if (res == EACCES)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment