summaryrefslogtreecommitdiffstats
path: root/src/session.c
Commit message (Collapse)AuthorAgeFilesLines
* session: Fix a possible use after free in ssh_free().Andreas Schneider2012-10-221-15/+19
| | | | | | | We need to cleanup the channels first cause we call ssh_channel_close() on the channels which still require a working socket and poll context. Thanks to sh4rm4!
* session: Fix a memory leak in ssh_new() on error.Andreas Schneider2012-10-051-0/+1
| | | | (cherry picked from commit 280ce3fe937c96899732814928c8ecfa9f9ae431)
* session: Cleanup timeout functions and fix packets termination.rofl0r2012-01-021-23/+9
| | | | | | | | It is possible that we get unrelated packets while waiting for termination, thus waiting indefinitely. As a workaround we have to check the user-supplied timeout. Also cleaned up ssh_blocking_flush, which was using the timeout in a bogus manner (resetting the timeout after each check).
* Fixes the ssh_log issue on ssh_bind handles.Aris Adamantiadis2011-09-171-1/+1
| | | | | | | | (cherry picked from commit da954c2c5ee85bcbe2f5ad9f507a6306b0f5f8b9) Conflicts: src/keyfiles.c
* channels: replaced bugged lists with ssh_listAris Adamantiadis2011-09-021-3/+6
| | | | | | | | | (cherry picked from commit 6d8bb956c5caa48c2aba6713f067224650c3c1e1) Conflicts: src/channels.c src/session.c
* session: Fix an infinite loop in the termination callback.rofl0r2011-08-101-17/+11
| | | | | | This happened due to the use of the buggy and obsolete timeout funtions. (cherry picked from commit 7949f2cdc6eb1ac0f076e06e6a3fa47540a9b870)
* channels: Handle SSH_AGAIN in channel_open().Andreas Schneider2011-08-091-7/+1
| | | | (cherry picked from commit 2f878736427f5fd846f8ebb0c834e6a65bf8a638)
* session: Fix timeout handling.rofl0r2011-08-071-28/+57
| | | | | | -2 now means to use the timeout specified in options. It wasn't used earlier and poll only knows -1 and 0 anyway for special meanings. (cherry picked from commit af85337f5ff052437fa5cf117f3d065488640660)
* session: Fix return code of ssh_blocking_flush().Andreas Schneider2011-05-281-2/+2
| | | | (cherry picked from commit 3c21281bf07bceb61a321e11348cd54e35b5e869)
* Introduced ssh_timeout_elapsed functionsAris Adamantiadis2011-05-251-9/+22
| | | | | | | | Functions to mesure elapsed time before and after a serie of calls. Introduces a dependancy to clock_gettime() and librt, hope this doesn't break anything. Porting to gettimeofday() should not be too hard. (cherry picked from commit 59f7647cd97c62ab7a26725e5a166dcb54b27bc6)
* connect: Set timeout on connectOliver Stöneberg2011-05-171-1/+2
| | | | | | This also fixes error handling in ssh_poll_ctx_dopoll() and ssh_handle_packets(), so it won't loop forever on an actual timeout. (cherry picked from commit 671a9827394714cfc90d75c8a8fb2ccd86f80abf)
* poll: Fix poll input events.Andreas Schneider2011-04-151-1/+1
| | | | bug#38
* Change session state after receiving a DisconnectAris Adamantiadis2011-03-281-0/+1
| | | | (cherry picked from commit 4bc9c96e4e5b376578c7dcfdd9a85c7a4b4c788b)
* Implement ssh_blocking_flush()Aris Adamantiadis2011-03-231-0/+25
| | | | | Based on code from Jan Willamowius (cherry picked from commit dff4e4e6d3a56123b00df48fdcd7a6de0a275aef)
* Reverse commit 076dfb82 for the server sidemilo2011-02-191-0/+2
| | | | (cherry picked from commit 32e23a25da4e7d23bdede1cee4cadc6c80306c23)
* session: Added ssh_is_connected().Andreas Schneider2011-02-061-0/+15
|
* session: Fixed possible uninitialized return of ret.Andreas Schneider2011-02-051-1/+1
|
* Use termination functions for event pollingAris Adamantiadis2011-01-121-0/+37
|
* Change blocking parameter to a flagAris Adamantiadis2011-01-101-3/+13
|
* Fix connection callbacks called at wrong timeAris Adamantiadis2011-01-101-1/+0
|
* Fix leak when key exchange fails.Aris Adamantiadis2011-01-091-0/+4
|
* Added compression options and allow "yes/no" settingAris Adamantiadis2010-12-271-0/+1
| | | | SSH_OPTION_COMPRESSION and SSH_OPTION_COMPRESSION_LEVEL options have been added. Now, end-level apps may simply choose to enable compression without knowing the relevant algorithms behind it.
* Removed the global poll ctx in fav. of /session ctxAris Adamantiadis2010-10-121-1/+4
|
* Fixed outgoing flow control + writes behavioursAris Adamantiadis2010-09-261-3/+3
|
* session: Fixed a memory leak with session->bindaddr.Andreas Schneider2010-09-071-0/+1
|
* misc: Rename libssh/ to src/Andreas Schneider2010-09-061-0/+520