Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Mednis <Andris.Mednis@zabbix.com>2014-12-11 16:44:36 +0300
committerAndris Mednis <Andris.Mednis@zabbix.com>2014-12-11 16:44:36 +0300
commit4079b7228791d39f320032eef352281cf018c921 (patch)
tree05f6faf76d35d71dd89cf9a5b8aa9f4f4adb8ed6 /src/zabbix_agent/listener.c
parentc43ccaa500e70dfd94a928fec95a43babe24b2e0 (diff)
...G...PS. [ZBXNEXT-1263] added functions for TLS initialization and cleanup in threads and signal handlers
Diffstat (limited to 'src/zabbix_agent/listener.c')
-rw-r--r--src/zabbix_agent/listener.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zabbix_agent/listener.c b/src/zabbix_agent/listener.c
index 0dfffe8879d..f2971c32488 100644
--- a/src/zabbix_agent/listener.c
+++ b/src/zabbix_agent/listener.c
@@ -37,6 +37,8 @@ extern int server_num, process_num;
# include "daemon.h"
#endif
+#include "../libs/zbxcrypto/tls.h"
+
static void process_listener(zbx_sock_t *s)
{
AGENT_RESULT result;
@@ -109,6 +111,9 @@ ZBX_THREAD_ENTRY(listener_thread, args)
zbx_free(args);
+#if defined(HAVE_POLARSSL) || defined(HAVE_GNUTLS) || defined(HAVE_OPENSSL)
+ zbx_tls_init_child();
+#endif
while (ZBX_IS_RUNNING())
{
zbx_setproctitle("listener #%d [waiting for connection]", process_num);