From 4f70cc13e2aa28657e40f91dfcf03dd9c82a41e9 Mon Sep 17 00:00:00 2001 From: "Preston A. Elder" Date: Tue, 28 Jul 2009 10:21:40 -0700 Subject: Fleshed out server interface - Enables channel_request_open types of DIRECT_TCPIP, FORWARDED_TCPIP and X11 (ie. implemented the handling of those channel_request_open types). - Adds functions to retrieve the extra information relating to channel_request_open messages and channel_request messages. - Adds a channel_write_stderr method (obviously for writing to the STDERR channel from server side) - well, technically just converted the exiting channel_write to take an extra argument and created two wrapper functions. - Actually does the invoking of message_handle() from channel_recv_request. - Implemented the handling of the window-change and env channel_requests. - Implemented a few functions in server.h that were declared but not defined (eg. ssh_message_channel_request_channel). Signed-off-by: Preston A. Elder Signed-off-by: Andreas Schneider --- libssh/channels1.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libssh/channels1.c') diff --git a/libssh/channels1.c b/libssh/channels1.c index e502ba3..611c99b 100644 --- a/libssh/channels1.c +++ b/libssh/channels1.c @@ -261,6 +261,11 @@ int channel_handle1(SSH_SESSION *session, int type) { return -1; } break; + case SSH_SMSG_STDERR_DATA: + if (channel_rcv_data1(session,1) < 0) { + return -1; + } + break; case SSH_SMSG_EXITSTATUS: if (channel_rcv_close1(session) < 0) { return -1; -- cgit