summaryrefslogtreecommitdiff
path: root/legacy/mistserver/add-dtls-srtp-cmake-option.patch
blob: 8704b5a08568255a5951bcef9b9f9ff7ecbcb5e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()