Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
ba108304
Commit
ba108304
authored
May 18, 2016
by
jehan
Browse files
rename bctoolbox_ to bctbx_
parent
b46d2cf1
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
85 additions
and
85 deletions
+85
-85
src/crypto/dtls_srtp.c
src/crypto/dtls_srtp.c
+82
-82
src/voip/stun.c
src/voip/stun.c
+3
-3
No files found.
src/crypto/dtls_srtp.c
View file @
ba108304
This diff is collapsed.
Click to expand it.
src/voip/stun.c
View file @
ba108304
...
...
@@ -1337,9 +1337,9 @@ stunCalculateIntegrity_longterm(char* hmac, const char* input, int length,
char
HA1_text
[
1024
];
snprintf
(
HA1_text
,
sizeof
(
HA1_text
),
"%s:%s:%s"
,
username
,
realm
,
password
);
bct
oolbo
x_md5
((
unsigned
char
*
)
HA1_text
,
strlen
(
HA1_text
),
HA1
);
bct
b
x_md5
((
unsigned
char
*
)
HA1_text
,
strlen
(
HA1_text
),
HA1
);
bct
oolbo
x_hmacSha1
(
HA1
,
sizeof
(
HA1
),
bct
b
x_hmacSha1
(
HA1
,
sizeof
(
HA1
),
(
const
unsigned
char
*
)
input
,
length
,
20
,
(
unsigned
char
*
)
hmac
);
/* SHA1 output length is 20 bytes, get them all */
}
...
...
@@ -1347,7 +1347,7 @@ stunCalculateIntegrity_longterm(char* hmac, const char* input, int length,
void
stunCalculateIntegrity_shortterm
(
char
*
hmac
,
const
char
*
input
,
int
length
,
const
char
*
key
)
{
bct
oolbo
x_hmacSha1
((
const
unsigned
char
*
)
key
,
strlen
(
key
),
bct
b
x_hmacSha1
((
const
unsigned
char
*
)
key
,
strlen
(
key
),
(
const
unsigned
char
*
)
input
,
length
,
20
,
(
unsigned
char
*
)
hmac
);
/* SHA1 output length is 20 bytes, get them all */
}
...
...
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