summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* packet: Don't (de)compress empty buffers.Andreas Schneider2011-06-111-2/+6
| | | | | This fixes bug #50. (cherry picked from commit fb0f1253519d5ff76fac1f0fc84077541ca93033)
* Fix compilation without server and sftp modesAris Adamantiadis2011-06-092-1/+26
| | | | (cherry picked from commit 809b3adeba94c1128c7a2ed5354ade305156b8b8)
* build: Check for ntohll().Andreas Schneider2011-06-063-2/+8
| | | | | This function is available on AIX. (cherry picked from commit 640e3830f295baae596cc34ec2fc79fc08807d0f)
* string: Added missing include.Andreas Schneider2011-06-061-0/+1
| | | | (cherry picked from commit 3fa801a9295e1adbfadcecfd193f3a84d307e64a)
* string: Added missing errno.Andreas Schneider2011-06-061-2/+3
| | | | (cherry picked from commit d536cc4f399eabb0ca3dec5bf8b2bf2dc168bf60)
* Check for NULL pointers in string.cmilo2011-06-061-3/+14
| | | | (cherry picked from commit 4230509e805f546091ca2e4f8aa13c22f6efc7a8)
* cmake: Fix static .lib overwriting on Windows.Andreas Schneider2011-06-012-4/+28
| | | | (cherry picked from commit 1880ef54d2c97c60ce9a29676f0214814c20d57b)
* cmake: Prepare for release.release-0-5-0Andreas Schneider2011-05-302-3/+5
|
* session: Fix return code of ssh_blocking_flush().Andreas Schneider2011-05-281-2/+2
| | | | (cherry picked from commit 3c21281bf07bceb61a321e11348cd54e35b5e869)
* remove "0.5.0 is dev" in the docAris Adamantiadis2011-05-271-2/+2
| | | | (cherry picked from commit 3bc46c3bf0f73237aaa70088d9a691a095c73558)
* Forgot a cast to remove warningsAris Adamantiadis2011-05-271-2/+2
| | | | (cherry picked from commit ac167c90775b757adefb9f3ec6b3cfbcdef78c1a)
* Fix bug #5, channel_read_nonblocking that blocksAris Adamantiadis2011-05-271-1/+1
|
* Fix memory leak when compression is usedMark Riordan2011-05-271-1/+17
| | | | | | Signed-off-by: Mark Riordan <mriordan@ipswitch.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit dcea8db6b221ab812c66bfabd3c0a00aada78c96)
* sftp: Reset eof on seek operations.Andreas Schneider2011-05-261-0/+3
| | | | | This fixes bug #48. (cherry picked from commit c483418b8210bc47a765f6b0e0dc99aec63e80fd)
* misc: Fix compilation on Windows.Andreas Schneider2011-05-261-4/+5
| | | | (cherry picked from commit ba03388031530fcf49b2c37ce0da801254e5075f)
* cmake: Fix detection of clock_gettime.Andreas Schneider2011-05-253-14/+16
|
* Replace clock_gettime with gettimeofday when missingAris Adamantiadis2011-05-251-1/+10
| | | | (cherry picked from commit 65282841e2a3e8af634759b6f7b39581a885d9d5)
* Introduced ssh_timeout_elapsed functionsAris Adamantiadis2011-05-257-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)
* Revert "Use BIO* in _privatekey_from_file [Oliver Stöneberg]"Andreas Schneider2011-05-191-0/+4
| | | | This reverts commit da8356b477fc94a18b8098f021a25d7e24ee79de.
* keyfiles: Move FILE* into HAVE_LIBGCRYPT code.Oliver Stöneberg2011-05-171-9/+0
| | | | (cherry picked from commit c7c563eb8ad01ab5750b5ea4e72031ebd298651c)
* keyfiles: Use BIO* in _privatekey_from_file().Oliver Stöneberg2011-05-171-4/+13
| | | | (cherry picked from commit 82df5dc2083a6f7234d1545bd671ee1b5b4680b6)
* Use BIO* in _privatekey_from_file [Oliver Stöneberg]Oliver Stöneberg2011-05-171-4/+0
| | | | _privatekey_from_file: moved FILE* into HAVE_LIBGCRYPT code / added missing #ifdef's to default case of switch [Oliver Stöneberg]
* socket: Fixed use-after-free.Oliver Stöneberg2011-05-171-0/+6
| | | | | | When s->callbacks->exception() was called in ssh_socket_pollcallback() we had a use after free bug. (cherry picked from commit 986676378943353cdcf156493812737dc91befdd)
* keyfiles: Fixed compilation without defines.Oliver Stöneberg2011-05-171-0/+4
| | | | | This fixes cppcheck issues. (cherry picked from commit 7f0761885cb21c2013f7b0fc562187a1909a2048)
* tests: Fixed some cppcheck warnings.Oliver Stöneberg2011-05-172-2/+4
| | | | (cherry picked from commit e3311d03dba7ae281597cf5de235bcefda44457c)
* examples: Use the right cleanup functions.Oliver Stöneberg2011-05-172-6/+9
| | | | (cherry picked from commit 525324b2f9ee2bd9a39ba88267e76c88e7f58bd1)
* channel: Fixed potential use-after-free in ssh_channel_get_exit_status().Oliver Stöneberg2011-05-171-1/+1
| | | | | | If ssh_channel_get_exit_status() is called more than once and the connection closed. (cherry picked from commit 4e153aed8a943b636135b424e052fc69392ad87c)
* connect: Set timeout on connectOliver Stöneberg2011-05-173-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)
* poll: Removed WSAPoll() support.Oliver Stöneberg2011-05-171-43/+0
| | | | | It was causing too many issues and the poll emulation is quite stable. (cherry picked from commit f4f4ce37f058748489b195e976b577465864e914)
* doc: Small update to auth.c documentation.Oliver Stöneberg2011-05-171-4/+8
| | | | (cherry picked from commit 12b61a6266bd9f5d8d7cb1f99a855dcdd255681e)
* channel: Improve the request signal documentation.Andreas Schneider2011-05-151-1/+17
| | | | (cherry picked from commit 32cd45612bd89714f5c597f6d9ac8c51510e3df4)
* Updated privatekey_from_file() to use BIO* as well [Oliver Stöneberg]Oliver Stöneberg2011-05-021-10/+28
|
* Use BIO* in _privatekey_from_file [Oliver Stöneberg]Oliver Stöneberg2011-05-021-12/+25
| | | | _privatekey_from_file: moved FILE* into HAVE_LIBGCRYPT code / added missing #ifdef's to default case of switch [Oliver Stöneberg]
* Delay the check for kbdint->answers in kbdint_send()milo2011-05-021-3/+2
| | | | (cherry picked from commit 32ba5204b77906efa5613863c34fa916e7a83217)
* Fix segfault when ssh_userauth_kbdint_setanswer() has not been calledmilo2011-05-021-0/+5
| | | | (cherry picked from commit b6e712e934a45981b3a12cb67b48df006402a4d7)
* [socket] fix a segfault at disconnectmilo2011-05-021-4/+15
| | | | (cherry picked from commit 7d2064c2894fc298cc8923cae657200900b032e5)
* [messages] don't queue messages if callback presentmilo2011-05-021-5/+34
| | | | (cherry picked from commit 1979c14aac47137e7af782e7e49ec43f910b2b00)
* [poll] avoid infinite loop in ssh_poll_ctx_free()milo2011-05-021-2/+7
| | | | (cherry picked from commit 809254160308289fdcddf8a5eabad0c85a35bce7)
* [channels] Added ssh_channel_window_size() and avoided reentrancy in ↵milo2011-05-022-8/+10
| | | | | | channel_write_common() (cherry picked from commit 7ba09388464f0437da2833b81e268744b20a68fe)
* keyfiles: Fixed the build.Andreas Schneider2011-05-011-0/+2
|
* init: Some initialization fixes.Oliver Stöneberg2011-05-014-19/+29
| | | | | | | | - Check result of ssh_init() in privatekey_from_base64() - Moved code from ssh_finalize() to appropriate subroutines - Only initialize sockets once (caused mismatch of WSAStartup() and WSACleanup() calls and potential usage of bsd_poll when win_poll should be used)
* socket: Fixed poll input event.Oliver Stöneberg2011-05-011-1/+1
| | | | (cherry picked from commit 040a543f57107efc267b7b5b7352293dcb7d87d5)
* examples: Removed unnecessary \n from ssh_log() calls in samplessh.Oliver Stöneberg2011-05-011-10/+10
| | | | (cherry picked from commit a73459171bb79cc402ff60621c06c75e9a7fb4d4)
* examples: Fixed memory leak in samplessh when using commands.Oliver Stöneberg2011-05-011-1/+4
| | | | (cherry picked from commit c3849a3cfd4bb298c255c41bf2cbc5592e893d17)
* poll: Fix poll input events.Andreas Schneider2011-04-153-3/+4
| | | | bug#38
* examples: Fix some memory leaks.Andreas Schneider2011-04-153-2/+16
| | | | (cherry picked from commit 644145a88caf0ff9cbfa16902c775b922578357b)
* Fix assertion with Visual Studio because of %zu.Andreas Schneider2011-04-154-6/+6
| | | | (cherry picked from commit ef658b4bef82670b6064078df355d6b6cf5ac999)
* scp: Fix potential infinite loop in ssh_scp_closeMark Riordan2011-04-141-1/+1
| | | | | | Signed-off-by: Mark Riordan <mriordan@ipswitch.com> Signed-off-by: Andreas Schneider <asn@cryptomilk.org> (cherry picked from commit 5939cfe78af88710fb88f93ee435b78b93022f4e)
* examples: Call correct functions on exit.Andreas Schneider2011-04-142-1/+9
| | | | (cherry picked from commit 3e7d4534cec141141e2b2cc5beedcc171cd99360)
* Fixed missing CRYPTO_cleanup_all_ex_data() in ssh_finalizeAris Adamantiadis2011-04-141-1/+5
| | | | (cherry picked from commit 934252d6ca2b8d03d7ff7005443a416abae57b25)