00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef VSL_SSH_H
00015 #define VSL_SSH_H
00016
00017 #include "vsl_api.h"
00018
00019
00020 int ssh_fork(vsl_sock* sock, const char* host, const char* user,
00021 const char* cmd, int argc, const char* const* argv);
00022 int ssh_send_secret (vsl_sock* sock, const unsigned char* secret);
00023 int ssh_read_port (vsl_sock* sock, int *port);
00024 int ssh_vfer_connect (vsl_sock* sock, const char* host, int port);
00025 int ssh_close (vsl_sock* sock, char* errmsg);
00026 int ssh_read_secret (unsigned char* secret);
00027 int ssh_send_port (int port);
00028 int ssh_vfer_listen (vsl_sock* sock, int* port);
00029 int ssh_vfer_accept (vsl_sock* sock);
00030 int ssh_daemonize (void);
00031
00032 #endif
00033
00034
00035
00036
00037
00038
00039