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
4d04f6a4
Commit
4d04f6a4
authored
Oct 06, 2008
by
Youness Alaoui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix hmac calculation. If a multiple of 64, do not pad with 64 bytes. It's fine as it is
parent
520d2973
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
stun/stunhmac.c
stun/stunhmac.c
+1
-1
No files found.
stun/stunhmac.c
View file @
4d04f6a4
...
...
@@ -68,7 +68,7 @@ void stun_sha1 (const uint8_t *msg, size_t len, uint8_t *sha,
/* RFC 3489 specifies that the message's size should be 64 bytes,
and \x00 padding should be done */
if
(
padding
)
{
if
(
padding
&&
((
len
-
24
)
%
64
)
>
0
)
{
uint16_t
pad_size
=
64
-
((
len
-
24
)
%
64
);
int
i
;
uint8_t
pad_char
[
1
]
=
{
0
};
...
...
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