[vlc-devel] commit: SRTP: test the parser ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Jun 15 21:05:00 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Jun 15 22:03:57 2008 +0300| [fa14c0922728246fe6353042ce4ae052fa4f75d8]
SRTP: test the parser
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fa14c0922728246fe6353042ce4ae052fa4f75d8
---
libs/srtp/test-recv.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/libs/srtp/test-recv.c b/libs/srtp/test-recv.c
index 75785ec..a929fe7 100644
--- a/libs/srtp/test-recv.c
+++ b/libs/srtp/test-recv.c
@@ -35,11 +35,10 @@
int main (void)
{
- static const uint8_t key[16] =
- "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
- "\x12\x34\x56\x78\x9A\xBC\xDE\xF0";
- static const uint8_t salt[14] =
- "\x12\x34\x56\x78\x90" "\x12\x34\x56\x78\x90" "\x12\x34\x56\x78";
+ static const char key[] =
+ "123456789ABCDEF0" "123456789ABCDEF0";
+ static const char salt[] =
+ "1234567890" "1234567890" "12345678";
int val;
srtp_session_t *sd, *se;
@@ -65,9 +64,9 @@ int main (void)
srtp_setrcc_rate (se, 1);
srtp_setrcc_rate (sd, 1);
- val = srtp_setkey (se, key, 16, salt, 14);
+ val = srtp_setkeystring (se, key, salt);
assert (val == 0);
- val = srtp_setkey (sd, key, 16, salt, 14);
+ val = srtp_setkeystring (sd, key, salt);
assert (val == 0);
uint8_t buf[1500], buf2[1500];
More information about the vlc-devel
mailing list