aboutsummaryrefslogtreecommitdiff
path: root/libssh
AgeCommit message (Collapse)AuthorFilesLines
2009-07-22Fix a segfault if a NULL pointer is passed to ssh_disconnect().Andreas Schneider1-3/+2
2009-07-22Don't segfault if the session or the answer is NULL.Andreas Schneider1-1/+1
2009-07-21Fix ssh_write_knownhost() which always returned -1.Andreas Schneider1-1/+1
fwrite() return the the number of items written not the size of the buffer.
2009-07-21Make the ssh_userauth_kbdint functions to get the prompts const.Andreas Schneider1-3/+3
They shouldn't be modified or free'd by a user.
2009-07-14Fix doxygen to match SSH_SERVER_FILE_NOT_FOUND fixAris Adamantiadis1-1/+4
2009-07-13Fix build on windows, missing include.Andreas Schneider1-0/+2
2009-07-13Put #ifdef around AI_NUMERICSERV which doesn't seem stdAris Adamantiadis1-0/+2
2009-07-13Enable conditional compiling for IP regex code.Aris Adamantiadis1-2/+13
2009-07-13forgot init.c in copyright updatesAris Adamantiadis1-1/+1
2009-07-13Fixed copyright noticesAris Adamantiadis4-4/+5
2009-07-12Added return code SSH_SERVER_FILE_NOT_FOUNDAris Adamantiadis1-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.
2009-07-12Set correct hint when connecting to an IP addressAris Adamantiadis2-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
2009-07-04fix int -> socket_t in SSH_POLLAris Adamantiadis1-1/+1
2009-07-04Move doxygen tags into C filesAris Adamantiadis1-1/+114
2009-07-03Add a generic way to handle sockets asynchronously.Aleksandar Kanchev1-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>
2009-06-30Add logging of the sftp flags used to open a fileAris Adamantiadis1-1/+1
Should be used to debug weird behaviour when using libssh on windows with different compiler chains.
2009-06-30Fixed Could not write as much data as expected msgAris Adamantiadis1-1/+1
Bug caused by verifying the size of the buffer in the wrong place
2009-06-22Fixed memory leak in ssh_is_server_known()Aris Adamantiadis1-0/+2
2009-06-21Fixed yet another read-after-free bugAris Adamantiadis1-2/+3
read of a buffer len after free in sftp_write()
2009-06-21Fixed a use-after-free in match_hashed_host()Aris Adamantiadis1-1/+1
2009-06-21Added a macro to test buffer_struct integrityAris Adamantiadis1-9/+50
Nothing yet in cmake and config.h.in for this
2009-06-21Fix doublefree bug found by CyrilAris Adamantiadis1-10/+20
2009-06-19Verify memory return codes in ssh_list functionsAris Adamantiadis1-2/+7
2009-06-18added ssh_message_callback support.Aris Adamantiadis3-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.
2009-06-18Created general singlelinked list implementationAris Adamantiadis1-0/+80
2009-06-17Begin of asynchronous SSH message parsingAris Adamantiadis3-1/+21
2009-06-17Fixed potential format string attacksAris Adamantiadis1-4/+4
Potential format string attacks on error reporting in channels.c
2009-06-17ssh_message_retrieve + memoryleak fixed in ssh_message_freeAris Adamantiadis1-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.
2009-06-15ssh_init()Aris Adamantiadis3-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
2009-06-10Simply leave the function, this should prevent a segfault.Andreas Schneider1-1/+2
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@777 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-06-10Fix a infinite loop on error.Andreas Schneider1-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
2009-06-09Fix a possible crash bug.Andreas Schneider1-4/+4
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@775 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-06-09Fix build warnings.Andreas Schneider15-2/+65
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@774 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-06-04Make use of poll() and add a poll-emulation for win32.Andreas Schneider3-96/+208
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@772 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-23Fix compilation of SSHv1.Andreas Schneider1-2/+2
Patch by Norbert Kiesel. git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@770 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-13Add missing vim modeline.Andreas Schneider1-0/+1
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@765 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-13Fix some compiler warnings on windows.Andreas Schneider2-7/+8
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@764 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-12Fix the vim modeline and place it at the end of the file.Andreas Schneider32-78/+35
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@763 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-11Fix a double free corruption.Andreas Schneider1-2/+2
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@760 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-11Remove a wrong NULL check.Andreas Schneider1-4/+0
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@759 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-11Initialize the return value to fix a build warning.Andreas Schneider1-1/+1
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@757 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-11Added a ssh_bind_set_fd() function.Andreas Schneider1-1/+5
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@754 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-11Change variable names of the keys_struct to avoid conflicts.Andreas Schneider2-20/+20
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@753 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-05Fix compilation on windows.Andreas Schneider1-0/+6
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@744 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-05Improve bin_to_base64() and use const for source.Andreas Schneider1-18/+29
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@743 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-05Format alphabet table.Andreas Schneider1-3/+5
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@742 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-05Fix the macros.Andreas Schneider1-9/+9
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@741 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-05Format _bin_to_base64().Andreas Schneider1-22/+24
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@740 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-05Improve get_equals().Andreas Schneider1-10/+11
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@739 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-05Fix the prototype.Andreas Schneider1-1/+1
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@738 7dcaeef0-15fb-0310-b436-a5af3365683c