1. 13 Nov, 2017 1 commit
  2. 01 Nov, 2017 1 commit
  3. 16 Oct, 2017 1 commit
  4. 26 Jul, 2017 1 commit
  5. 14 May, 2017 1 commit
  6. 11 May, 2017 1 commit
  7. 06 Mar, 2017 1 commit
    • Geir Istad's avatar
      Introduction of CUTest Framework · 25cea284
      Geir Istad authored
      This framework is header only which is the main reason it was chosen.
      More information about it (not that much really!) can be found in [1].
      The license is MIT and the copyright notice is included in the header
      cutest.h so I think putting the file in our repo is OK wrt licensing.
      
      Location of new files and structure for unit tests are up for discussion.
      Note that I am including "srtp.c" in "test_srtp.c" in order to test it's
      internal (static) functions.
      Alternatively we could try to test from public API, however that is
      already done in for example /test/srtp_driver.c which functions more
      like an integration/module test.
      The purpose of the unit tests are (for now) testing of lower level
      functions that are not exposed
      in the public API.
      
      Alternative layout could be to put the unit tests in a /test/ folder in
      the root directory of the file that is being tested.
      
      Alternative frameworks considered:
      
      cmocka [2] does not require external tools and have support for mocking.
      It does however require more than a header to run. This seems like the
      best bet if we do want to introduce a unit test system that supports more
      advanced functionality.
      
      CTest [3] introduces a dependency on cmake - depending on both make and
      cmake seems kind of annoying.
      
      Google Test [4] requires a C++98 compatible compiler, requiring this for
      a C library seems excessive.
      
      [1] https://github.com/mity/cutest
      [2] https://cmocka.org/
      [3] https://cmake.org/cmake/help/v3.0/manual/ctest.1.html
      [4] https://github.com/google/googletest
      25cea284
  8. 08 Feb, 2017 1 commit
  9. 30 Jan, 2017 1 commit
  10. 27 Jan, 2017 1 commit
    • Idar Tollefsen's avatar
      makefile.in: Fixes shared library generation under Cygwin. · 4689a6a0
      Idar Tollefsen authored
      The shared library setup only checked for mingw, not cygwin.
      Which resulted in a empty shared library variables such as suffix and
      linker flags.
      
      This fixes it by checking both for cygwin and mingw on the same line,
      resulting in the same setup for both.
      4689a6a0
  11. 26 Jan, 2017 3 commits
    • Idar Tollefsen's avatar
      configure.in/Makefile.in: Removes -fPIC flag on Windows. · b015c45e
      Idar Tollefsen authored
      On Windows, adding -fPIC will print a warning for every compilation unit
      about all code being positioned independent. I.e. the flag is redundant.
      
      This removes the unconditional -fPIC flag from CPPFLAGS in Makefile.in and
      sets it in configure.in instead, except when compiling for *cygwin*
      or *mingw*.
      b015c45e
    • Idar Tollefsen's avatar
      configure.in/Makefile.in: Always generate and install pkg-config file. · 3edfcefe
      Idar Tollefsen authored
      The libsrtp2.pc file should always be generated and installed regardless
      of whether pkg-config is installed on the build machine.
      
      For instance, if a machine is dedicated to building packages, but doesn't
      have pkg-config installed, that doesn't mean users of the finished package
      doesn't want the pkg-config file.
      
      The libsrtp2.pc file, generated from the libsrtp2.pc.in template, is only
      dependent on the correct AC_SUBST() calls in configure.in. I.e. pkg-config
      does not have to be installed to generate it.
      
      This removes the entire HAVE_PKG_CONFIG concept and always generates and
      installs the libsrtp2.pc file.
      3edfcefe
    • Idar Tollefsen's avatar
      configure.in/Makefile.in: Whitespace cleanup. · 5fd11874
      Idar Tollefsen authored
      For configure.in, this additionally replaces
      the few tabs there where with spaces.
      5fd11874
  12. 15 Dec, 2016 1 commit
  13. 14 Sep, 2016 1 commit
  14. 24 Feb, 2016 1 commit
  15. 26 Nov, 2015 1 commit
  16. 06 Apr, 2015 1 commit
  17. 27 Mar, 2015 1 commit
  18. 26 Mar, 2015 2 commits
  19. 09 Dec, 2014 1 commit
  20. 04 Dec, 2014 1 commit
  21. 01 Dec, 2014 1 commit
  22. 26 Nov, 2014 1 commit
  23. 20 Nov, 2014 1 commit
  24. 19 Nov, 2014 1 commit
  25. 14 Nov, 2014 1 commit
  26. 06 Nov, 2014 1 commit
  27. 04 Nov, 2014 2 commits
  28. 31 Oct, 2014 1 commit
  29. 29 Oct, 2014 1 commit
    • Christian Oien's avatar
      Take advantage of base64 conversion in testapps · 9e4c091e
      Christian Oien authored
      There was a non-working function and a working one in the source of
      the contributed "rtp_decoder".  Have a working conversion function
      and use it from both tools for parsing the command-line crypto-key.
      9e4c091e
  30. 15 Oct, 2014 1 commit
  31. 14 Oct, 2014 1 commit
  32. 10 Oct, 2014 1 commit
  33. 08 Oct, 2014 1 commit
  34. 05 Oct, 2014 1 commit
  35. 01 Oct, 2014 1 commit
  36. 24 Jul, 2014 1 commit