Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
d73a8654
Commit
d73a8654
authored
Mar 05, 2009
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix TURN MSN for WLM2009 compat
parent
6c6c1d3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
agent/conncheck.c
agent/conncheck.c
+4
-2
agent/discovery.c
agent/discovery.c
+6
-4
No files found.
agent/conncheck.c
View file @
d73a8654
...
@@ -688,7 +688,8 @@ static void priv_turn_allocate_refresh_tick_unlocked (CandidateRefresh *cand)
...
@@ -688,7 +688,8 @@ static void priv_turn_allocate_refresh_tick_unlocked (CandidateRefresh *cand)
password
=
(
uint8_t
*
)
cand
->
turn
->
password
;
password
=
(
uint8_t
*
)
cand
->
turn
->
password
;
password_len
=
(
size_t
)
strlen
(
cand
->
turn
->
password
);
password_len
=
(
size_t
)
strlen
(
cand
->
turn
->
password
);
if
(
cand
->
agent
->
compatibility
==
NICE_COMPATIBILITY_MSN
)
{
if
(
agent_to_turn_compatibility
(
cand
->
agent
)
==
STUN_USAGE_TURN_COMPATIBILITY_MSN
)
{
username
=
g_base64_decode
((
gchar
*
)
username
,
&
username_len
);
username
=
g_base64_decode
((
gchar
*
)
username
,
&
username_len
);
password
=
g_base64_decode
((
gchar
*
)
password
,
&
password_len
);
password
=
g_base64_decode
((
gchar
*
)
password
,
&
password_len
);
}
}
...
@@ -700,7 +701,8 @@ static void priv_turn_allocate_refresh_tick_unlocked (CandidateRefresh *cand)
...
@@ -700,7 +701,8 @@ static void priv_turn_allocate_refresh_tick_unlocked (CandidateRefresh *cand)
password
,
password_len
,
password
,
password_len
,
agent_to_turn_compatibility
(
cand
->
agent
));
agent_to_turn_compatibility
(
cand
->
agent
));
if
(
cand
->
agent
->
compatibility
==
NICE_COMPATIBILITY_MSN
)
{
if
(
agent_to_turn_compatibility
(
cand
->
agent
)
==
STUN_USAGE_TURN_COMPATIBILITY_MSN
)
{
g_free
(
cand
->
msn_turn_username
);
g_free
(
cand
->
msn_turn_username
);
g_free
(
cand
->
msn_turn_password
);
g_free
(
cand
->
msn_turn_password
);
cand
->
msn_turn_username
=
username
;
cand
->
msn_turn_username
=
username
;
...
...
agent/discovery.c
View file @
d73a8654
...
@@ -160,7 +160,7 @@ void refresh_free_item (gpointer data, gpointer user_data)
...
@@ -160,7 +160,7 @@ void refresh_free_item (gpointer data, gpointer user_data)
password
=
(
uint8_t
*
)
cand
->
turn
->
password
;
password
=
(
uint8_t
*
)
cand
->
turn
->
password
;
password_len
=
(
size_t
)
strlen
(
cand
->
turn
->
password
);
password_len
=
(
size_t
)
strlen
(
cand
->
turn
->
password
);
if
(
agent
->
compatibility
==
NICE
_COMPATIBILITY_MSN
)
{
if
(
agent
_to_turn_compatibility
(
agent
)
==
STUN_USAGE_TURN
_COMPATIBILITY_MSN
)
{
username
=
g_base64_decode
((
gchar
*
)
username
,
&
username_len
);
username
=
g_base64_decode
((
gchar
*
)
username
,
&
username_len
);
password
=
g_base64_decode
((
gchar
*
)
password
,
&
password_len
);
password
=
g_base64_decode
((
gchar
*
)
password
,
&
password_len
);
}
}
...
@@ -181,7 +181,7 @@ void refresh_free_item (gpointer data, gpointer user_data)
...
@@ -181,7 +181,7 @@ void refresh_free_item (gpointer data, gpointer user_data)
}
}
if
(
agent
->
compatibility
==
NICE
_COMPATIBILITY_MSN
)
{
if
(
agent
_to_turn_compatibility
(
agent
)
==
STUN_USAGE_TURN
_COMPATIBILITY_MSN
)
{
g_free
(
username
);
g_free
(
username
);
g_free
(
password
);
g_free
(
password
);
}
}
...
@@ -834,7 +834,8 @@ static gboolean priv_discovery_tick_unlocked (gpointer pointer)
...
@@ -834,7 +834,8 @@ static gboolean priv_discovery_tick_unlocked (gpointer pointer)
uint8_t
*
password
=
(
uint8_t
*
)
cand
->
turn
->
password
;
uint8_t
*
password
=
(
uint8_t
*
)
cand
->
turn
->
password
;
size_t
password_len
=
(
size_t
)
strlen
(
cand
->
turn
->
password
);
size_t
password_len
=
(
size_t
)
strlen
(
cand
->
turn
->
password
);
if
(
agent
->
compatibility
==
NICE_COMPATIBILITY_MSN
)
{
if
(
agent_to_turn_compatibility
(
agent
)
==
STUN_USAGE_TURN_COMPATIBILITY_MSN
)
{
username
=
g_base64_decode
((
gchar
*
)
username
,
&
username_len
);
username
=
g_base64_decode
((
gchar
*
)
username
,
&
username_len
);
password
=
g_base64_decode
((
gchar
*
)
password
,
&
password_len
);
password
=
g_base64_decode
((
gchar
*
)
password
,
&
password_len
);
}
}
...
@@ -848,7 +849,8 @@ static gboolean priv_discovery_tick_unlocked (gpointer pointer)
...
@@ -848,7 +849,8 @@ static gboolean priv_discovery_tick_unlocked (gpointer pointer)
password
,
password_len
,
password
,
password_len
,
agent_to_turn_compatibility
(
agent
));
agent_to_turn_compatibility
(
agent
));
if
(
agent
->
compatibility
==
NICE_COMPATIBILITY_MSN
)
{
if
(
agent_to_turn_compatibility
(
agent
)
==
STUN_USAGE_TURN_COMPATIBILITY_MSN
)
{
g_free
(
cand
->
msn_turn_username
);
g_free
(
cand
->
msn_turn_username
);
g_free
(
cand
->
msn_turn_password
);
g_free
(
cand
->
msn_turn_password
);
cand
->
msn_turn_username
=
username
;
cand
->
msn_turn_username
=
username
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment