1
1

1051 Коммитов

Автор SHA1 Сообщение Дата
Aris Adamantiadis
958a775afa replacing keys_struct with ssh_keys_struct 2009-07-24 21:18:15 +02:00
Aris Adamantiadis
e776dc16c9 Fixed namespace problem in public structures
changed
struct string_struct to ssh_string_struct
buffer_struct to ssh_buffer_struct
and so on.

Should not break apps using the caps version of these
2009-07-24 20:49:46 +02:00
Andreas Schneider
9450a3c987 Fix a possible segfault in sftp_canonicalize_path(). 2009-07-23 18:34:25 +02:00
Andreas Schneider
1939a55c3c Fix getaddrinfo and gethostbyname build problems on Solaris. 2009-07-23 11:57:17 +02:00
Andreas Schneider
2a116bb291 Fix OpenSSL include file checks on Solaris. 2009-07-23 11:54:32 +02:00
Andreas Schneider
d01c7320f9 Fix finding OpenSSL on Solaris. 2009-07-23 09:30:14 +02:00
Andreas Schneider
ea0315ed88 Add cmake check for big endian. 2009-07-23 09:25:36 +02:00
Andreas Schneider
85a5eb9499 Fix a segfault if a NULL pointer is passed to ssh_disconnect(). 2009-07-22 16:04:41 +02:00
Andreas Schneider
3cd06a1f26 Don't segfault if the session or the answer is NULL. 2009-07-22 12:18:34 +02:00
Andreas Schneider
19c3d02805 Merge branch 'master' of git://git.libssh.org/projects/libssh/libssh 2009-07-21 14:12:25 +02:00
Andreas Schneider
b534bfc520 Fix ssh_write_knownhost() which always returned -1.
fwrite() return the the number of items written not the size of the
buffer.
2009-07-21 14:07:23 +02:00
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