Commit Graph

805 Commits

Author SHA1 Message Date
Andreas Schneider
7cd327a795 Fix a possible stack overflow in agent code. 2009-09-14 19:00:28 +02:00
Andreas Schneider
77a757c728 Update ChangeLog. 2009-09-14 10:18:20 +02:00
Aris Adamantiadis
9ef0837c80 Fix the security bug found by Orange Labs
Verify the length of decrypt operation is a multiple of blocksize
2009-09-13 22:44:31 +02:00
Andreas Schneider
2f66b3be13 Update ChangeLog. 2009-09-09 14:01:56 +02:00
Andreas Schneider
32d5293318 Add a portable ssh_mkdir function for Windows. 2009-09-09 14:01:20 +02:00
Andreas Schneider
e0c969bb41 Add a sftp_tell64() function. 2009-09-08 12:02:25 +02:00
Andreas Schneider
cecd5f0f78 Update ChangeLog. 2009-09-08 11:38:28 +02:00
Andreas Schneider
9bef81c769 Fix the free calls and use the safe free macro. 2009-09-08 11:36:38 +02:00
Andreas Schneider
1093fb43ca Add missing NULL pointer checks to crypt_set_algorithms_server.
Thanks to Orange Labs for the report.
2009-09-08 11:36:28 +02:00
Andreas Schneider
add2aa5f45 Fix an integer overflow in buffer_get_data().
Thanks to Orange Labs for the report.
2009-09-08 11:36:06 +02:00
Andreas Schneider
26cdf0d994 Add ChangeLog entries. 2009-08-26 09:51:32 +02:00
Andreas Schneider
3cf2c3639e Increase version number. 2009-08-26 09:50:18 +02:00
Andreas Schneider
a501d63c8a Fix ssh_write_knownhost() if ~/.ssh doesn't exist. 2009-08-26 09:48:35 +02:00
Andreas Schneider
160053bc39 Added ssh_basename() and ssh_dirname(). 2009-08-26 09:47:20 +02:00
Andreas Schneider
d672dde342 Increase version number and update Changelog. release-0-3-3 2009-08-18 10:06:02 +02:00
Vic Lee
86f983962c Fix double free pointer crash in dsa_public_to_string
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-08-16 14:41:41 +02:00
Aris Adamantiadis
b0d6307d41 Fix channel_get_exit_status bug reported by VicLee
It would return -1 if the channel received the exit status
and the close message at same time.
2009-08-16 14:41:22 +02:00
Aris Adamantiadis
10920fc678 fix ssh_finalize which didn't clear the flag 2009-08-13 23:30:02 +02:00
Aris Adamantiadis
c87b247e01 Fix memory leak introduced by previous bugfix 2009-08-12 22:12:18 +02:00
Aris Adamantiadis
9abdc5ae2a Fixed channel_poll broken when delayed EOF recvd
Previous code returned SSH_EOF even if data was left in buffer
2009-08-10 23:37:53 +02:00
Aris Adamantiadis
e8e874909f Fixed stupid "can't parse known host key" bug
due to a dangling \n in the base64 ...
2009-08-10 22:53:27 +02:00
milo
74eff86a6b Fix possible memory corruption (#14)
Signed-off-by: Andreas Schneider <mail@cynapses.org>
2009-08-07 11:38:18 +02:00
Andreas Schneider
232aca8969 Update ChangeLog. release-0-3-2 2009-08-04 15:24:06 +02:00
Andreas Schneider
48deb0ca46 Update version number of the package. 2009-08-04 15:17:46 +02:00
Andreas Schneider
59889da5a5 Update version numbers. 2009-08-01 11:22:09 +02:00
Andreas Schneider
a958f6498b Cleanup the libssh.map file and order it alphabetically. 2009-07-30 12:25:27 +02:00
Andreas Schneider
3ec11b46e9 Add gitignore file to branch. 2009-07-29 22:52:21 +02:00
Andreas Schneider
c17ce2697b Add ssh_init to the map file. 2009-07-29 17:50:53 +02:00
Aris Adamantiadis
7fa1804cf1 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-07-29 17:50:04 +02:00
Andreas Schneider
ad86a378d9 moved try_publickey_from_file in priv.h
Had nothing to do in libssh.h. 100% sure nobody
used it since one of the structure declaration
was not public.
2009-07-29 17:40:17 +02:00
Andreas Schneider
ed660c29c3 Check for OpenSSH and implement sftp_symlink correct.
When OpenSSH's sftp-server was implemented, the order of the arguments
to the SSH_FXP_SYMLINK method was inadvertently reversed. Unfortunately,
the reversal was not noticed until the server was widely deployed.
Since fixing this to follow the specification would cause
incompatibility, the current order was retained.
2009-07-29 16:05:45 +02:00
Andreas Schneider
6f47401173 Fix SSH1 compilation. 2009-07-29 16:02:52 +02:00
Andreas Schneider
d247b86202 Update map file. 2009-07-25 12:34:49 +02:00
Andreas Schneider
a1c7dd99be Add sftp_readlink function. 2009-07-25 12:34:25 +02:00
Andreas Schneider
11a6ed907d Add sftp_symlink function. 2009-07-25 12:32:51 +02:00
Andreas Schneider
a8ce546f69 Fix a segfault if a NULL pointer is passed to ssh_disconnect(). 2009-07-23 09:07:49 +02:00
Andreas Schneider
6e56d1dfb2 Don't segfault if the session or the answer is NULL. 2009-07-23 09:07:36 +02:00
Andreas Schneider
b07ec7a3d1 Fix ssh_write_knownhost() which always returned -1.
fwrite() return the the number of items written not the size of the
buffer.
2009-07-23 09:07:26 +02:00
Andreas Schneider
09d4029ac1 Add compile flags and test for compiler options only if we use gcc. 2009-07-23 09:07:12 +02:00
Andreas Schneider
b62d0732d2 Only add additional warnings if we have a GNU compiler. 2009-07-23 09:07:00 +02:00
Andreas Schneider
90a6d431a7 Make the ssh_userauth_kbdint functions to get the prompts const.
They shouldn't be modified or free'd by a user.
2009-07-23 09:06:47 +02:00
Andreas Schneider
f7448eeb1c Fix sol8 + ss11 compile errors.
Thanks to tysonite@gmail.com.
2009-07-23 09:06:22 +02:00
Andreas Schneider
d411260a68 Fix build on windows, missing include. release-0-3-1 2009-07-14 10:52:18 +02:00
Aris Adamantiadis
f8f0663eb9 Fix doxygen to match SSH_SERVER_FILE_NOT_FOUND fix 2009-07-14 10:22:17 +02:00
Andreas Schneider
cedc635ed0 Add changelog entries for 0.3.1. 2009-07-14 09:51:49 +02:00
Andreas Schneider
ff819489b7 Set version to 0.3.1. 2009-07-14 09:51:36 +02:00
Aris Adamantiadis
37dc2a5279 Reflect the SSH_SERVER_NOT_KNOWN add-on in sample 2009-07-13 12:07:31 +02:00
Aris Adamantiadis
50ebbe636e 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-13 12:07:19 +02:00
Aris Adamantiadis
101bf21d41 Fixed Could not write as much data as expected msg
Bug caused by verifying the size of the buffer in the wrong place
2009-07-02 10:37:32 +02:00
Aris Adamantiadis
ae3bb42da5 Fixed memory leak in ssh_is_server_known() 2009-06-23 09:13:26 +02:00