00001
00002
00003
00004
00005
00006
00007
00008 #ifdef ENABLE_FIFO
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef VSL_FIFO_H
00018 #define VSL_FIFO_H
00019
00020 #include "vsl.h"
00021 #include "vsl_api.h"
00022
00023
00024 #define MAX_PATH 512
00025
00026
00027 #define MSG_QUEUE_SIZE 64
00028
00029
00030 #define MSG_TIMEOUT 60
00031
00032
00033
00034
00035
00036
00037
00038 int send_ssh_req (vsl_sock* socket);
00039 int recv_ssh_res (vsl_sock* socket, const char* path);
00040 int fork_ssh (vsl_sock* socket, const char* user,
00041 const char* host, const char* fifo);
00042 int send_key_ssh (vsl_sock* socket, const char *key);
00043 int close_ssh (vsl_sock* socket);
00044 int ssh_send_res (vsl_sock* socket, const char* phrase);
00045 int ssh_recv_cha (vsl_sock* socket, const char* phrase);
00046
00047
00048
00049 int recv_ssh_req (vsl_sock* socket);
00050 int send_ssh_res (vsl_sock* socket, const char* path);
00051 int open_fifo (vsl_sock* socket, const char *path);
00052 int recv_key_ssh (vsl_sock* socket);
00053 int close_fifo (vsl_sock* socket);
00054 int ssh_send_cha (vsl_sock* socket, const char* phrase);
00055 int ssh_recv_res (vsl_sock* socket, const char* phrase);
00056
00057
00058
00059 int ssh_init (void);
00060 int ssh_destruct (void);
00061
00062
00063
00064
00065
00066
00067
00068 int vsl_auth_ssh_c (vsl_sock* socket, const char* user,
00069 const char* host, const char *path);
00070 int vsl_auth_ssh_s (vsl_sock* socket, const char* fifo);
00071
00072
00073 #endif
00074
00075 #endif