summaryrefslogtreecommitdiff
path: root/legacy/mistserver/add-dtls-srtp-cmake-option.patch
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/mistserver/add-dtls-srtp-cmake-option.patch')
-rw-r--r--legacy/mistserver/add-dtls-srtp-cmake-option.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/legacy/mistserver/add-dtls-srtp-cmake-option.patch b/legacy/mistserver/add-dtls-srtp-cmake-option.patch
new file mode 100644
index 000000000..8704b5a08
--- /dev/null
+++ b/legacy/mistserver/add-dtls-srtp-cmake-option.patch
@@ -0,0 +1,15 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 6af16808..a12aa8cf 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -91,6 +91,10 @@ else()
+ message("SSL/TLS support is turned OFF")
+ endif()
+
++if (USE_MBEDTLS_SSL_DTLS_SRTP)
++ add_definitions(-DHAVE_UPSTREAM_MBEDTLS_SRTP=1)
++endif()
++
+ if (DEFINED DATASIZE )
+ add_definitions(-DSHM_DATASIZE=${DATASIZE})
+ endif()