]> git.sesse.net Git - vlc/blobdiff - libs/srtp/recv.c
API cleanup
[vlc] / libs / srtp / recv.c
index e0546a912d2f11d23825911e2bf86cce4bd5e99f..2e2a27951ff0c42515052879d1dca85481b14005 100644 (file)
@@ -51,7 +51,8 @@ int main (void)
     static const uint8_t salt[14] =
         "\x12\x34\x56\x78\x90" "\x12\x34\x56\x78\x90" "\x12\x34\x56\x78";
 
-    srtp_session_t *s = srtp_create ("AES_CM_128_HMAC_SHA1_80", 0, 0);
+    srtp_session_t *s = srtp_create (SRTP_ENCR_AES_CM, SRTP_AUTH_HMAC_SHA1, 10,
+                                     SRTP_PRF_AES_CM, 0);
     if (s == NULL)
         return 1;
     if (srtp_setkey (s, key, 16, salt, 14))