diff options
author | Preston A. Elder <prez@neuromancy.net> | 2009-07-28 10:21:40 -0700 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-07-29 18:41:48 +0200 |
commit | 4f70cc13e2aa28657e40f91dfcf03dd9c82a41e9 (patch) | |
tree | 5fd13768b42e2b0c93cc16f5f97a0f0a26088fa3 /libssh/channels1.c | |
parent | b4111c5c187cf9212eba0ae459edb630dbddb656 (diff) | |
download | libssh-4f70cc13e2aa28657e40f91dfcf03dd9c82a41e9.tar.gz libssh-4f70cc13e2aa28657e40f91dfcf03dd9c82a41e9.tar.xz libssh-4f70cc13e2aa28657e40f91dfcf03dd9c82a41e9.zip |
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 <prez@neuromancy.net>
Signed-off-by: Andreas Schneider <mail@cynapses.org>
Diffstat (limited to 'libssh/channels1.c')
-rw-r--r-- | libssh/channels1.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libssh/channels1.c b/libssh/channels1.c index e502ba32..611c99b7 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; |