aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-08-09build: Set libssh version to 0.5.1.libssh-0.5.1Andreas Schneider3-4/+4
2011-08-09build: Updated ChangeLog.Andreas Schneider1-0/+15
2011-08-08Fixed ssh_scp_write so it works when doing recursive copyEinar Floystad Dorum1-11/+19
There where two issues with ssh_scp_write: 1) It did not write a status message after the last write and OpenSSH would then give up after the write finished. 2) OpenSSH would sometimes write a status message, after near ends write. If scp_write didn't handle it, and subsequent status message. The remote window would shrink to zero and ssh_channel_write would start returning 0. Signed-off-by: Einar Floystad Dorum <einarfd@mailthief.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 01c4b713dc57d16612c3b61e1857fb982623dd12)
2011-08-07client: Fix another source of endless wait.rofl0r2-13/+15
(cherry picked from commit 35686b4822c8a18d1d6715221be91ee67e563bad)
2011-08-07channels: Fix an endless loop in case of a channel_open error.rofl0r1-0/+4
(cherry picked from commit 7ccd9c31b33798824b27e4af095b52b9026a1f98)
2011-08-07session: Fix timeout handling.rofl0r7-59/+88
-2 now means to use the timeout specified in options. It wasn't used earlier and poll only knows -1 and 0 anyway for special meanings. (cherry picked from commit af85337f5ff052437fa5cf117f3d065488640660)
2011-08-07channels: Fix checking for fatal errors.rofl0r3-19/+31
We need this that we don't end up in and infinite poll loop. (cherry picked from commit 563fbe4de8ee090b40b50415a86f9a3da16f46b0) Conflicts: src/poll.c
2011-08-07channels: Fix ssh_channel_from_local()rofl0r1-14/+15
It only worked if the first channel in the list was equivalent to we were looking for. (cherry picked from commit 39f962c91eb4575a65edc7d984ce3f1a699097b8)
2011-08-07misc: Fix ssh_timeout_update().rofl0r1-5/+5
(cherry picked from commit c31cac93f3695b81383e65ecc8206fbda7f75d94)
2011-08-03examples: Fix permissions of the file we copy.Andreas Schneider1-1/+1
Thanks to Baptiste Marchand. (cherry picked from commit 15ebbad146d980a33cd14e9fe4d99b4a7f69a46b)
2011-08-03channels: Set the max packet size to 32768.Andreas Schneider1-3/+23
(cherry picked from commit 790b62bca59f46593711d17dd6c3058c7571a17c)
2011-07-13Workaround ssh_get_user_home_dir on LDAP usersAris Adamantiadis1-1/+2
2011-06-15build: Fix libssh_threads pkg-config.Andreas Schneider1-1/+1
(cherry picked from commit 269c9fed354f3a8adbc54fccba6287d5b1f166e3)
2011-06-14cmake: Added pkg-config support for libssh_treads.Andreas Schneider2-0/+7
(cherry picked from commit 583a7f933ab6491742035e217d4bff0b38a33b08)
2011-06-11packet: Don't (de)compress empty buffers.Andreas Schneider1-2/+6
This fixes bug #50. (cherry picked from commit fb0f1253519d5ff76fac1f0fc84077541ca93033)
2011-06-09Fix compilation without server and sftp modesAris Adamantiadis2-1/+26
(cherry picked from commit 809b3adeba94c1128c7a2ed5354ade305156b8b8)
2011-06-06build: Check for ntohll().Andreas Schneider3-2/+8
This function is available on AIX. (cherry picked from commit 640e3830f295baae596cc34ec2fc79fc08807d0f)
2011-06-06string: Added missing include.Andreas Schneider1-0/+1
(cherry picked from commit 3fa801a9295e1adbfadcecfd193f3a84d307e64a)
2011-06-06string: Added missing errno.Andreas Schneider1-2/+3
(cherry picked from commit d536cc4f399eabb0ca3dec5bf8b2bf2dc168bf60)
2011-06-06Check for NULL pointers in string.cmilo1-3/+14
(cherry picked from commit 4230509e805f546091ca2e4f8aa13c22f6efc7a8)
2011-06-01cmake: Fix static .lib overwriting on Windows.Andreas Schneider2-4/+28
(cherry picked from commit 1880ef54d2c97c60ce9a29676f0214814c20d57b)
2011-05-30cmake: Prepare for release.release-0-5-0Andreas Schneider2-3/+5
2011-05-28session: Fix return code of ssh_blocking_flush().Andreas Schneider1-2/+2
(cherry picked from commit 3c21281bf07bceb61a321e11348cd54e35b5e869)
2011-05-27remove "0.5.0 is dev" in the docAris Adamantiadis1-2/+2
(cherry picked from commit 3bc46c3bf0f73237aaa70088d9a691a095c73558)
2011-05-27Forgot a cast to remove warningsAris Adamantiadis1-2/+2
(cherry picked from commit ac167c90775b757adefb9f3ec6b3cfbcdef78c1a)
2011-05-27Fix bug #5, channel_read_nonblocking that blocksAris Adamantiadis1-1/+1
2011-05-27Fix memory leak when compression is usedMark Riordan1-1/+17
Signed-off-by: Mark Riordan <mriordan@ipswitch.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit dcea8db6b221ab812c66bfabd3c0a00aada78c96)
2011-05-26sftp: Reset eof on seek operations.Andreas Schneider1-0/+3
This fixes bug #48. (cherry picked from commit c483418b8210bc47a765f6b0e0dc99aec63e80fd)
2011-05-26misc: Fix compilation on Windows.Andreas Schneider1-4/+5
(cherry picked from commit ba03388031530fcf49b2c37ce0da801254e5075f)
2011-05-25cmake: Fix detection of clock_gettime.Andreas Schneider3-14/+16
2011-05-25Replace clock_gettime with gettimeofday when missingAris Adamantiadis1-1/+10
(cherry picked from commit 65282841e2a3e8af634759b6f7b39581a885d9d5)
2011-05-25Introduced ssh_timeout_elapsed functionsAris Adamantiadis7-16/+162
Functions to mesure elapsed time before and after a serie of calls. Introduces a dependancy to clock_gettime() and librt, hope this doesn't break anything. Porting to gettimeofday() should not be too hard. (cherry picked from commit 59f7647cd97c62ab7a26725e5a166dcb54b27bc6)
2011-05-19Revert "Use BIO* in _privatekey_from_file [Oliver Stöneberg]"Andreas Schneider1-0/+4
This reverts commit da8356b477fc94a18b8098f021a25d7e24ee79de.
2011-05-17keyfiles: Move FILE* into HAVE_LIBGCRYPT code.Oliver Stöneberg1-9/+0
(cherry picked from commit c7c563eb8ad01ab5750b5ea4e72031ebd298651c)
2011-05-17keyfiles: Use BIO* in _privatekey_from_file().Oliver Stöneberg1-4/+13
(cherry picked from commit 82df5dc2083a6f7234d1545bd671ee1b5b4680b6)
2011-05-17Use BIO* in _privatekey_from_file [Oliver Stöneberg]Oliver Stöneberg1-4/+0
_privatekey_from_file: moved FILE* into HAVE_LIBGCRYPT code / added missing #ifdef's to default case of switch [Oliver Stöneberg]
2011-05-17socket: Fixed use-after-free.Oliver Stöneberg1-0/+6
When s->callbacks->exception() was called in ssh_socket_pollcallback() we had a use after free bug. (cherry picked from commit 986676378943353cdcf156493812737dc91befdd)
2011-05-17keyfiles: Fixed compilation without defines.Oliver Stöneberg1-0/+4
This fixes cppcheck issues. (cherry picked from commit 7f0761885cb21c2013f7b0fc562187a1909a2048)
2011-05-17tests: Fixed some cppcheck warnings.Oliver Stöneberg2-2/+4
(cherry picked from commit e3311d03dba7ae281597cf5de235bcefda44457c)
2011-05-17examples: Use the right cleanup functions.Oliver Stöneberg2-6/+9
(cherry picked from commit 525324b2f9ee2bd9a39ba88267e76c88e7f58bd1)
2011-05-17channel: Fixed potential use-after-free in ssh_channel_get_exit_status().Oliver Stöneberg1-1/+1
If ssh_channel_get_exit_status() is called more than once and the connection closed. (cherry picked from commit 4e153aed8a943b636135b424e052fc69392ad87c)
2011-05-17connect: Set timeout on connectOliver Stöneberg3-8/+9
This also fixes error handling in ssh_poll_ctx_dopoll() and ssh_handle_packets(), so it won't loop forever on an actual timeout. (cherry picked from commit 671a9827394714cfc90d75c8a8fb2ccd86f80abf)
2011-05-17poll: Removed WSAPoll() support.Oliver Stöneberg1-43/+0
It was causing too many issues and the poll emulation is quite stable. (cherry picked from commit f4f4ce37f058748489b195e976b577465864e914)
2011-05-17doc: Small update to auth.c documentation.Oliver Stöneberg1-4/+8
(cherry picked from commit 12b61a6266bd9f5d8d7cb1f99a855dcdd255681e)
2011-05-15channel: Improve the request signal documentation.Andreas Schneider1-1/+17
(cherry picked from commit 32cd45612bd89714f5c597f6d9ac8c51510e3df4)
2011-05-02Updated privatekey_from_file() to use BIO* as well [Oliver Stöneberg]Oliver Stöneberg1-10/+28
2011-05-02Use BIO* in _privatekey_from_file [Oliver Stöneberg]Oliver Stöneberg1-12/+25
_privatekey_from_file: moved FILE* into HAVE_LIBGCRYPT code / added missing #ifdef's to default case of switch [Oliver Stöneberg]
2011-05-02Delay the check for kbdint->answers in kbdint_send()milo1-3/+2
(cherry picked from commit 32ba5204b77906efa5613863c34fa916e7a83217)
2011-05-02Fix segfault when ssh_userauth_kbdint_setanswer() has not been calledmilo1-0/+5
(cherry picked from commit b6e712e934a45981b3a12cb67b48df006402a4d7)
2011-05-02[socket] fix a segfault at disconnectmilo1-4/+15
(cherry picked from commit 7d2064c2894fc298cc8923cae657200900b032e5)