[vlc-commits] Fix SRTCP MAC

Rémi Denis-Courmont git at videolan.org
Tue Jul 19 18:11:53 CEST 2011


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul 19 17:43:34 2011 +0300| [668dd4f8a3d3d926e9afc9641d58a2d468ad47e8] | committer: Rémi Denis-Courmont

Fix SRTCP MAC

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit d7e4901bea30333f151de763ae72eaff9984e1e9)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=668dd4f8a3d3d926e9afc9641d58a2d468ad47e8
---

 libs/srtp/srtp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libs/srtp/srtp.c b/libs/srtp/srtp.c
index f2f2c95..26f1329 100644
--- a/libs/srtp/srtp.c
+++ b/libs/srtp/srtp.c
@@ -833,7 +833,7 @@ srtcp_send (srtp_session_t *s, uint8_t *buf, size_t *lenp, size_t bufsize)
 
     len += 4; /* Digests SRTCP index too */
 
-    const uint8_t *tag = rtcp_digest (s->rtp.mac, buf, len);
+    const uint8_t *tag = rtcp_digest (s->rtcp.mac, buf, len);
     memcpy (buf + len, tag, s->tag_len);
     *lenp = len + s->tag_len;
     return 0;
@@ -861,7 +861,7 @@ srtcp_recv (srtp_session_t *s, uint8_t *buf, size_t *lenp)
         return EINVAL;
     len -= s->tag_len;
 
-    const uint8_t *tag = rtcp_digest (s->rtp.mac, buf, len);
+    const uint8_t *tag = rtcp_digest (s->rtcp.mac, buf, len);
     if (memcmp (buf + len, tag, s->tag_len))
          return EACCES;
 



More information about the vlc-commits mailing list