summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * Add compile flags and test for compiler options only if we use gcc.Andreas Schneider2009-07-211-42/+41
| |
| * Only add additional warnings if we have a GNU compiler.Andreas Schneider2009-07-211-1/+3
| |
* | Fix ssh_write_knownhost() which always returned -1.Andreas Schneider2009-07-212-4/+6
|/ | | | | 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-213-7/+8
| | | | They shouldn't be modified or free'd by a user.
* Fix sol8 + ss11 compile errors.Andreas Schneider2009-07-202-2/+14
| | | | Thanks to tysonite@gmail.com.
* Add missing changelog entries.Andreas Schneider2009-07-141-0/+14
|
* 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-133-2/+17
|
* forgot init.c in copyright updatesAris Adamantiadis2009-07-131-1/+1
|
* Fixed copyright noticesAris Adamantiadis2009-07-137-7/+8
|
* typo in sample.cAris Adamantiadis2009-07-131-1/+1
|
* Reflect the SSH_SERVER_NOT_KNOWN add-on in sampleAris Adamantiadis2009-07-121-0/+4
|
* Added return code SSH_SERVER_FILE_NOT_FOUNDAris Adamantiadis2009-07-122-2/+3
| | | | | 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-123-4/+58
| | | | | | | | 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-042-2/+2
|
* Temporary move of ssh_poll_* back to priv.hAris Adamantiadis2009-07-042-36/+33
| | | | | We'll see later what needs to be put back in public functions
* Move doxygen tags into C filesAris Adamantiadis2009-07-042-123/+115
|
* Put back the poll declarations into priv.hAris Adamantiadis2009-07-042-7/+9
| | | | That are, poll constants.
* Add a generic way to handle sockets asynchronously.Aleksandar Kanchev2009-07-033-8/+389
| | | | | | | | | | | | | | 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 make condition in build_make.sh.Aleksandar Kanchev2009-06-251-1/+1
| | | | | Signed-off-by: Aleksandar Kanchev <aleksandar.kanchev@googlemail.com> Signed-off-by: Andreas Schneider <mail@cynapses.org>
* 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
|
* fix stupid "use unallocated memory" code in sampleAris Adamantiadis2009-06-211-1/+1
| | | | it confused valgrind and wasted 2 precious hours of my life
* Added a macro to test buffer_struct integrityAris Adamantiadis2009-06-211-9/+50
| | | | Nothing yet in cmake and config.h.in for this
* Modified the sftp test case so it creates 0700 filAris Adamantiadis2009-06-211-1/+1
|
* Fix doublefree bug found by CyrilAris Adamantiadis2009-06-211-10/+20
|
* Remove unneeded printf.Andreas Schneider2009-06-191-1/+0
|
* Add a git ignore file.Andreas Schneider2009-06-191-0/+6
|
* Verify memory return codes in ssh_list functionsAris Adamantiadis2009-06-192-3/+8
|
* added ssh_message_callback support.Aris Adamantiadis2009-06-185-14/+63
| | | | 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-182-0/+115
|
* Begin of asynchronous SSH message parsingAris Adamantiadis2009-06-174-1/+25
|
* 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-173-55/+86
| | | | | 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.
* Url change in READMEAris Adamantiadis2009-06-161-1/+1
|
* ssh_init()Aris Adamantiadis2009-06-154-12/+21
| | | | | | | 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
* Fix cmake on BSD.Andreas Schneider2009-06-091-3/+3
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@773 7dcaeef0-15fb-0310-b436-a5af3365683c
* Make use of poll() and add a poll-emulation for win32.Andreas Schneider2009-06-044-96/+233
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@772 7dcaeef0-15fb-0310-b436-a5af3365683c
* Drop debian directory, new location: ↵Laurent Bigonville2009-06-0114-201/+0
| | | | | | git://git.debian.org/collab-maint/libssh.git git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@771 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
* Set version to 0.3.0 and set release date.release-0-3-0Andreas Schneider2009-05-212-3/+3
| | | | git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@768 7dcaeef0-15fb-0310-b436-a5af3365683c