Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
fa14c092
Commit
fa14c092
authored
Jun 15, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SRTP: test the parser
parent
8650df15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
libs/srtp/test-recv.c
libs/srtp/test-recv.c
+6
-7
No files found.
libs/srtp/test-recv.c
View file @
fa14c092
...
@@ -35,11 +35,10 @@
...
@@ -35,11 +35,10 @@
int
main
(
void
)
int
main
(
void
)
{
{
static
const
uint8_t
key
[
16
]
=
static
const
char
key
[]
=
"
\x12\x34\x56\x78\x9A\xBC\xDE\xF0
"
"123456789ABCDEF0"
"123456789ABCDEF0"
;
"
\x12\x34\x56\x78\x9A\xBC\xDE\xF0
"
;
static
const
char
salt
[]
=
static
const
uint8_t
salt
[
14
]
=
"1234567890"
"1234567890"
"12345678"
;
"
\x12\x34\x56\x78\x90
"
"
\x12\x34\x56\x78\x90
"
"
\x12\x34\x56\x78
"
;
int
val
;
int
val
;
srtp_session_t
*
sd
,
*
se
;
srtp_session_t
*
sd
,
*
se
;
...
@@ -65,9 +64,9 @@ int main (void)
...
@@ -65,9 +64,9 @@ int main (void)
srtp_setrcc_rate
(
se
,
1
);
srtp_setrcc_rate
(
se
,
1
);
srtp_setrcc_rate
(
sd
,
1
);
srtp_setrcc_rate
(
sd
,
1
);
val
=
srtp_setkey
(
se
,
key
,
16
,
salt
,
14
);
val
=
srtp_setkey
string
(
se
,
key
,
salt
);
assert
(
val
==
0
);
assert
(
val
==
0
);
val
=
srtp_setkey
(
sd
,
key
,
16
,
salt
,
14
);
val
=
srtp_setkey
string
(
sd
,
key
,
salt
);
assert
(
val
==
0
);
assert
(
val
==
0
);
uint8_t
buf
[
1500
],
buf2
[
1500
];
uint8_t
buf
[
1500
],
buf2
[
1500
];
...
...
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