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
1ad122bf
Commit
1ad122bf
authored
Jul 30, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
base64 decode the passwords to use with msn compat
parent
1a525fd7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
agent/conncheck.c
agent/conncheck.c
+9
-0
No files found.
agent/conncheck.c
View file @
1ad122bf
...
...
@@ -1164,6 +1164,10 @@ int conn_check_send (NiceAgent *agent, CandidateCheckPair *pair)
struct
sockaddr
sockaddr
;
unsigned
int
timeout
;
if
(
agent
->
compatibility
==
NICE_COMPATIBILITY_MSN
)
{
password
=
g_base64_decode
((
gchar
*
)
password
,
&
password_len
);
}
memset
(
&
sockaddr
,
0
,
sizeof
(
sockaddr
));
nice_address_copy_to_sockaddr
(
&
pair
->
remote
->
addr
,
&
sockaddr
);
...
...
@@ -1766,6 +1770,11 @@ gboolean conn_check_handle_inbound_stun (NiceAgent *agent, Stream *stream,
validater_data
[
0
].
password_len
=
strlen
(
stream
->
local_password
);
}
if
(
agent
->
compatibility
==
NICE_COMPATIBILITY_MSN
)
{
validater_data
[
0
].
password
=
g_base64_decode
((
gchar
*
)
validater_data
[
0
].
password
,
&
validater_data
[
0
].
password_len
);
}
/* note: contents of 'buf' already validated, so it is
* a valid and fully received STUN message */
...
...
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