#include "test_get_value_ssh.h"
# include "../../../src/libs/zbxpoller/ssh_run.c"
# include "../../../src/libs/zbxpoller/ssh2_run.c"
int __wrap_ssh_run(zbx_dc_item_t *item, AGENT_RESULT *result, const char *encoding, const char *options,
int timeout, const char *config_source_ip);
#if defined(HAVE_SSH2) || defined(HAVE_SSH)
int zbx_get_value_ssh_test_run(zbx_dc_item_t *item, char **error)
const char *config_ssh_key_location = NULL;
zbx_init_agent_result(&result);
ret = zbx_ssh_get_value(item, get_zbx_config_source_ip(), config_ssh_key_location, &result);
if (NULL != result.msg && '\0' != *(result.msg))
*error = zbx_malloc(NULL, sizeof(char) * strlen(result.msg));
zbx_strlcpy(*error, result.msg, strlen(result.msg) * sizeof(char));
zbx_free_agent_result(&result);
int __wrap_ssh_run(zbx_dc_item_t *item, AGENT_RESULT *result, const char *encoding, const char *options,
int timeout, const char *config_source_ip)
int ret = SYSINFO_RET_OK;
zabbix_log(LOG_LEVEL_DEBUG, "In %s()", __func__);
ZBX_UNUSED(config_source_ip);