summaryrefslogtreecommitdiffstats
path: root/src/channels.c
Commit message (Collapse)AuthorAgeFilesLines
* doc: Improve docs for ssh_channel_get_exit_status().Andreas Schneider2014-04-221-0/+5
| | | | | BUG: https://red.libssh.org/issues/154 (cherry picked from commit adf23533e02d997118d1732f91abf9f116a47cec)
* channels: Fix exit-signal request.Andreas Schneider2014-04-221-3/+3
| | | | | BUG: https://red.libssh.org/issues/153 (cherry picked from commit 927cd90dc171b7e7a400ab8c1c9474f627e89167)
* channel: check for closed state in waitwindow loopsJon Simons2014-03-271-2/+4
| | | | | | Signed-off-by: Jon Simons <jon@jonsimons.org> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit dee8e5688b4395ee379fd7f36f4a488d57fd0d6c)
* doc: correct ssh_channel_read_timeout unitsJon Simons2014-02-021-6/+6
| | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* Make function ssh_channel_accept() nonblocking if timeout is 0.Oleksandr Shneyder2014-02-021-1/+5
| | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* doc: Fix channel documentation.Andreas Schneider2014-01-171-31/+49
|
* channel: Add ssh_channel_accept_forward().Oleksandr Shneyder2014-01-161-3/+23
| | | | | | | | This works same way as ssh_forward_accept() but can return a destination port of the channel (useful if SSH connection forwarding several TCP/IP ports). Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* src: Update my mail address.Andreas Schneider2014-01-071-1/+1
|
* update copyright informationAris Adamantiadis2014-01-071-2/+2
|
* channel: fix setting of channel->flagsJon Simons2013-12-111-3/+3
| | | | | | | | Fix the setting of 'channel->flags' to use '|='. Before this change, one bug symptom can be that channels are never fully free'd via ssh_channel_free, resulting in memory leaks. Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* channels: Add a ssh_channel_read_timeout function.Andreas Schneider2013-12-041-3/+43
|
* channel: fix infinite loop in channel_write_commonJon Simons2013-11-221-1/+3
| | | | | | BUG: https://red.libssh.org/issues/130 Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* flush channel after EOF and CLOSERod Vagg2013-11-181-0/+8
|
* doc: Fix doxygen warnings.Andreas Schneider2013-11-041-5/+6
|
* channel: Reinit the buffer and reset the state on error.Andreas Schneider2013-10-201-23/+46
| | | | BUG: https://red.libssh.org/issues/126
* channel: Fix ssh_global_request_termination().Andreas Schneider2013-10-201-1/+1
| | | | BUG: https://red.libssh.org/issues/126
* channel: Fix packets termination timeout in global_request().Andreas Schneider2013-10-011-1/+1
| | | | BUG: https://red.libssh.org/issues/126
* channels: Correctly handle timeouts in channel functions.Andreas Schneider2013-10-011-5/+14
|
* channel: Use the correct timeout option in channel_open().Andreas Schneider2013-10-011-1/+5
| | | | BUG: https://red.libssh.org/issues/124
* channels: Correctly decrement timeout value in ssh_channel_accept().Andreas Schneider2013-10-011-2/+5
| | | | BUG: https://red.libssh.org/issues/116
* channel: Document SSH_AGAIN in ssh_channel_read().Andreas Schneider2013-10-011-2/+2
| | | | BUG: https://red.libssh.org/issues/115
* channels: allow channel_open() to return SSH_AGAINNicolas Viennot2013-07-251-1/+1
| | | | | Signed-off-by: Nicolas Viennot <nicolas@viennot.biz> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* channels: Fix a SSH_LOG call.Andreas Schneider2013-07-151-1/+1
|
* src: Remove enter_function() and leave_function().Andreas Schneider2013-07-141-134/+48
|
* src: Migrate to SSH_LOG.Andreas Schneider2013-07-141-56/+56
|
* server: Fix compilation without WITH_SERVERAris Adamantiadis2013-07-141-1/+5
|
* agent: the valid request is auth-agent@openssh.comAris Adamantiadis2013-07-131-1/+1
| | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* server: implement server-side of agent forwardingAris Adamantiadis2013-07-131-0/+34
| | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* channels: implement callback for agent forwarding requestAris Adamantiadis2013-07-131-0/+10
| | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* session: Introduce SSH_TIMEOUT_DEFAULTAris Adamantiadis2013-07-131-6/+6
| | | | | | | | | The default timeout of 30seconds is very nice when connecting to a new SSH session, however it completely breaks the synchronous blocking API. Use SSH_TIMEOUT_DEFAULT when in blocking mode so channel reads&write are blocking as expected Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* Report according status when errors are detectedAris Adamantiadis2012-12-271-3/+18
|
* Fix channel_write to wait during key reexchangesAris Adamantiadis2012-12-231-1/+20
|
* BUG 94: Fix big endian issue.Andreas Schneider2012-12-031-3/+5
|
* CVE-2012-4559: Ensure that we don't free req twice.Andreas Schneider2012-11-141-1/+1
|
* channels: Fix integer overflow in generate_cookie().Xi Wang2012-10-221-1/+1
| | | | | | Since the type of rnd[i] is signed char, (rnd[i] >> 4), which is considered as arithmetic shift by gcc, could be negative, leading to out-of-bounds read.
* channels: Don't leak memory in channel_rcv_request callback.Andreas Schneider2012-10-121-0/+1
| | | | Found by Coverity.
* channels: Check return values of buffer functions.Andreas Schneider2012-10-091-2/+9
| | | | Found by Coverity.
* channel: Fix a possible null pointer dereference.Andreas Schneider2012-10-051-1/+3
|
* channels: Fix a possible null pointer dereference.Andreas Schneider2012-10-051-1/+3
|
* channels: Fix a memory leak in ssh_channel_select().Andreas Schneider2012-10-051-3/+7
|
* channels: Fix return value of ssh_channel_request_pty_size with SSHv1.Andreas Schneider2012-09-071-1/+1
| | | | Thanks to Dmitriy Kuznetsov <dk@yandex.ru>.
* build: Fix missing struct in_addr warning.Andreas Schneider2012-07-171-0/+1
|
* Fix bugs found by clangAris Adamantiadis2011-09-231-1/+1
|
* channels: fix embarrasing channel_read_nonblocking bugAris Adamantiadis2011-09-221-7/+5
|
* error: Use macros for error functions.Andreas Schneider2011-09-171-14/+14
|
* channels: don't send SSH2 packets on SSH1 !Aris Adamantiadis2011-09-141-0/+7
|
* auth: fix things broken during mergeAris Adamantiadis2011-09-021-1/+1
|
* Update libssh to ssh_handle_packets_terminationAris Adamantiadis2011-09-021-114/+129
| | | | | | | | | | | cherry-picked from 0cb5248 Should resolve all timeout problems Conflicts: src/auth.c src/channels.c
* Channels: fix the "server specified invalid channel" bugAris Adamantiadis2011-09-021-10/+31
| | | | Resolved by introducing a flag entry in channel structure.
* channel: ssh_channel_read is nonblocking, + docfixesAris Adamantiadis2011-09-021-16/+46
| | | | | | | cherry-picked from 6091147 Conflicts: src/channels.c