1 /*
2 ** Zabbix
3 ** Copyright (C) 2001-2021 Zabbix SIA
4 **
5 ** This program is free software; you can redistribute it and/or modify
6 ** it under the terms of the GNU General Public License as published by
7 ** the Free Software Foundation; either version 2 of the License, or
8 ** (at your option) any later version.
9 **
10 ** This program is distributed in the hope that it will be useful,
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ** GNU General Public License for more details.
14 **
15 ** You should have received a copy of the GNU General Public License
16 ** along with this program; if not, write to the Free Software
17 ** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18 **/
19 
20 #ifndef ZABBIX_ZBXCONF_H
21 #define ZABBIX_ZBXCONF_H
22 
23 #include "cfg.h"
24 
25 extern char	*CONFIG_HOSTS_ALLOWED;
26 extern char	*CONFIG_HOSTNAMES;
27 extern char	*CONFIG_HOSTNAME_ITEM;
28 extern char	*CONFIG_HOST_METADATA;
29 extern char	*CONFIG_HOST_METADATA_ITEM;
30 extern int	CONFIG_ENABLE_REMOTE_COMMANDS;
31 extern int	CONFIG_UNSAFE_USER_PARAMETERS;
32 extern int	CONFIG_LISTEN_PORT;
33 extern int	CONFIG_REFRESH_ACTIVE_CHECKS;
34 extern char	*CONFIG_LISTEN_IP;
35 extern int	CONFIG_LOG_LEVEL;
36 extern int	CONFIG_MAX_LINES_PER_SECOND;
37 extern char	**CONFIG_ALIASES;
38 extern char	**CONFIG_USER_PARAMETERS;
39 extern char	*CONFIG_LOAD_MODULE_PATH;
40 extern char	**CONFIG_LOAD_MODULE;
41 #ifdef _WINDOWS
42 extern char	**CONFIG_PERF_COUNTERS;
43 extern char	**CONFIG_PERF_COUNTERS_EN;
44 #endif
45 extern char	*CONFIG_USER;
46 
47 extern unsigned int	configured_tls_connect_mode;
48 extern unsigned int	configured_tls_accept_modes;
49 
50 extern char	*CONFIG_TLS_CONNECT;
51 extern char	*CONFIG_TLS_ACCEPT;
52 extern char	*CONFIG_TLS_CA_FILE;
53 extern char	*CONFIG_TLS_CRL_FILE;
54 extern char	*CONFIG_TLS_SERVER_CERT_ISSUER;
55 extern char	*CONFIG_TLS_SERVER_CERT_SUBJECT;
56 extern char	*CONFIG_TLS_CERT_FILE;
57 extern char	*CONFIG_TLS_KEY_FILE;
58 extern char	*CONFIG_TLS_PSK_IDENTITY;
59 extern char	*CONFIG_TLS_PSK_FILE;
60 
61 void	load_aliases(char **lines);
62 void	load_user_parameters(char **lines);
63 int	load_key_access_rule(const char *value, const struct cfg_line *cfg);
64 #ifdef _WINDOWS
65 void	load_perf_counters(const char **def_lines, const char **eng_lines);
66 #endif
67 
68 #ifdef _AIX
69 void	tl_version(void);
70 #endif
71 
72 #endif /* ZABBIX_ZBXCONF_H */
73