summaryrefslogtreecommitdiffstats
path: root/libssh/channels.c
Commit message (Collapse)AuthorAgeFilesLines
* Made channel_open_session partially asynchronousAris Adamantiadis2009-12-271-40/+65
|
* Made packet_wait issue warningsAris Adamantiadis2009-12-131-13/+2
|
* Standardize callbacks style and add documentationAris Adamantiadis2009-11-291-5/+5
|
* Squashed commit of the following:Aris Adamantiadis2009-11-271-149/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commit 43fad8dfd977637c31fade76ace2905f6528c3bc Author: Aris Adamantiadis <aris@0xbadc0de.be> Date: Fri Nov 27 18:39:06 2009 +0100 adaptation to the new ssh_poll_handle object name commit 1e5e6ac4605adf10d437d04f0fd4b7e66024853c Merge: 3fd92a0... 810adad... Author: Aris Adamantiadis <aris@0xbadc0de.be> Date: Fri Nov 27 18:33:06 2009 +0100 Merge branch 'master' into badcode/libssh_async commit 3fd92a08eb74b1447a9ff4ca4e1d137475c62cc6 Author: Aris Adamantiadis <aris@0xbadc0de.be> Date: Mon Nov 2 14:25:46 2009 +0100 Compiles again commit 8910d7b9692418c9ccea0234f6d49674d238dc16 Merge: e83f1b5... cce34a6... Author: Aris Adamantiadis <aris@0xbadc0de.be> Date: Mon Nov 2 12:47:34 2009 +0100 Merge branch 'master' into libssh_async Very big merge ! Conflicts: include/libssh/callbacks.h include/libssh/priv.h libssh/channels.c libssh/messages.c libssh/packet.c libssh/server.c libssh/session.c libssh/socket.c commit e83f1b593219e183082b015315f09bfe95a29cfc Author: Aris Adamantiadis <aris@0xbadc0de.be> Date: Mon Nov 2 12:07:01 2009 +0100 rename callback.h commit dffa7b730e8f39e2198de18ab69a8e57bef95e58 Merge: 5a8b748... de8808c... Author: Aris Adamantiadis <aris@0xbadc0de.be> Date: Tue Sep 15 10:50:07 2009 +0200 Merge branch 'master' of git://git.libssh.org/projects/libssh/libssh into libssh_async commit 5a8b7484f36599d28f2c0c14a23b76bfc7257638 Author: Aris Adamantiadis <aris@0xbadc0de.be> Date: Sun Sep 13 12:55:18 2009 +0200 More updates to callback system commit 18620c20d5e4e62107093f7fd330e553493253fa Author: Aris Adamantiadis <aris@0xbadc0de.be> Date: Sat Sep 12 22:26:52 2009 +0200 Same thing with channel_rcv_data commit fc4a56f6726e409a5866272923f1cbebfc821af3 Author: Aris Adamantiadis <aris@0xbadc0de.be> Date: Sat Sep 12 22:17:45 2009 +0200 added a few packet handlers for channels commit 4b6bb4fd00b10cf1321a764126f277ab204bffe3 Author: Aris Adamantiadis <aris@0xbadc0de.be> Date: Fri Sep 11 23:15:25 2009 +0300 sample packet handlers + bugfixes commit 2784d09d6dec0a8f868912d14f90d860233b3f82 Author: Aris Adamantiadis <aris@0xbadc0de.be> Date: Fri Sep 11 20:30:50 2009 +0300 Packet callbacks nearly finished Need tests and implementation of some packet callbacks commit cd3ea43f20c9ae2f54576ca98a0ea75c5d4299d3 Author: Aris Adamantiadis <aris@0xbadc0de.be> Date: Thu Sep 10 12:46:02 2009 +0300 First step of async packet handling The socket to packet handler is nearly done (needs testing) I still need to define the interface for callbacks. commit 487f4d2a900a5fe3b90ceda4460ab7d38d7ad722 Author: Aris Adamantiadis <aris@0xbadc0de.be> Date: Tue Sep 8 23:24:09 2009 +0300 Almost complete socket callback system Finished the callback function so it bufferizes data when callee does not use it. Flushes the buffer automaticaly after a ssh_socket_nonblocking_flush commit 23571f22fac9e40c855dfa99569bba181a39648b Author: Aris Adamantiadis <aris@0xbadc0de.be> Date: Tue Sep 8 22:22:32 2009 +0300 First draft of a callback system
* Fix another memleakAris Adamantiadis2009-11-181-1/+1
| | | | Use buffer_free instead of SAFE_FREE
* Fixed possible doulbe free problem found by Bernhard R. Link.Andreas Schneider2009-11-181-0/+4
|
* Fixed a memory leak in channel_new() if we have an error.Andreas Schneider2009-11-181-0/+1
|
* channel_read() won't block until count b. are readAris Adamantiadis2009-11-051-4/+6
|
* more priv.h splittingAris Adamantiadis2009-09-261-0/+1
|
* Fixed doxygen compilation warningsAris Adamantiadis2009-09-261-3/+3
|
* More include file splittingAris Adamantiadis2009-09-261-0/+1
|
* Moved lots of declaration out of priv.hAris Adamantiadis2009-09-231-1/+6
|
* Get rid of SSH_MESSAGEAris Adamantiadis2009-09-231-2/+2
|
* get rid of SSH_SESSIONAris Adamantiadis2009-09-231-25/+25
|
* Add warning in channel_open_forward documentationAris Adamantiadis2009-09-141-0/+3
| | | | Tell users it does not do magic (yet)
* Support for sending signals (RFC 4254, section 6.9).Dmitry V. Krivenok2009-09-101-0/+51
| | | | | | | | | | Added function int channel_request_send_signal(ssh_channel channel, const char *signal); which implements signals delivery (as described in RFC 4254). Only SSH-v2 is currently supported. Signed-off-by: Dmitry V. Krivenok <krivenok@orangesystem.ru> Signed-off-by: Andreas Schneider <mail@cynapses.org>
* Build channel_accept() on Windows too.Andreas Schneider2009-08-161-2/+0
|
* Fix return code from packet_wait in channel_requestVic Lee2009-08-161-1/+1
| | | | Signed-off-by: Andreas Schneider <mail@cynapses.org>
* Fix channel_accept_x11 on Windows.Andreas Schneider2009-08-161-3/+11
|
* 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