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
25c8b837
Commit
25c8b837
authored
Nov 03, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only define variables at the start of blocks
parent
18e925b0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
agent/agent.c
agent/agent.c
+4
-2
stun/stun3489bis.c
stun/stun3489bis.c
+1
-1
stun/stunhmac.c
stun/stunhmac.c
+2
-2
No files found.
agent/agent.c
View file @
25c8b837
...
@@ -924,9 +924,10 @@ nice_agent_gather_candidates (
...
@@ -924,9 +924,10 @@ nice_agent_gather_candidates (
agent
->
stun_server_ip
)
{
agent
->
stun_server_ip
)
{
NiceAddress
stun_server
;
NiceAddress
stun_server
;
if
(
nice_address_set_from_string
(
&
stun_server
,
agent
->
stun_server_ip
))
{
if
(
nice_address_set_from_string
(
&
stun_server
,
agent
->
stun_server_ip
))
{
gboolean
res
;
nice_address_set_port
(
&
stun_server
,
agent
->
stun_server_port
);
nice_address_set_port
(
&
stun_server
,
agent
->
stun_server_port
);
gboolean
res
=
res
=
priv_add_new_candidate_discovery_stun
(
agent
,
priv_add_new_candidate_discovery_stun
(
agent
,
host_candidate
,
host_candidate
,
stun_server
,
stun_server
,
...
@@ -1212,10 +1213,11 @@ nice_agent_add_remote_candidate (
...
@@ -1212,10 +1213,11 @@ nice_agent_add_remote_candidate (
const
gchar
*
username
,
const
gchar
*
username
,
const
gchar
*
password
)
const
gchar
*
password
)
{
{
gboolean
ret
;
g_static_rec_mutex_lock
(
&
agent
->
mutex
);
g_static_rec_mutex_lock
(
&
agent
->
mutex
);
gboolean
ret
=
ret
=
priv_add_remote_candidate
(
agent
,
priv_add_remote_candidate
(
agent
,
stream_id
,
stream_id
,
component_id
,
component_id
,
...
...
stun/stun3489bis.c
View file @
25c8b837
...
@@ -73,8 +73,8 @@ uint32_t stun_fingerprint (const uint8_t *msg, size_t len)
...
@@ -73,8 +73,8 @@ uint32_t stun_fingerprint (const uint8_t *msg, size_t len)
bool
stun_has_cookie
(
const
StunMessage
*
msg
)
bool
stun_has_cookie
(
const
StunMessage
*
msg
)
{
{
stun_transid_t
id
;
stun_transid_t
id
;
stun_message_id
(
msg
,
id
);
uint32_t
cookie
=
htonl
(
STUN_MAGIC_COOKIE
);
uint32_t
cookie
=
htonl
(
STUN_MAGIC_COOKIE
);
stun_message_id
(
msg
,
id
);
return
memcmp
(
id
,
&
cookie
,
sizeof
(
cookie
))
==
0
;
return
memcmp
(
id
,
&
cookie
,
sizeof
(
cookie
))
==
0
;
}
}
...
...
stun/stunhmac.c
View file @
25c8b837
...
@@ -101,8 +101,8 @@ void stun_hash_creds (const uint8_t *realm, size_t realm_len,
...
@@ -101,8 +101,8 @@ void stun_hash_creds (const uint8_t *realm, size_t realm_len,
{
{
EVP_MD_CTX
ctx
;
EVP_MD_CTX
ctx
;
const
uint8_t
*
username_trimmed
=
priv_trim_var
(
username
,
&
username_len
);
const
uint8_t
*
username_trimmed
=
priv_trim_var
(
username
,
&
username_len
);
const
uint8_t
*
password_trimmed
=
priv_trim_var
(
password
,
&
password_len
);
;
const
uint8_t
*
password_trimmed
=
priv_trim_var
(
password
,
&
password_len
);
const
uint8_t
*
realm_trimmed
=
priv_trim_var
(
realm
,
&
realm_len
);
;
const
uint8_t
*
realm_trimmed
=
priv_trim_var
(
realm
,
&
realm_len
);
EVP_MD_CTX_init
(
&
ctx
);
EVP_MD_CTX_init
(
&
ctx
);
EVP_DigestInit_ex
(
&
ctx
,
EVP_md5
(),
NULL
);
EVP_DigestInit_ex
(
&
ctx
,
EVP_md5
(),
NULL
);
...
...
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