]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3312 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 25 May 2011 19:45:55 +0000 (14:45 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 25 May 2011 19:45:55 +0000 (14:45 -0500)
src/include/switch_curl.h
src/mod/endpoints/mod_dingaling/mod_dingaling.c
src/mod/endpoints/mod_sofia/mod_sofia.c
src/switch_core.c

index 3820ba86939555ee1f68436f91c9634dd6b50ee2..4d44595e0df14294079beeb56ba920b97d48c18b 100644 (file)
@@ -40,9 +40,6 @@ static inline void switch_curl_init(void)
 
        if (curl_count == 0) {
                curl_global_init(CURL_GLOBAL_ALL);
-#if defined(HAVE_OPENSSL)
-               switch_ssl_init_ssl_locks();
-#endif
        }
 
        curl_count++;
@@ -56,10 +53,6 @@ static inline void switch_curl_destroy()
        curl_count--;
 
        if (curl_count == 0) {
-
-#if defined(HAVE_OPENSSL)
-               switch_ssl_destroy_ssl_locks();
-#endif
                curl_global_cleanup();
        }
        switch_core_curl_count(&curl_count);
index 2db3660ccdbf18e649c5a1a9e0163670217c2555..59d76d110bdab5852650915657084294dc08a32e 100644 (file)
@@ -30,7 +30,6 @@
  *
  */
 #include <switch.h>
-#include <switch_ssl.h>
 #include <switch_stun.h>
 #include <libdingaling.h>
 
@@ -1912,9 +1911,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_dingaling_load)
        SWITCH_ADD_API(api_interface, "dingaling", "DingaLing Menu", dingaling, DINGALING_SYNTAX);
        SWITCH_ADD_CHAT(chat_interface, MDL_CHAT_PROTO, chat_send);
 
-       switch_ssl_init_ssl_locks();
-
-
        /* indicate that the module should continue to be loaded */
        return SWITCH_STATUS_SUCCESS;
 }
@@ -2012,8 +2008,6 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_dingaling_shutdown)
        switch_safe_free(globals.codec_string);
        switch_safe_free(globals.codec_rates_string);
 
-       switch_ssl_destroy_ssl_locks();
-
        return SWITCH_STATUS_SUCCESS;
 }
 
index 2c1da9441a65bd0e54ac96230fd8acf4b391e4ef..99c00424dc056ee464f229d63a459fd5c77e9ce7 100644 (file)
@@ -37,7 +37,6 @@
 /*************************************************************************************************************************************************************/
 #include "mod_sofia.h"
 #include "sofia-sip/sip_extra.h"
-#include <switch_ssl.h>
 
 SWITCH_MODULE_LOAD_FUNCTION(mod_sofia_load);
 SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_sofia_shutdown);
@@ -4953,8 +4952,6 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_sofia_load)
        switch_management_interface_t *management_interface;
        struct in_addr in;
 
-       switch_ssl_init_ssl_locks();
-
        memset(&mod_sofia_globals, 0, sizeof(mod_sofia_globals));
        mod_sofia_globals.destroy_private.destroy_nh = 1;
        mod_sofia_globals.destroy_private.is_static = 1;
@@ -5158,8 +5155,6 @@ SWITCH_MODULE_SHUTDOWN_FUNCTION(mod_sofia_shutdown)
        switch_core_hash_destroy(&mod_sofia_globals.gateway_hash);
        switch_mutex_unlock(mod_sofia_globals.hash_mutex);
 
-       switch_ssl_destroy_ssl_locks();
-
        return SWITCH_STATUS_SUCCESS;
 }
 
index b0c983cab515375975c57ba0dd9ad790641d850d..a770d8cf93dbe60c2066a8bf517bbf12f66949a4 100644 (file)
@@ -36,6 +36,7 @@
 
 
 #include <switch.h>
+#include <switch_ssl.h>
 #include <switch_stun.h>
 #include <switch_nat.h>
 #include <switch_version.h>
@@ -1473,6 +1474,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc
 
        switch_uuid_get(&uuid);
        switch_uuid_format(runtime.uuid_str, &uuid);
+       switch_ssl_init_ssl_locks();
 
        return SWITCH_STATUS_SUCCESS;
 }
@@ -2145,6 +2147,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_destroy(void)
 
        switch_loadable_module_shutdown();
 
+       switch_ssl_destroy_ssl_locks();
+
        if (switch_test_flag((&runtime), SCF_USE_SQL)) {
                switch_core_sqldb_stop();
        }