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
1211a897
Commit
1211a897
authored
Oct 13, 2011
by
Sylvain Berfini
🎩
Browse files
Fix compilation issue
parent
5429d344
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/mediastream.c
tests/mediastream.c
+2
-2
No files found.
tests/mediastream.c
View file @
1211a897
...
...
@@ -487,7 +487,7 @@ void setup_media_streams(MediastreamDatas* args) {
// -> input : 40 b64 encoded bytes
if
(
!
args
->
srtp_local_master_key
)
{
uint8_t
tmp
[
30
];
crypto_get_random
(
tmp
,
30
);
ortp_
crypto_get_random
(
tmp
,
30
);
args
->
srtp_local_master_key
=
(
char
*
)
malloc
(
41
);
b64_encode
((
const
char
*
)
tmp
,
30
,
args
->
srtp_local_master_key
,
40
);
args
->
srtp_local_master_key
[
40
]
=
'\0'
;
...
...
@@ -495,7 +495,7 @@ void setup_media_streams(MediastreamDatas* args) {
}
if
(
!
args
->
srtp_remote_master_key
)
{
uint8_t
tmp
[
30
];
crypto_get_random
(
tmp
,
30
);
ortp_
crypto_get_random
(
tmp
,
30
);
args
->
srtp_remote_master_key
=
(
char
*
)
malloc
(
41
);
b64_encode
((
const
char
*
)
tmp
,
30
,
args
->
srtp_remote_master_key
,
40
);
args
->
srtp_remote_master_key
[
40
]
=
'\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