Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
vlc
Commits
2a0e2bd2
Commit
2a0e2bd2
authored
May 17, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix hashing when using RFC4711
parent
17611282
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
libs/srtp/srtp.c
libs/srtp/srtp.c
+10
-1
No files found.
libs/srtp/srtp.c
View file @
2a0e2bd2
...
...
@@ -651,7 +651,16 @@ srtp_recv (srtp_session_t *s, uint8_t *buf, size_t *lenp)
rcc
=
roc
;
const
uint8_t
*
tag
=
rtp_digest
(
s
,
buf
,
len
,
rcc
);
if
(
memcmp
(
buf
+
len
+
roc_len
,
tag
,
s
->
tag_len
))
#if 0
printf ("Computed: 0x");
for (unsigned i = 0; i < tag_len; i++)
printf ("%02x", tag[i]);
printf ("\nReceived: 0x");
for (unsigned i = 0; i < tag_len; i++)
printf ("%02x", buf[len + roc_len + i]);
puts ("");
#endif
if
(
memcmp
(
buf
+
len
+
roc_len
,
tag
,
tag_len
))
return
EACCES
;
if
(
roc_len
)
...
...
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