summaryrefslogtreecommitdiffstats
path: root/libssh
Commit message (Collapse)AuthorAgeFilesLines
...
* Don't segfault if the session or the answer is NULL.Andreas Schneider2009-07-221-1/+1
|
* Fix ssh_write_knownhost() which always returned -1.Andreas Schneider2009-07-211-1/+1
| | | | | fwrite() return the the number of items written not the size of the buffer.
* Make the ssh_userauth_kbdint functions to get the prompts const.Andreas Schneider2009-07-211-3/+3
| | | | They shouldn't be modified or free'd by a user.
* Fix doxygen to match SSH_SERVER_FILE_NOT_FOUND fixAris Adamantiadis2009-07-141-1/+4
|
* Fix build on windows, missing include.Andreas Schneider2009-07-131-0/+2
|
* Put #ifdef around AI_NUMERICSERV which doesn't seem stdAris Adamantiadis2009-07-131-0/+2
|
* Enable conditional compiling for IP regex code.Aris Adamantiadis2009-07-131-2/+13
|
* forgot init.c in copyright updatesAris Adamantiadis2009-07-131-1/+1
|
* Fixed copyright noticesAris Adamantiadis2009-07-134-4/+5
|
* Added return code SSH_SERVER_FILE_NOT_FOUNDAris Adamantiadis2009-07-121-2/+2
| | | | | This error is returned by ssh_is_server_known when known_hosts file does not exist and gives more action to the developer.
* Set correct hint when connecting to an IP addressAris Adamantiadis2009-07-122-4/+55
| | | | | | | | libssh now uses a regular expression against destination hostnames to match numerical IP addresses and set the appropriate hint. Patches also add init and finalize code to compile the regexp
* fix int -> socket_t in SSH_POLLAris Adamantiadis2009-07-041-1/+1
|
* Move doxygen tags into C filesAris Adamantiadis2009-07-041-1/+114
|
* Add a generic way to handle sockets asynchronously.Aleksandar Kanchev2009-07-031-0/+226
| | | | | | | | | | | | | | It's based on poll objects, each of which store a socket, it's events and a callback, which gets called whenever an event is set. The poll objects are attached to a poll context, which should be allocated on per thread basis. Polling the poll context will poll all the attached poll objects and call their callbacks (handlers) if any of the socket events are set. This should be done within the main loop of an application. This is intended as a ground work for making libssh asynchronous. Signed-off-by: Aleksandar Kanchev <aleksandar.kanchev@googlemail.com>
* Add logging of the sftp flags used to open a fileAris Adamantiadis2009-06-301-1/+1
| | | | Should be used to debug weird behaviour when using libssh on windows with different compiler chains.
* Fixed Could not write as much data as expected msgAris Adamantiadis2009-06-301-1/+1
| | | | Bug caused by verifying the size of the buffer in the wrong place
* Fixed memory leak in ssh_is_server_known()Aris Adamantiadis2009-06-221-0/+2
|
* Fixed yet another read-after-free bugAris Adamantiadis2009-06-211-2/+3
| | | | read of a buffer len after free in sftp_write()
* Fixed a use-after-free in match_hashed_host()Aris Adamantiadis2009-06-211-1/+1
|
* Added a macro to test buffer_struct integrityAris Adamantiadis2009-06-211-9/+50
| | | | Nothing yet in cmake and config.h.in for this
* Fix doublefree bug found by CyrilAris Adamantiadis2009-06-211-10/+20
|
* Verify memory return codes in ssh_list functionsAris Adamantiadis2009-06-191-2/+7
|
* added ssh_message_callback support.Aris Adamantiadis2009-06-183-11/+55
| | | | 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.
* Created general singlelinked list implementationAris Adamantiadis2009-06-181-0/+80
|
* Begin of asynchronous SSH message parsingAris Adamantiadis2009-06-173-1/+21
|
* Fixed potential format string attacksAris Adamantiadis2009-06-171-4/+4
| | | | Potential format string attacks on error reporting in channels.c
* 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.
* ssh_init()Aris Adamantiadis2009-06-153-12/+20
| | | | | | | fixes in client.c and server.c for this git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@778 7dcaeef0-15fb-0310-b436-a5af3365683c
* Simply leave the function, this should prevent a segfault.Andreas Schneider2009-06-101-1/+2
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@777 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix a infinite loop on error.Andreas Schneider2009-06-101-1/+3
| | | | | | | Thanks to Milo for the pointer. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@776 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix a possible crash bug.Andreas Schneider2009-06-091-4/+4
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@775 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix build warnings.Andreas Schneider2009-06-0915-2/+65
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@774 7dcaeef0-15fb-0310-b436-a5af3365683c
* Make use of poll() and add a poll-emulation for win32.Andreas Schneider2009-06-043-96/+208
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@772 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
* Add missing vim modeline.Andreas Schneider2009-05-131-0/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@765 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix some compiler warnings on windows.Andreas Schneider2009-05-132-7/+8
| | | | 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-1232-78/+35
| | | | 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
* Initialize the return value to fix a build warning.Andreas Schneider2009-05-111-1/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@757 7dcaeef0-15fb-0310-b436-a5af3365683c
* Added a ssh_bind_set_fd() function.Andreas Schneider2009-05-111-1/+5
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@754 7dcaeef0-15fb-0310-b436-a5af3365683c
* Change variable names of the keys_struct to avoid conflicts.Andreas Schneider2009-05-112-20/+20
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@753 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix compilation on windows.Andreas Schneider2009-05-051-0/+6
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@744 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve bin_to_base64() and use const for source.Andreas Schneider2009-05-051-18/+29
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@743 7dcaeef0-15fb-0310-b436-a5af3365683c
* Format alphabet table.Andreas Schneider2009-05-051-3/+5
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@742 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix the macros.Andreas Schneider2009-05-051-9/+9
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@741 7dcaeef0-15fb-0310-b436-a5af3365683c
* Format _bin_to_base64().Andreas Schneider2009-05-051-22/+24
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@740 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve get_equals().Andreas Schneider2009-05-051-10/+11
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@739 7dcaeef0-15fb-0310-b436-a5af3365683c
* Fix the prototype.Andreas Schneider2009-05-051-1/+1
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@738 7dcaeef0-15fb-0310-b436-a5af3365683c
* Improve _base64_to_bin().Andreas Schneider2009-05-051-8/+11
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@737 7dcaeef0-15fb-0310-b436-a5af3365683c