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
77ff1d20
Commit
77ff1d20
authored
Jul 30, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding a 'force validater' usage flag for the stun agent and made libnice use it for msn support
parent
db3cb4f0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
agent/agent.c
agent/agent.c
+2
-1
stun/stunagent.c
stun/stunagent.c
+4
-3
stun/stunagent.h
stun/stunagent.h
+1
-0
No files found.
agent/agent.c
View file @
77ff1d20
...
...
@@ -535,7 +535,8 @@ nice_agent_set_property (
}
else
if
(
agent
->
compatibility
==
NICE_COMPATIBILITY_MSN
)
{
stun_agent_init
(
&
agent
->
stun_agent
,
STUN_ALL_KNOWN_ATTRIBUTES
,
STUN_COMPATIBILITY_RFC3489
,
STUN_AGENT_USAGE_SHORT_TERM_CREDENTIALS
);
STUN_AGENT_USAGE_SHORT_TERM_CREDENTIALS
|
STUN_AGENT_USAGE_FORCE_VALIDATER
);
}
break
;
...
...
stun/stunagent.c
View file @
77ff1d20
...
...
@@ -192,9 +192,10 @@ StunValidationStatus stun_agent_validate (StunAgent *agent, StunMessage *msg,
return
STUN_VALIDATION_UNAUTHORIZED_BAD_REQUEST
;
}
if
(
key
==
NULL
&&
(
agent
->
usage_flags
&
STUN_AGENT_USAGE_IGNORE_CREDENTIALS
)
==
0
&&
stun_message_has_attribute
(
msg
,
STUN_ATTRIBUTE_MESSAGE_INTEGRITY
))
{
if
(
stun_message_has_attribute
(
msg
,
STUN_ATTRIBUTE_MESSAGE_INTEGRITY
)
&&
((
key
==
NULL
&&
(
agent
->
usage_flags
&
STUN_AGENT_USAGE_IGNORE_CREDENTIALS
)
==
0
)
||
(
agent
->
usage_flags
&
STUN_AGENT_USAGE_FORCE_VALIDATER
)))
{
username_len
=
0
;
username
=
(
uint8_t
*
)
stun_message_find
(
msg
,
STUN_ATTRIBUTE_USERNAME
,
&
username_len
);
...
...
stun/stunagent.h
View file @
77ff1d20
...
...
@@ -84,6 +84,7 @@ typedef enum {
#define STUN_AGENT_USAGE_USE_FINGERPRINT 0x0004
#define STUN_AGENT_USAGE_ADD_SERVER 0x0008
#define STUN_AGENT_USAGE_IGNORE_CREDENTIALS 0x0010
#define STUN_AGENT_USAGE_FORCE_VALIDATER 0x0020
typedef
struct
{
...
...
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