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 #include "common.h"
21 #include "../zabbix_server/alerter/alerter_protocol.h"
22 
zbx_alerter_serialize_alert_send(unsigned char ** data,zbx_uint64_t mediatypeid,unsigned char type,const char * smtp_server,const char * smtp_helo,const char * smtp_email,const char * exec_path,const char * gsm_modem,const char * username,const char * passwd,unsigned short smtp_port,unsigned char smtp_security,unsigned char smtp_verify_peer,unsigned char smtp_verify_host,unsigned char smtp_authentication,const char * exec_params,int maxsessions,int maxattempts,const char * attempt_interval,unsigned char content_type,const char * script,const char * timeout,const char * sendto,const char * subject,const char * message,const char * params)23 zbx_uint32_t	zbx_alerter_serialize_alert_send(unsigned char **data, zbx_uint64_t mediatypeid, unsigned char type,
24 		const char *smtp_server, const char *smtp_helo, const char *smtp_email, const char *exec_path,
25 		const char *gsm_modem, const char *username, const char *passwd, unsigned short smtp_port,
26 		unsigned char smtp_security, unsigned char smtp_verify_peer, unsigned char smtp_verify_host,
27 		unsigned char smtp_authentication, const char *exec_params, int maxsessions, int maxattempts,
28 		const char *attempt_interval, unsigned char content_type, const char *script, const char *timeout,
29 		const char *sendto, const char *subject, const char *message, const char *params)
30 {
31 	ZBX_UNUSED(data);
32 	ZBX_UNUSED(mediatypeid);
33 	ZBX_UNUSED(type);
34 	ZBX_UNUSED(smtp_server);
35 	ZBX_UNUSED(smtp_helo);
36 	ZBX_UNUSED(smtp_email);
37 	ZBX_UNUSED(exec_path);
38 	ZBX_UNUSED(gsm_modem);
39 	ZBX_UNUSED(username);
40 	ZBX_UNUSED(passwd);
41 	ZBX_UNUSED(smtp_port);
42 	ZBX_UNUSED(smtp_security);
43 	ZBX_UNUSED(smtp_verify_peer);
44 	ZBX_UNUSED(smtp_verify_host);
45 	ZBX_UNUSED(smtp_authentication);
46 	ZBX_UNUSED(exec_params);
47 	ZBX_UNUSED(maxsessions);
48 	ZBX_UNUSED(maxattempts);
49 	ZBX_UNUSED(attempt_interval);
50 	ZBX_UNUSED(content_type);
51 	ZBX_UNUSED(script);
52 	ZBX_UNUSED(timeout);
53 	ZBX_UNUSED(sendto);
54 	ZBX_UNUSED(subject);
55 	ZBX_UNUSED(message);
56 	ZBX_UNUSED(params);
57 
58 	THIS_SHOULD_NEVER_HAPPEN;
59 
60 	return 0;
61 }
62 
zbx_alerter_deserialize_result(const unsigned char * data,char ** value,int * errcode,char ** error,char ** debug)63 void	zbx_alerter_deserialize_result(const unsigned char *data, char **value, int *errcode, char **error,
64 		char **debug)
65 {
66 	ZBX_UNUSED(value);
67 	ZBX_UNUSED(data);
68 	ZBX_UNUSED(errcode);
69 	ZBX_UNUSED(error);
70 	ZBX_UNUSED(debug);
71 
72 	THIS_SHOULD_NEVER_HAPPEN;
73 }
74