Changeset 2a0e2bd242f7dc7cda4ee096e58f42d13db9803f

Show
Ignore:
Timestamp:
05/17/07 20:27:25 (1 year ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1179426445 +0000
git-parent:

[1761128257afdf85afd24a126bf469dcdd490985]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1179426445 +0000
Message:

Fix hashing when using RFC4711

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libs/srtp/srtp.c

    r3f3025aa r2a0e2bd  
    652652 
    653653        const uint8_t *tag = rtp_digest (s, buf, len, rcc); 
    654         if (memcmp (buf + len + roc_len, tag, s->tag_len)) 
     654#if 0 
     655        printf ("Computed: 0x"); 
     656        for (unsigned i = 0; i < tag_len; i++) 
     657            printf ("%02x", tag[i]); 
     658        printf ("\nReceived: 0x"); 
     659        for (unsigned i = 0; i < tag_len; i++) 
     660            printf ("%02x", buf[len + roc_len + i]); 
     661        puts (""); 
     662#endif 
     663        if (memcmp (buf + len + roc_len, tag, tag_len)) 
    655664            return EACCES; 
    656665