summaryrefslogtreecommitdiffstats
path: root/libssh/session.c
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of the options structure.Andreas Schneider2009-10-021-12/+30
|
* More include file splittingAris Adamantiadis2009-09-261-1/+1
|
* More include file movingsAris Adamantiadis2009-09-261-0/+3
|
* Moved lots of declaration out of priv.hAris Adamantiadis2009-09-231-0/+5
|
* Get rid of SSH_MESSAGEAris Adamantiadis2009-09-231-2/+2
|
* get rid of SSH_OPTIONSAris Adamantiadis2009-09-231-1/+1
|
* get rid of SSH_SESSIONAris Adamantiadis2009-09-231-19/+17
|
* experimental callback systemAris Adamantiadis2009-08-231-0/+1
|
* Fix memory leak introduced by previous bugfixAris Adamantiadis2009-08-111-2/+3
|
* Fix possible memory corruption (#14)milo2009-08-061-2/+2
| | | | Signed-off-by: Andreas Schneider <mail@cynapses.org>
* added ssh_message_callback support.Aris Adamantiadis2009-06-181-1/+8
| | | | 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.
* Fix the vim modeline and place it at the end of the file.Andreas Schneider2009-05-121-3/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@763 7dcaeef0-15fb-0310-b436-a5af3365683c
* Rename privatekey_free() to be consistent with publickey_free().Andreas Schneider2009-04-201-2/+2
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@563 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve ssh_get_version().Andreas Schneider2009-04-141-5/+12
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@477 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve ssh_get_disconnect_message().Andreas Schneider2009-04-141-12/+18
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@476 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve ssh_get_status().Andreas Schneider2009-04-141-14/+29
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@475 7dcaeef0-15fb-0310-b436-a5af3365683c
* Cleanup ssh_handle_packets().Andreas Schneider2009-04-141-20/+27
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@474 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add error checks to setter.Andreas Schneider2009-04-141-19/+46
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@473 7dcaeef0-15fb-0310-b436-a5af3365683c
* Use consistent return values for packet_translate().Andreas Schneider2009-04-141-1/+2
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@456 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve ssh_message_free().Andreas Schneider2009-04-091-1/+0
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@440 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix SSHv1 compile errors.Andreas Schneider2009-04-081-1/+1
| | | | | | | 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
* Improve ssh_cleanup().Andreas Schneider2009-04-031-26/+28
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@385 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve ssh_socket_free().Andreas Schneider2009-04-031-21/+17
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@381 7dcaeef0-15fb-0310-b436-a5af3365683c
* Use memset cause something is wrong with the macro.Andreas Schneider2009-04-011-1/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@335 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix ssh connection.Andreas Schneider2009-04-011-1/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@334 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve ssh_new().Andreas Schneider2009-04-011-17/+34
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@331 7dcaeef0-15fb-0310-b436-a5af3365683c
* Add memory error checks for crypto wrapper functions.Andreas Schneider2009-04-011-0/+3
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@330 7dcaeef0-15fb-0310-b436-a5af3365683c
* More memory error checks for ssh_socket_new().Andreas Schneider2009-04-011-1/+4
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@329 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix memory error checking in socket functions.Andreas Schneider2009-04-011-1/+8
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@328 7dcaeef0-15fb-0310-b436-a5af3365683c
* Normalize the license in all files and add vim tab instructions.Andreas Schneider2009-03-291-4/+7
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@305 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix build on Windows.Andreas Schneider2009-03-081-0/+4
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@240 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix build warnings in session code.Andreas Schneider2009-02-021-2/+3
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@216 7dcaeef0-15fb-0310-b436-a5af3365683c
* Start with ssh agent implementation.Andreas Schneider2009-02-021-0/+3
| | | | | | | This is work in progress. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@200 7dcaeef0-15fb-0310-b436-a5af3365683c
* patches 0001-Save-the-last-error-and-provide-a-function-to-get-it.patch,Aris Adamantiadis2008-11-241-0/+1
| | | | | | | | | 0002-Use-const-whereever-it-makes-sense.patch, 0003-Implement-function-to-retrieve-userauth-possabilitie.patch from Andreas Schneider git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@191 7dcaeef0-15fb-0310-b436-a5af3365683c
* fixed a bug where channel_poll could wait forever for a packet already in ↵Aris Adamantiadis2008-10-291-5/+5
| | | | | | | | | socket buffer. Inc'ed libtool numbers git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@184 7dcaeef0-15fb-0310-b436-a5af3365683c
* fixed a bug in the channel windows.Aris Adamantiadis2008-06-171-1/+1
| | | | | | | Fixed the window growing on packet receive git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@175 7dcaeef0-15fb-0310-b436-a5af3365683c
* displaced the data_to_* into socketAris Adamantiadis2008-06-161-5/+7
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@171 7dcaeef0-15fb-0310-b436-a5af3365683c
* Big changes :Aris Adamantiadis2008-06-161-7/+4
| | | | | | | | | | | | 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
* big changes :Aris Adamantiadis2008-06-121-3/+16
| | | | | | | | 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
* workaround for the bug #14Aris Adamantiadis2008-05-261-2/+3
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@162 7dcaeef0-15fb-0310-b436-a5af3365683c
* Doxygen changesAris Adamantiadis2008-05-121-3/+2
| | | | | | | Modified the makefile so the ln -s never fails. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@157 7dcaeef0-15fb-0310-b436-a5af3365683c
* first part of win32 patchesAris Adamantiadis2008-03-071-1/+2
| | | | 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-6/+5
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@137 7dcaeef0-15fb-0310-b436-a5af3365683c
* fix bug #0000002 : in_socket_buffer and out_socket_buffer memleak +Aris Adamantiadis2008-03-031-0/+4
| | | | | | | "g" and "p" O(1) memleak. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@134 7dcaeef0-15fb-0310-b436-a5af3365683c
* oops, forgot to verify that it compiled fineAris Adamantiadis2006-11-121-1/+4
| | | | | | | 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
* more doxygen documentationAris Adamantiadis2006-11-071-0/+58
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@79 7dcaeef0-15fb-0310-b436-a5af3365683c
* added bases for nonblocking packet sending and receiving. packet_send Aris Adamantiadis2005-11-221-0/+1
| | | | | | | | | | | | | | | | | 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
* resolved the infinite loop on exit (thanks giga for the hint).Aris Adamantiadis2005-10-261-0/+15
| | | | | | | | I resolved a memory alloc problem into hmac_init (same kind that the one of md5_init). It's still saying there is a memory corruption. Since the memory corruption happens before it is found (in malloc()), I'll have to run valgrind to locate it. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@46 7dcaeef0-15fb-0310-b436-a5af3365683c
* patches from Norbert merged in. I have made some little changes here and there.Aris Adamantiadis2005-10-261-0/+3
| | | | | | | It still doesn't compile because of the O1 thing passed to ld. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@41 7dcaeef0-15fb-0310-b436-a5af3365683c
* added the gcrypt patch (without gcrypt as default library).Aris Adamantiadis2005-10-041-0/+1
| | | | | | | still needs tests. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@38 7dcaeef0-15fb-0310-b436-a5af3365683c