Commit Graph

10 Commits

Author SHA1 Message Date
Joni Räsänen ae57fb6ce9 build: Also accept correct MSVC version
This is needed because MSVC doesn't always define cplusplus version.
2021-06-02 11:02:21 +03:00
Le Clech Philippe f1169cdc57
build: support for CentOS7
The 2.0.0 release of uvgRTP fails to build on CentOS7, because :
- the gcc-c++ compiler doesn't support the c++17 standard, which is
  required to compile the crypto.hh file
- the getrandom() function isn't available in the libc

This pull request adds CentOS7 build support.

The modified files are :

- CMakeLists.txt : the availability of the getrandom() function is checked.
  If it exists, the HAVE_GETRANDOM preprocessor definition is added

- src/random.cc : if HAVE_GETRANDOM isn't defined, a syscall equivalent to
  the getrandom() functions is called

- include/crypto.hh : the c++17 code is replaced by a code that compiles with
  the CentOS7 compiler (c++11)
2021-05-25 21:33:52 +02:00
Aaro Altonen 0e12e57a47 Rename uvg_rtp to uvgrtp
I have no idea why the name had an underscore but now it's gone.
The old namespace is kept as an alias for backwards-compatibility
but it may be removed in the future
2021-03-23 01:18:59 +02:00
Aaro Altonen f87b4e8e72 Use __has_include to detect the presence of Crypto++ automatically
Use __has_include to check if all needed headers are present in the
system and if so, build uvgRTP with crypto enabled.

Introduce new define, __RTP_NO_CRYPTO__ which disables SRTP/ZRTP
support even if Crypto++ is present in the system
2020-12-11 07:56:02 +02:00
Aaro Altonen 7b50e99aa0 Update project files
Add all new source and header files to Visual Studio, CMake and
QtCreator project files.

Rename rtcp/runner.cc and zrtp/receiver.cc files because they
caused linking problems with QtCreator
2020-09-16 10:56:57 +03:00
Aaro Altonen 29fb88d2ed Proctect CryptoPP calls with __RTP_CRYPTO__
Add __RTP_CRYPTO__ around CryptoPP code and remove from all other
places. This should provide a cleaner way of compiling and linking
to the library.

Not sure if I'm totally happy with this solution either but it's
a step to a better direction at least.
2020-09-04 11:37:06 +03:00
Aaro Altonen ffa7ed5770 Fix RTP/RTCP authentication tag length
The tag is truncated from 20 bytes to 4 bytes
2020-09-03 10:59:26 +03:00
Aaro Altonen b6595822cb Fix warnings 2020-08-18 09:38:16 +03:00
Aaro Altonen c2e7eb1bc1 Rename kvzRTP to uvgRTP 2020-04-28 11:18:07 +03:00
Aaro Altonen 8409706749 Create separate include directory
Create separate include directory which follows the kvzRTP include
style to make it easy for external applications to use kvzRTP
2020-04-22 04:58:41 +03:00