zabbix-agent2/src/libs/zbxserver/expression.c
/******************************************************************************
 *                                                                            *
 * Function: substitute_simple_macros_unmasked                                *
 *                                                                            *
 * Purpose: substitute_simple_macros with unmasked secret macros              *
 *                                                                            *
 ******************************************************************************/
substitute_simple_macros_unmasked

Purpose: substitute_simple_macros with unmasked secret macros
substitute_simple_macros_unmasked Purpose : substitute_simple_macros with unmasked secret macros
int	substitute_simple_macros_unmasked(const zbx_uint64_t *actionid, const DB_EVENT *event, const DB_EVENT *r_event,
		const zbx_uint64_t *userid, const zbx_uint64_t *hostid, const DC_HOST *dc_host, const DC_ITEM *dc_item,
		const DB_ALERT *alert, const DB_ACKNOWLEDGE *ack, const zbx_service_alarm_t *service_alarm,
		const DB_SERVICE *service, const char *tz, char **data, int macro_type, char *error, int maxerrlen)
{
	unsigned char	old_macro_env;
	int		ret;
	old_macro_env = zbx_dc_set_macro_env(ZBX_MACRO_ENV_SECURE);
	ret = substitute_simple_macros_impl(actionid, event, r_event, userid, hostid, dc_host, dc_item, alert, ack,
			service_alarm, service, tz, data, macro_type, error, maxerrlen);
	zbx_dc_set_macro_env(old_macro_env);
	return ret;
}
int substitute_simple_macros_unmasked ( const zbx_uint64_t * actionid , const DB_EVENT * event , const DB_EVENT * r_event , const zbx_uint64_t * userid , const zbx_uint64_t * hostid , const DC_HOST * dc_host , const DC_ITEM * dc_item , const DB_ALERT * alert , const DB_ACKNOWLEDGE * ack , const zbx_service_alarm_t * service_alarm , const DB_SERVICE * service , const char * tz , char * * data , int macro_type , char * error , int maxerrlen ) { unsigned char old_macro_env ; int ret ; old_macro_env = zbx_dc_set_macro_env ( ZBX_MACRO_ENV_SECURE ) ; ret = substitute_simple_macros_impl ( actionid , event , r_event , userid , hostid , dc_host , dc_item , alert , ack , service_alarm , service , tz , data , macro_type , error , maxerrlen ) ; zbx_dc_set_macro_env ( old_macro_env ) ; return ret ; }
Function: substitute_simple_macros_unmasked                                
                                                                            
 Purpose: substitute_simple_macros with unmasked secret macros
Function : substitute_simple_macros_unmasked Purpose : substitute_simple_macros with unmasked secret macros