summaryrefslogtreecommitdiffstats
path: root/libssh/packet.c
Commit message (Collapse)AuthorAgeFilesLines
* oops missed a line in the fixAris Adamantiadis2008-06-171-3/+5
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@173 7dcaeef0-15fb-0310-b436-a5af3365683c
* bug #00006 fixAris Adamantiadis2008-06-171-0/+3
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@172 7dcaeef0-15fb-0310-b436-a5af3365683c
* displaced the data_to_* into socketAris Adamantiadis2008-06-161-2/+2
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@171 7dcaeef0-15fb-0310-b436-a5af3365683c
* Big changes :Aris Adamantiadis2008-06-161-214/+61
| | | | | | | | | | | | refactoring of the socket class. Now the buffering happens in the socket class. enhanced the logging system. Cleaned up some debugging messages. Verified the working with ssh-1. If this cleanup introduced bugs (it did but corrected the found ones) at least, they will be easier to find also added the (c) and fixed dates for updated files git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@169 7dcaeef0-15fb-0310-b436-a5af3365683c
* begin fixing the ssh_say everywhereAris Adamantiadis2008-06-121-1/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@167 7dcaeef0-15fb-0310-b436-a5af3365683c
* big changes :Aris Adamantiadis2008-06-121-26/+83
| | | | | | | | Some documentation, and a new logging system. some work must be done to get rid of the infamous ssh_say() git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@166 7dcaeef0-15fb-0310-b436-a5af3365683c
* fixed the netdb problem ?Aris Adamantiadis2008-03-121-1/+0
| | | | | | | | i don't understand, removing the #include <netdb.h> didn't add misses for ntohl. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@148 7dcaeef0-15fb-0310-b436-a5af3365683c
* first part of win32 patchesAris Adamantiadis2008-03-071-1/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@141 7dcaeef0-15fb-0310-b436-a5af3365683c
* added the socket class and created wrappersAris Adamantiadis2008-03-041-43/+22
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@137 7dcaeef0-15fb-0310-b436-a5af3365683c
* found the nasty server bug ("ssh_accept: ")Aris Adamantiadis2007-03-171-1/+2
| | | | | | | | it was the session->alive which was null. I wonder how this bug survived my initial development ... git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@115 7dcaeef0-15fb-0310-b436-a5af3365683c
* forgot a line from norbert's patchAris Adamantiadis2006-12-121-0/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@98 7dcaeef0-15fb-0310-b436-a5af3365683c
* norbert's patches + strange typo in packet_nonblocking_flush()Aris Adamantiadis2006-12-121-2/+8
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@97 7dcaeef0-15fb-0310-b436-a5af3365683c
* oops, forgot to verify that it compiled fineAris Adamantiadis2006-11-121-3/+18
| | | | | | | also, published changes from Norbert including lots of session->fd checks git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@81 7dcaeef0-15fb-0310-b436-a5af3365683c
* nonblocking support in dh_handshake() from client.cAris Adamantiadis2005-11-301-14/+30
| | | | | | | | some packet nonblocking fixes. reenable sftp from the sample client. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@52 7dcaeef0-15fb-0310-b436-a5af3365683c
* same changes, SSH1 (reading only).Aris Adamantiadis2005-11-231-96/+90
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@50 7dcaeef0-15fb-0310-b436-a5af3365683c
* added bases for nonblocking packet sending and receiving. packet_send Aris Adamantiadis2005-11-221-116/+202
| | | | | | | | | | | | | | | | | and packet_read may return SSH_AGAIN if the session is nonblocking and there is not enough data to be read. I also added a socket buffering through session->in_socket_buffer. It is more low-level than the packet buffer. I should rename in_buffer with in_packet_buffer. There is still work to do with the socket status, (opened, error, closed, ...) and much more work to extend the nonblocking to session opening, messages sending and such. I find the switch(session->packet_state) solution very nice (especially when the nonblocking function may have 10 differents states, like in a connection.) git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@49 7dcaeef0-15fb-0310-b436-a5af3365683c
* added the gcrypt patch (without gcrypt as default library).Aris Adamantiadis2005-10-041-3/+3
| | | | | | | still needs tests. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@38 7dcaeef0-15fb-0310-b436-a5af3365683c
* More work on the server side and sftp.Aris Adamantiadis2005-08-181-1/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@9 7dcaeef0-15fb-0310-b436-a5af3365683c
* server kex done :)Aris Adamantiadis2005-08-071-2/+5
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@6 7dcaeef0-15fb-0310-b436-a5af3365683c
* first importAris Adamantiadis2005-07-051-0/+563
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@1 7dcaeef0-15fb-0310-b436-a5af3365683c