if (curl_count == 0) {
curl_global_init(CURL_GLOBAL_ALL);
-#if defined(HAVE_OPENSSL)
- switch_ssl_init_ssl_locks();
-#endif
}
curl_count++;
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);
*
*/
#include <switch.h>
-#include <switch_ssl.h>
#include <switch_stun.h>
#include <libdingaling.h>
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;
}
switch_safe_free(globals.codec_string);
switch_safe_free(globals.codec_rates_string);
- switch_ssl_destroy_ssl_locks();
-
return SWITCH_STATUS_SUCCESS;
}
/*************************************************************************************************************************************************************/
#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);
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;
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;
}
#include <switch.h>
+#include <switch_ssl.h>
#include <switch_stun.h>
#include <switch_nat.h>
#include <switch_version.h>
switch_uuid_get(&uuid);
switch_uuid_format(runtime.uuid_str, &uuid);
+ switch_ssl_init_ssl_locks();
return SWITCH_STATUS_SUCCESS;
}
switch_loadable_module_shutdown();
+ switch_ssl_destroy_ssl_locks();
+
if (switch_test_flag((&runtime), SCF_USE_SQL)) {
switch_core_sqldb_stop();
}