summaryrefslogtreecommitdiffstats
path: root/src/socket.c
Commit message (Collapse)AuthorAgeFilesLines
* socket: Call data handler as long as handler takes data.Johannes Krude2013-10-061-4/+6
| | | | Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
* Fix regression in pre-connected socket setting.Werner Koch2012-09-211-7/+20
| | | | | | | | | | | * src/socket.c (ssh_socket_pollcallback): Factor some code out to ... (ssh_socket_set_connecting): New. * include/libssh/socket.h (ssh_socket_set_connecting): Add prototype. * src/client.c (ssh_connect): Use new function for a socket set by SSH_OPTIONS_FD. Signed-off-by: Werner Koch <wk@gnupg.org> Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
* channels: Fix checking for fatal errors.rofl0r2011-08-071-18/+20
| | | | | | | | | We need this that we don't end up in and infinite poll loop. (cherry picked from commit 563fbe4de8ee090b40b50415a86f9a3da16f46b0) Conflicts: src/poll.c
* socket: Fixed use-after-free.Oliver Stöneberg2011-05-171-0/+6
| | | | | | When s->callbacks->exception() was called in ssh_socket_pollcallback() we had a use after free bug. (cherry picked from commit 986676378943353cdcf156493812737dc91befdd)
* [socket] fix a segfault at disconnectmilo2011-05-021-4/+15
| | | | (cherry picked from commit 7d2064c2894fc298cc8923cae657200900b032e5)
* init: Some initialization fixes.Oliver Stöneberg2011-05-011-6/+18
| | | | | | | | - Check result of ssh_init() in privatekey_from_base64() - Moved code from ssh_finalize() to appropriate subroutines - Only initialize sockets once (caused mismatch of WSAStartup() and WSACleanup() calls and potential usage of bsd_poll when win_poll should be used)
* socket: Fixed poll input event.Oliver Stöneberg2011-05-011-1/+1
| | | | (cherry picked from commit 040a543f57107efc267b7b5b7352293dcb7d87d5)
* poll: Fix poll input events.Andreas Schneider2011-04-151-1/+1
| | | | bug#38
* build: Fixed some VS2010 problems.Oliver Stöneberg2011-04-111-1/+1
| | | | (cherry picked from commit 166ee451c500543db49e789b9bb2ed16db052f94)
* Implement ssh_blocking_flush()Aris Adamantiadis2011-03-231-0/+12
| | | | | Based on code from Jan Willamowius (cherry picked from commit dff4e4e6d3a56123b00df48fdcd7a6de0a275aef)
* socket: Set errors on return.Bernhard R. Link2011-02-181-1/+16
| | | | | Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 071b0034db9d687f6ac493486d61363c5613643b)
* Fix use-after-free when socket is closed in a callback handlerAris Adamantiadis2011-01-191-2/+15
|
* Fix double-connect testcaseAris Adamantiadis2011-01-151-0/+19
|
* Removed the extern char *environAris Adamantiadis2010-09-301-3/+0
|
* Remove extern environ from the requirementsAris Adamantiadis2010-09-291-1/+1
|
* Fixed outgoing flow control + writes behavioursAris Adamantiadis2010-09-261-24/+28
|
* socket.c: Fixed setting max_fd which breaks ssh_select().Vic Lee2010-09-201-2/+6
| | | | Signed-off-by: Andreas Schneider <asn@cynapses.org>
* socket: Make code easier to read and debug.Andreas Schneider2010-09-071-8/+10
|
* misc: Rename libssh/ to src/Andreas Schneider2010-09-061-0/+719