summaryrefslogtreecommitdiffstats
path: root/libssh/packet.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed uint* to work on Windows.Andreas Schneider2009-12-011-1/+1
| | | | Thanks to Patrick Spendrin.
* Standardize callbacks style and add documentationAris Adamantiadis2009-11-291-2/+2
|
* Squashed commit of the following:Aris Adamantiadis2009-11-271-28/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Pcap: Fix bug with non-encrypted incoming packetsAris Adamantiadis2009-11-161-0/+11
|
* Improved pcap dumping supportAris Adamantiadis2009-11-161-1/+16
|
* more priv.h splittingAris Adamantiadis2009-09-261-0/+1
|
* Fixed including of config.h.Andreas Schneider2009-09-251-1/+2
| | | | | | | | If there is some option to modify libc behaviour (like if there was some off_t usage to be modified by some flag to make that 64 bit) that needs to be done before the first libc header. one could still do -D there, though (unless cmake wants to do something automatically and puts that in config.h)
* Moved lots of declaration out of priv.hAris Adamantiadis2009-09-231-0/+5
|
* get rid of SSH_SESSIONAris Adamantiadis2009-09-231-13/+13
|
* Limit the size of acceptable compressed packetsAris Adamantiadis2009-09-161-1/+1
|
* Fix "void * ptr used in pointer arithmetic" warngAris Adamantiadis2009-08-291-3/+3
|
* Change SSH_LOG_RARE to SSH_LOG_PACKET in packet.cAris Adamantiadis2009-08-291-8/+8
|
* Add forward listening featureVic Lee2009-08-161-0/+1
| | | | Signed-off-by: Andreas Schneider <mail@cynapses.org>
* Fix build with MSVC.Andreas Schneider2009-07-301-2/+1
|
* Fix SSH1 compilation.Andreas Schneider2009-07-271-10/+10
|
* Fix SSH1 and stdint in SSH1 code.Andreas Schneider2009-07-271-11/+11
|
* Switch completly to stdint types.Andreas Schneider2009-07-251-24/+24
|
* Change all occurences of STRING * to ssh_stringAris Adamantiadis2009-07-241-1/+1
|
* added ssh_message_callback support.Aris Adamantiadis2009-06-181-0/+3
| | | | Not fully working yet. User can set his ssh_message_callback, and the function ssh_execute_message_callbacks will call them when appropriate. Messages are correctly stacked (in packet_parse) but no call to ssh_execute_callbacks exists yet.
* Begin of asynchronous SSH message parsingAris Adamantiadis2009-06-171-1/+7
|
* 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 compilation of SSHv1.Andreas Schneider2009-05-231-2/+2
| | | | | | | Patch by Norbert Kiesel. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@770 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix some compiler warnings on windows.Andreas Schneider2009-05-131-2/+2
| | | | 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-2/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@763 7dcaeef0-15fb-0310-b436-a5af3365683c
* Rename buffer_add_data_begin() to buffer_prepend_data().Andreas Schneider2009-04-221-4/+4
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@571 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve packet_hmac_verify().Andreas Schneider2009-04-151-1/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@481 7dcaeef0-15fb-0310-b436-a5af3365683c
* Use consistend return values for packet_wait() functions.Andreas Schneider2009-04-141-91/+106
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@462 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add more error checks to packet_parse().Andreas Schneider2009-04-141-60/+65
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@461 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add more error checks to packet_send1().Andreas Schneider2009-04-141-41/+72
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@460 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add more error checks to packet_send2().Andreas Schneider2009-04-141-37/+64
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@459 7dcaeef0-15fb-0310-b436-a5af3365683c
* Format packet_write().Andreas Schneider2009-04-141-8/+17
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@458 7dcaeef0-15fb-0310-b436-a5af3365683c
* Format packet_flush().Andreas Schneider2009-04-141-8/+12
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@457 7dcaeef0-15fb-0310-b436-a5af3365683c
* Use consistent return values for packet_translate().Andreas Schneider2009-04-141-19/+25
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@456 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add more error checks to packet_read1().Andreas Schneider2009-04-141-108/+138
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@455 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add more error checks to packet_read2().Andreas Schneider2009-04-101-119/+160
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@454 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix header functions and add return value checks.Andreas Schneider2009-04-081-2/+7
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@430 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix SSHv1 compile errors.Andreas Schneider2009-04-081-3/+3
| | | | | | | Thanks to Norbert Kiesel <nkiesel@tbdnetworks.com> for the patch. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@424 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix build warnings found with printf checking of ssh_set_error().Andreas Schneider2009-04-051-1/+2
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@405 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add memory error checking for packet functions.Andreas Schneider2009-04-011-3/+13
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@323 7dcaeef0-15fb-0310-b436-a5af3365683c
* Check for memory allocation errors.Andreas Schneider2009-04-011-7/+18
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@316 7dcaeef0-15fb-0310-b436-a5af3365683c
* Normalize the license in all files and add vim tab instructions.Andreas Schneider2009-03-291-20/+23
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@305 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add an option WITH_LIBZ to compile with zlib support.Andreas Schneider2009-03-281-5/+7
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@289 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix build warnings.Andreas Schneider2009-03-141-1/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@273 7dcaeef0-15fb-0310-b436-a5af3365683c
* Replace ssh_say with ssh_log.Andreas Schneider2009-03-111-15/+24
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@264 7dcaeef0-15fb-0310-b436-a5af3365683c
* 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