Andreas Schneider
ef2c8d66f1
Add compile flags and test for compiler options only if we use gcc.
2009-07-21 11:14:54 +02:00
Andreas Schneider
1a6038baa5
Only add additional warnings if we have a GNU compiler.
2009-07-21 11:10:09 +02:00
Andreas Schneider
41a8fb5810
Make the ssh_userauth_kbdint functions to get the prompts const.
...
They shouldn't be modified or free'd by a user.
2009-07-21 10:34:21 +02:00
Andreas Schneider
8843d8b68d
Fix sol8 + ss11 compile errors.
...
Thanks to tysonite@gmail.com .
2009-07-20 22:50:45 +02:00
Andreas Schneider
2aec79ce36
Add missing changelog entries.
2009-07-14 11:10:22 +02:00
Aris Adamantiadis
bbcbc8425c
Fix doxygen to match SSH_SERVER_FILE_NOT_FOUND fix
2009-07-14 10:09:18 +02:00
Andreas Schneider
ed8178f3c3
Fix build on windows, missing include.
2009-07-13 13:33:52 +02:00
Aris Adamantiadis
933527fc77
Put #ifdef around AI_NUMERICSERV which doesn't seem std
2009-07-13 13:29:00 +02:00
Aris Adamantiadis
bf8d139b2d
Enable conditional compiling for IP regex code.
2009-07-13 12:32:06 +02:00
Aris Adamantiadis
093983b804
forgot init.c in copyright updates
2009-07-13 00:25:04 +02:00
Aris Adamantiadis
103292dd99
Fixed copyright notices
2009-07-13 00:23:42 +02:00
Aris Adamantiadis
76b6b1c694
typo in sample.c
2009-07-13 00:19:47 +02:00
Aris Adamantiadis
1301864f92
Reflect the SSH_SERVER_NOT_KNOWN add-on in sample
2009-07-12 23:17:12 +02:00
Aris Adamantiadis
d5b6f6cc37
Added return code SSH_SERVER_FILE_NOT_FOUND
...
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-12 23:13:21 +02:00
Aris Adamantiadis
052073c36d
Set correct hint when connecting to an IP address
...
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-12 23:01:43 +02:00
Aris Adamantiadis
60c778ad7f
fix int -> socket_t in SSH_POLL
2009-07-04 14:16:13 +02:00
Aris Adamantiadis
71100dadcd
Temporary move of ssh_poll_* back to priv.h
...
We'll see later what needs to be put back in public
functions
2009-07-04 13:52:34 +02:00
Aris Adamantiadis
5ba33438f3
Move doxygen tags into C files
2009-07-04 13:47:57 +02:00
Aris Adamantiadis
708c0d32a2
Put back the poll declarations into priv.h
...
That are, poll constants.
2009-07-04 13:41:16 +02:00
Aleksandar Kanchev
3659e8c04a
Add a generic way to handle sockets asynchronously.
...
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-07-03 21:53:53 +02:00
Aris Adamantiadis
c4cf349729
Add logging of the sftp flags used to open a file
...
Should be used to debug weird behaviour when using libssh on windows with different compiler chains.
2009-06-30 22:35:01 +02:00
Aris Adamantiadis
2c99566697
Fixed Could not write as much data as expected msg
...
Bug caused by verifying the size of the buffer in the wrong place
2009-06-30 22:17:35 +02:00
Aleksandar Kanchev
42470857e2
Fixed make condition in build_make.sh.
...
Signed-off-by: Aleksandar Kanchev <aleksandar.kanchev@googlemail.com>
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-06-25 18:02:57 +02:00
Aris Adamantiadis
8724f97a19
Fixed memory leak in ssh_is_server_known()
2009-06-22 23:30:50 +02:00
Aris Adamantiadis
8960992267
Fixed yet another read-after-free bug
...
read of a buffer len after free in sftp_write()
2009-06-21 22:30:28 +02:00
Aris Adamantiadis
730af24de8
Fixed a use-after-free in match_hashed_host()
2009-06-21 22:09:19 +02:00
Aris Adamantiadis
a3fa6f3099
fix stupid "use unallocated memory" code in sample
...
it confused valgrind and wasted 2 precious hours of my life
2009-06-21 21:53:12 +02:00
Aris Adamantiadis
4dafc25927
Added a macro to test buffer_struct integrity
...
Nothing yet in cmake and config.h.in for this
2009-06-21 20:29:29 +02:00
Aris Adamantiadis
e671ebcd99
Modified the sftp test case so it creates 0700 fil
2009-06-21 20:14:10 +02:00
Aris Adamantiadis
bab8508eba
Fix doublefree bug found by Cyril
2009-06-21 19:25:51 +02:00
Andreas Schneider
77cd4795c5
Remove unneeded printf.
2009-06-19 22:46:41 +02:00
Andreas Schneider
dc83f36a00
Add a git ignore file.
2009-06-19 10:25:51 +02:00
Aris Adamantiadis
8336c91e9c
Verify memory return codes in ssh_list functions
2009-06-19 10:18:24 +02:00
Aris Adamantiadis
1bea53375b
added ssh_message_callback support.
...
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-18 23:48:55 +02:00
Aris Adamantiadis
3af55a4f49
Created general singlelinked list implementation
2009-06-18 23:01:05 +02:00
Aris Adamantiadis
cf482ae3bf
Begin of asynchronous SSH message parsing
2009-06-17 23:53:00 +02:00
Aris Adamantiadis
916958a2bb
Fixed potential format string attacks
...
Potential format string attacks on error reporting in channels.c
2009-06-17 23:42:07 +02:00
Aris Adamantiadis
e2af94289f
ssh_message_retrieve + memoryleak fixed in ssh_message_free
...
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-17 23:28:05 +02:00
Aris Adamantiadis
fa4c81cfb9
Url change in README
2009-06-16 16:45:39 +02:00
Aris Adamantiadis
7dbc66e4a3
ssh_init()
...
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-15 15:31:23 +00:00
Andreas Schneider
3873489688
Simply leave the function, this should prevent a segfault.
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@777 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-06-10 16:05:39 +00:00
Andreas Schneider
d14a492019
Fix a infinite loop on error.
...
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-10 15:29:11 +00:00
Andreas Schneider
848984f25f
Fix a possible crash bug.
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@775 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-06-09 12:03:24 +00:00
Andreas Schneider
5a755a8219
Fix build warnings.
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@774 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-06-09 12:03:00 +00:00
Andreas Schneider
910689126a
Fix cmake on BSD.
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@773 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-06-09 10:54:48 +00:00
Andreas Schneider
87995db8fe
Make use of poll() and add a poll-emulation for win32.
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@772 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-06-04 07:23:55 +00:00
Laurent Bigonville
70c9da4fb0
Drop debian directory, new location: 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
2009-06-01 16:49:46 +00:00
Andreas Schneider
1ac654ec6c
Fix compilation of SSHv1.
...
Patch by Norbert Kiesel.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@770 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-23 08:27:31 +00:00
Andreas Schneider
fecbdff179
Set version to 0.3.0 and set release date.
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@768 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-21 09:34:02 +00:00
Aris Adamantiadis
894b73abe2
updated changelog + authors
...
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@767 7dcaeef0-15fb-0310-b436-a5af3365683c
2009-05-18 18:39:26 +00:00