Module: kamailio
Branch: master
Commit: c992bc7621ee1d18ceddf8866a8b38a852d1a1a9
URL: 
https://github.com/kamailio/kamailio/commit/c992bc7621ee1d18ceddf8866a8b38a852d1a1a9

Author: Xenofon Karamanos <[email protected]>
Committer: Xenofon Karamanos <[email protected]>
Date: 2026-01-21T15:47:53Z

cmake: Update mutex option for TLS support and clean up unused code

---

Modified: cmake/defs.cmake

---

Diff:  
https://github.com/kamailio/kamailio/commit/c992bc7621ee1d18ceddf8866a8b38a852d1a1a9.diff
Patch: 
https://github.com/kamailio/kamailio/commit/c992bc7621ee1d18ceddf8866a8b38a852d1a1a9.patch

---

diff --git a/cmake/defs.cmake b/cmake/defs.cmake
index 6124200c9e9..99f036554c0 100644
--- a/cmake/defs.cmake
+++ b/cmake/defs.cmake
@@ -125,16 +125,6 @@ option(USE_DNS_FAILOVER "Use DNS failover" ON)
 option(USE_DST_BLOCKLIST "Use destination blacklist" ON)
 option(HAVE_RESOLV_RES "Have resolv_res" ON)
 
-option(KSR_PTHREAD_MUTEX_SHARED "Use shared mutex for TLS" ON)
-
-# if(${MEMPKG})
-#   target_compile_definitions(common INTERFACE PKG_MALLOC)
-# else()
-#   if(${MEMDBGSYS})
-#     target_compile_definitions(common INTERFACE DDBG_SYS_MEMORY)
-#   endif()
-# endif()
-
 # -----------------------
 # TLS support
 # -----------------------
@@ -154,10 +144,8 @@ else()
   set(TLS_HOOKS ON)
 endif()
 
-set(LIBSSL_SET_MUTEX_SHARED
-    ON
-    CACHE BOOL "enable workaround for libssl 1.1+ to set shared mutex 
attribute"
-)
+option(LIBSSL_SET_MUTEX_SHARED "enable workaround for libssl 1.1+ to set 
shared mutex attribute" ON)
+
 if(NOT ${LIBSSL_SET_MUTEX_SHARED})
   message(STATUS "Checking if can enable workaround for libssl 1.1+ to set 
shared mutex attribute")
 
@@ -287,7 +275,7 @@ if(NO_DEV_POLL)
   target_compile_definitions(common INTERFACE NO_DEV_POLL)
 endif()
 
-if(KSR_PTHREAD_MUTEX_SHARED)
+if(LIBSSL_SET_MUTEX_SHARED)
   target_compile_definitions(common INTERFACE KSR_PTHREAD_MUTEX_SHARED)
 endif()
 

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to