summaryrefslogtreecommitdiffstats
path: root/libssh/channels.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Add forward listening featureVic Lee2009-08-161-12/+189
| | | | Signed-off-by: Andreas Schneider <mail@cynapses.org>
* Fix channel_get_exit_status bug reported by VicLeeAris Adamantiadis2009-08-161-1/+3
| | | | | It would return -1 if the channel received the exit status and the close message at same time.
* Fix compilation with MSVC and use declspec to export functions.Andreas Schneider2009-08-111-0/+2
| | | | Thanks to Patrick Spendrin <ps_ml@gmx.de> for all the MSVC fixes.
* Fixed channel_poll broken when delayed EOF recvdAris Adamantiadis2009-08-091-0/+3
| | | | Previous code returned SSH_EOF even if data was left in buffer
* Fix buffer overflow in generate_cookie()milo2009-08-071-4/+4
| | | | Signed-off-by: Andreas Schneider <mail@cynapses.org>
* Fix possible memory corruption (#14)milo2009-08-061-5/+5
| | | | Signed-off-by: Andreas Schneider <mail@cynapses.org>
* Fixed libssh compilation without server support.Andreas Schneider2009-07-311-2/+1
|
* Add x11 forwarding support for ssh clientVic Lee2009-07-311-0/+118
| | | | | Signed-off-by: Vic Lee <llyzs@163.com> Signed-off-by: Andreas Schneider <mail@cynapses.org>
* Fix build with MSVC.Andreas Schneider2009-07-301-2/+1
|
* Move channel_write_stderr to server.c.Andreas Schneider2009-07-291-18/+1
|
* Fix indent.Andreas Schneider2009-07-291-2/+2
|
* Add channel_write_stderr prototype to the right header file.Andreas Schneider2009-07-291-1/+2
| | | | Signed-off-by: Andreas Schneider <mail@cynapses.org>
* Fleshed out server interfacePreston A. Elder2009-07-291-15/+43
| | | | | | | | | | | | - 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>
* Fix SSH1 compilation.Andreas Schneider2009-07-271-6/+6
|
* Switch completly to stdint types.Andreas Schneider2009-07-251-21/+21
|
* Fix conflicting declarations of ssh_session and ssh_kbdint.Andreas Schneider2009-07-251-1/+1
|
* Missed something in channel_select for CHANNELAris Adamantiadis2009-07-241-1/+1
|
* Changes all CHANNEL * to ssh_channelAris Adamantiadis2009-07-241-57/+57
|
* Changed all occurences of BUFFER * to ssh_bufferAris Adamantiadis2009-07-241-12/+12
|
* Change all occurences of STRING * to ssh_stringAris Adamantiadis2009-07-241-11/+11
|
* Begin of asynchronous SSH message parsingAris Adamantiadis2009-06-171-0/+2
|
* Fixed potential format string attacksAris Adamantiadis2009-06-171-4/+4
| | | | Potential format string attacks on error reporting in channels.c
* Simply leave the function, this should prevent a segfault.Andreas Schneider2009-06-101-1/+2
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@777 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix a infinite loop on error.Andreas Schneider2009-06-101-1/+3
| | | | | | | Thanks to Milo for the pointer. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@776 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix build warnings.Andreas Schneider2009-06-091-0/+4
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@774 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix some compiler warnings on windows.Andreas Schneider2009-05-131-5/+6
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@764 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix the vim modeline and place it at the end of the file.Andreas Schneider2009-05-121-3/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@763 7dcaeef0-15fb-0310-b436-a5af3365683c
* Initialize the return value to fix a build warning.Andreas Schneider2009-05-111-1/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@757 7dcaeef0-15fb-0310-b436-a5af3365683c
* Wait for the exit status before returning.Andreas Schneider2009-05-041-1/+16
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@712 7dcaeef0-15fb-0310-b436-a5af3365683c
* Remove line which was accidently commited.Andreas Schneider2009-05-041-2/+0
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@710 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix a bug in channel_poll().Andreas Schneider2009-05-041-1/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@709 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve channel_select().Andreas Schneider2009-05-041-120/+132
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@708 7dcaeef0-15fb-0310-b436-a5af3365683c
* Reformat count_ptrs().Andreas Schneider2009-05-041-6/+7
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@707 7dcaeef0-15fb-0310-b436-a5af3365683c
* Remove unused variable.Andreas Schneider2009-05-041-1/+0
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@706 7dcaeef0-15fb-0310-b436-a5af3365683c
* Reformat channel_protocol_select().Andreas Schneider2009-05-041-42/+52
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@705 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve the docu of channel_get_exit_status().Andreas Schneider2009-05-041-5/+7
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@704 7dcaeef0-15fb-0310-b436-a5af3365683c
* Reformat channel_get_session() and improve docu.Andreas Schneider2009-05-041-5/+8
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@703 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve channel_poll() and add a SSH_EOF return value.Andreas Schneider2009-05-041-26/+34
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@702 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add a warning.Andreas Schneider2009-05-041-0/+3
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@701 7dcaeef0-15fb-0310-b436-a5af3365683c
* Implement channel_read() as a POSIX like function.Andreas Schneider2009-05-041-115/+234
| | | | | | | Create channel_read_buffer() to have the old version still available. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@700 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve the documentation in channel_request_exec().Andreas Schneider2009-05-041-7/+13
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@699 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve the docu of channel_request_env().Andreas Schneider2009-05-041-8/+13
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@698 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve the channel_request_subsystem() docu.Andreas Schneider2009-05-041-7/+10
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@697 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve channel_request_shell().Andreas Schneider2009-05-041-8/+11
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@696 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve channel_change_pty_size().Andreas Schneider2009-05-041-16/+15
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@695 7dcaeef0-15fb-0310-b436-a5af3365683c
* Reformat channel_request_pty().Andreas Schneider2009-05-041-7/+10
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@694 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve channel_request_pty_size().Andreas Schneider2009-05-041-27/+20
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@693 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve channel_request().Andreas Schneider2009-05-041-12/+7
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@692 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve channel_set_blocking().Andreas Schneider2009-05-041-7/+11
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@691 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve channel_is_* functions.Andreas Schneider2009-05-041-22/+35
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@690 7dcaeef0-15fb-0310-b436-a5af3365683c