1. 09 Feb, 2018 1 commit
    • Pascal Buhler's avatar
      Ensure returned trailer length is sufficient · 55626f32
      Pascal Buhler authored
      The srtp_get_protect_trailer_length needs to ensure
      that the returned value is large enough for any of
      the streams in the session.
      
      When a session is initialized with multiple polices
      it is possible to have different tag lengths for each
      policy. This function provides no way to specify which
      policy to use, so for now loop over all and find largest.
      
      The current function now has limited use so suggest to make
      two functions, one that takes ssrc or packet header so
      correct stream can be used, second function that takes a
      policy.
      
      # Conflicts:
      #	srtp/srtp.c
      55626f32
  2. 02 Nov, 2017 2 commits
  3. 01 Nov, 2017 1 commit
  4. 16 Oct, 2017 1 commit
  5. 29 Sep, 2017 2 commits
  6. 26 Sep, 2017 10 commits
  7. 25 Sep, 2017 1 commit
  8. 26 Jul, 2017 1 commit
  9. 04 Jul, 2017 1 commit
    • Pascal Bühler's avatar
      Return pkt_len from srtp_create_test_packet_xxx · c9ddaab9
      Pascal Bühler authored
      Previously the pkt_len was calculated outside the function,
      this was incorrect or missing in some cases.
      
      Also mki was not always taken into account when calculating tag
      length.
      
      This should address PR #313
      c9ddaab9
  10. 29 May, 2017 1 commit
    • Ulf Olsson's avatar
      srtp.c: Save the ROC and sequence number before usage · c42b5354
      Ulf Olsson authored
      The ROC and the sequence number to set must be calculated
      before the estimated index is used otherwise the packets
      following the first one can't be decoded/authenticated
      
      Change-Id: Ib2950b37771d39607fdead33d32245fa08fb0ab1
      c42b5354
  11. 14 May, 2017 2 commits
  12. 09 May, 2017 1 commit
  13. 08 May, 2017 1 commit
  14. 05 May, 2017 2 commits
    • Idar Tollefsen's avatar
      test/rtpw_test*.sh: Account for Windows executable and silence output. · a04ac9a8
      Idar Tollefsen authored
      This adds a ".exe" postfix to the rtpw executable used in the test
      scripts when running under Cygwin.
      
      It also pipes errors from the wait command to /dev/null to silence
      ts' output. This would otherwise print a terminated message to stderr.
      
      In the case of the "*_gcm.sh" script, the wait command was added, with
      the stderr redirection. Without it, it would print the same terminated
      message to stderr.
      a04ac9a8
    • Idar Tollefsen's avatar
      test/rtpw: Adds local words.txt and uses it. · 716f4b92
      Idar Tollefsen authored
      The rtpw test program tried to use either a "words.txt" file (on Windows)
      or "/usr/share/dict/words" on other platforms.
      
      The "words.txt" file is not in the repository and "/usr/share/dict/words"
      may not exist (may not have been installed).
      
      To make the test program independent of files that may or may exist on a
      given system, this adds a local "words.txt" file changes rtpw.c to always
      use that file.
      
      The collection of words in that file (250 for now) is generated from some
      random random word generator (pun intended).
      716f4b92
  15. 24 Apr, 2017 1 commit
  16. 19 Apr, 2017 1 commit
  17. 06 Apr, 2017 1 commit
    • Ulf Olsson's avatar
      Code refactoring · bb2adb0e
      Ulf Olsson authored
      After some discussions we decided to use the implementation
      in the 2_0_0_ekt_dev branch as a starting point
      bb2adb0e
  18. 30 Mar, 2017 1 commit
  19. 29 Mar, 2017 2 commits
    • Geir Istad's avatar
      test_srtp.c: Use #define instead of static const · eafd1458
      Geir Istad authored
      Prevents generating warnings with clang (warning: variable length array
      folded to constant array as an extension [-Wgnu-folding-constant])
      
      This is also a better alternative from a portability point of view.
      eafd1458
    • Pascal Bühler's avatar
      Add strict-prototypes warning if supported. · bb6ef8a3
      Pascal Bühler authored
      Ensure that all functions are correctly declared for c.
      There was one function in libsrtp that was not declared correctly
      and now it can be caught.
      
      This flags needed a custom program to check in configure, the built
      in function was invalid when using this flag.
      bb6ef8a3
  20. 27 Mar, 2017 2 commits
  21. 14 Mar, 2017 2 commits
  22. 13 Mar, 2017 3 commits