summaryrefslogtreecommitdiffstats
path: root/libssh/messages.c
Commit message (Collapse)AuthorAgeFilesLines
* Add key validation in server side authenticationAris Adamantiadis2009-12-201-5/+5
|
* Resolving doxygen errors in internal modeAris Adamantiadis2009-12-091-5/+9
|
* Squashed commit of the following:Aris Adamantiadis2009-11-271-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix compile bug introduced by another bugfixAris Adamantiadis2009-11-181-1/+1
|
* Added more error messages and checking to handle_channel_request.Andreas Schneider2009-11-181-0/+28
|
* add loggingAris Adamantiadis2009-10-111-0/+1
|
* more priv.h splittingAris Adamantiadis2009-09-261-0/+1
|
* More include file splittingAris Adamantiadis2009-09-261-0/+3
|
* Fix memory leaks found by tysoniteAris Adamantiadis2009-09-251-7/+30
|
* Moved lots of declaration out of priv.hAris Adamantiadis2009-09-231-1/+4
|
* Get rid of SSH_MESSAGEAris Adamantiadis2009-09-231-22/+21
|
* get rid of SSH_SESSIONAris Adamantiadis2009-09-231-10/+10
|
* Fixed libssh compilation without server support.Andreas Schneider2009-07-311-342/+14
|
* Fix build errors in new messages functions.Andreas Schneider2009-07-291-4/+3
| | | | Signed-off-by: Andreas Schneider <mail@cynapses.org>
* Fleshed out server interfacePreston A. Elder2009-07-291-2/+198
| | | | | | | | | | | | - Enables channel_request_open types of DIRECT_TCPIP, FORWARDED_TCPIP and X11 (ie. implemented the handling of those channel_request_open types). - Adds functions to retrieve the extra information relating to channel_request_open messages and channel_request messages. - Adds a channel_write_stderr method (obviously for writing to the STDERR channel from server side) - well, technically just converted the exiting channel_write to take an extra argument and created two wrapper functions. - Actually does the invoking of message_handle() from channel_recv_request. - Implemented the handling of the window-change and env channel_requests. - Implemented a few functions in server.h that were declared but not defined (eg. ssh_message_channel_request_channel). Signed-off-by: Preston A. Elder <prez@neuromancy.net> Signed-off-by: Andreas Schneider <mail@cynapses.org>
* Fix potential memory corruption bugmilo2009-07-271-0/+5
|
* Public key authentication server sidemilo2009-07-271-1/+86
|
* Switch completly to stdint types.Andreas Schneider2009-07-251-8/+8
|
* Fix conflicting declarations of ssh_session and ssh_kbdint.Andreas Schneider2009-07-251-1/+1
|
* Changes all CHANNEL * to ssh_channelAris Adamantiadis2009-07-241-2/+2
|
* Change all occurences of STRING * to ssh_stringAris Adamantiadis2009-07-241-11/+11
|
* Fixed namespace problem in public structuresAris Adamantiadis2009-07-241-1/+1
| | | | | | | | | changed struct string_struct to ssh_string_struct buffer_struct to ssh_buffer_struct and so on. Should not break apps using the caps version of these
* added ssh_message_callback support.Aris Adamantiadis2009-06-181-10/+44
| | | | 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-0/+12
|
* ssh_message_retrieve + memoryleak fixed in ssh_message_freeAris Adamantiadis2009-06-171-55/+75
| | | | | ssh_message_retrieve parses a specific SSH message and returns a pointer to it. Hacked ssh_message_get to use it. This is the first step to have asynchronous ssh messages callbacks.
* Fix build warnings.Andreas Schneider2009-06-091-0/+5
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@774 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix the vim modeline and place it at the end of the file.Andreas Schneider2009-05-121-3/+3
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@763 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix a double free corruption.Andreas Schneider2009-05-111-2/+2
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@760 7dcaeef0-15fb-0310-b436-a5af3365683c
* Remove a wrong NULL check.Andreas Schneider2009-05-111-4/+0
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@759 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add error checking to ssh message type functions.Andreas Schneider2009-04-101-29/+40
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@452 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add more error checks to ssh_message_get().Andreas Schneider2009-04-101-38/+47
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@451 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add error checking to ssh_message_channel_request_reply_default().Andreas Schneider2009-04-091-13/+22
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@450 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add error checking to ssh_message_channel_request_reply_success().Andreas Schneider2009-04-091-13/+26
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@449 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add error checking to handle_channel_request().Andreas Schneider2009-04-091-68/+131
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@448 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add error checking to ssh_message_channel_request_open_reply_default().Andreas Schneider2009-04-091-8/+27
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@447 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add error checking to ssh_message_channel_request_open_reply_accept().Andreas Schneider2009-04-091-29/+54
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@446 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add error checking to handle_channel_request_open().Andreas Schneider2009-04-091-30/+52
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@445 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add error checking to ssh_message_auth_reply_success().Andreas Schneider2009-04-091-5/+14
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@444 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add error checks to ssh_message_auth_reply_default().Andreas Schneider2009-04-091-36/+63
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@443 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve ssh_message_auth* functions.Andreas Schneider2009-04-091-5/+19
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@442 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add more error checks to handle_userauth_request().Andreas Schneider2009-04-091-39/+90
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@441 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve ssh_message_free().Andreas Schneider2009-04-091-31/+25
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@440 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add return value to handle_unimplemented().Andreas Schneider2009-04-091-5/+14
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@439 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add more error checks to handle_service_request().Andreas Schneider2009-04-091-19/+38
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@438 7dcaeef0-15fb-0310-b436-a5af3365683c
* Reformat message_new().Andreas Schneider2009-04-091-9/+10
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@437 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add NULL check to ssh_message_free().Andreas Schneider2009-04-031-0/+3
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@384 7dcaeef0-15fb-0310-b436-a5af3365683c
* Added memory error checks for message functions.Andreas Schneider2009-04-011-6/+23
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@321 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add checks for memory errors in channel functions.Andreas Schneider2009-04-011-0/+4
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@314 7dcaeef0-15fb-0310-b436-a5af3365683c
* Normalize the license in all files and add vim tab instructions.Andreas Schneider2009-03-291-18/+23
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@305 7dcaeef0-15fb-0310-b436-a5af3365683c
* Replace ssh_say with ssh_log.Andreas Schneider2009-03-111-14/+26
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@265 7dcaeef0-15fb-0310-b436-a5af3365683c