rofl0r
61a97ccede
session: Fix timeout handling.
...
-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 af85337f5f )
2011-08-07 12:47:09 +02:00
rofl0r
a1ef27c0b8
channels: Fix checking for fatal errors.
...
We need this that we don't end up in and infinite poll loop.
(cherry picked from commit 563fbe4de8 )
Conflicts:
src/poll.c
2011-08-07 12:46:47 +02:00
rofl0r
fb8f2cd11b
channels: Fix ssh_channel_from_local()
...
It only worked if the first channel in the list was equivalent to we
were looking for.
(cherry picked from commit 39f962c91e )
2011-08-07 12:46:06 +02:00
rofl0r
1d8a9ddf84
misc: Fix ssh_timeout_update().
...
(cherry picked from commit c31cac93f3 )
2011-08-07 12:45:54 +02:00
Andreas Schneider
bea66b6476
examples: Fix permissions of the file we copy.
...
Thanks to Baptiste Marchand.
(cherry picked from commit 15ebbad146 )
2011-08-03 22:23:51 +02:00
Andreas Schneider
a8111934d5
channels: Set the max packet size to 32768.
...
(cherry picked from commit 790b62bca5 )
2011-08-03 22:20:52 +02:00
Aris Adamantiadis
f201e983b0
Workaround ssh_get_user_home_dir on LDAP users
2011-07-13 12:04:04 +02:00
Andreas Schneider
81332e1e27
build: Fix libssh_threads pkg-config.
...
(cherry picked from commit 269c9fed354f3a8adbc54fccba6287d5b1f166e3)
2011-06-15 18:26:33 +02:00
Andreas Schneider
ea84f50603
cmake: Added pkg-config support for libssh_treads.
...
(cherry picked from commit 583a7f933a )
2011-06-14 13:47:51 +02:00
Andreas Schneider
ccc94e7ab6
packet: Don't (de)compress empty buffers.
...
This fixes bug #50 .
(cherry picked from commit fb0f125351 )
2011-06-11 13:16:21 +02:00
Aris Adamantiadis
4c05be0c1b
Fix compilation without server and sftp modes
...
(cherry picked from commit 809b3adeba )
2011-06-09 12:16:07 +02:00
Andreas Schneider
a493a90c59
build: Check for ntohll().
...
This function is available on AIX.
(cherry picked from commit 640e3830f2 )
2011-06-06 18:57:50 +02:00
Andreas Schneider
4a18df8574
string: Added missing include.
...
(cherry picked from commit 3fa801a929 )
2011-06-06 18:57:11 +02:00
Andreas Schneider
cfa74c1dc6
string: Added missing errno.
...
(cherry picked from commit d536cc4f39 )
2011-06-06 18:51:12 +02:00
milo
de706de8c3
Check for NULL pointers in string.c
...
(cherry picked from commit 4230509e80 )
2011-06-06 18:50:11 +02:00
Andreas Schneider
71fa0dc6bb
cmake: Fix static .lib overwriting on Windows.
...
(cherry picked from commit 1880ef54d2 )
2011-06-01 14:53:29 +02:00
Andreas Schneider
914a2d8e41
cmake: Prepare for release.
release-0-5-0
2011-05-30 12:36:54 +02:00
Andreas Schneider
956b64d348
session: Fix return code of ssh_blocking_flush().
...
(cherry picked from commit 3c21281bf0 )
2011-05-28 18:35:21 +02:00
Aris Adamantiadis
91489cd378
remove "0.5.0 is dev" in the doc
...
(cherry picked from commit 3bc46c3bf0 )
2011-05-27 14:20:02 +02:00
Aris Adamantiadis
615bc3b8f7
Forgot a cast to remove warnings
...
(cherry picked from commit ac167c9077 )
2011-05-27 14:19:54 +02:00
Aris Adamantiadis
5b645419fd
Fix bug #5 , channel_read_nonblocking that blocks
2011-05-27 14:19:42 +02:00
Mark Riordan
c436e07022
Fix memory leak when compression is used
...
Signed-off-by: Mark Riordan <mriordan@ipswitch.com >
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit dcea8db6b2 )
2011-05-27 11:47:26 +02:00
Andreas Schneider
188fb37801
sftp: Reset eof on seek operations.
...
This fixes bug #48 .
(cherry picked from commit c483418b82 )
2011-05-26 11:27:35 +02:00
Andreas Schneider
44fed3eb9b
misc: Fix compilation on Windows.
...
(cherry picked from commit ba03388031 )
2011-05-26 11:20:25 +02:00
Andreas Schneider
36abd82a7e
cmake: Fix detection of clock_gettime.
2011-05-25 22:13:28 +02:00
Aris Adamantiadis
fd6d0b6897
Replace clock_gettime with gettimeofday when missing
...
(cherry picked from commit 65282841e2 )
2011-05-25 22:00:00 +02:00
Aris Adamantiadis
09b0018b93
Introduced ssh_timeout_elapsed functions
...
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 59f7647cd9 )
2011-05-25 21:59:51 +02:00
Andreas Schneider
2624e603d4
Revert "Use BIO* in _privatekey_from_file [Oliver Stöneberg]"
...
This reverts commit da8356b477 .
2011-05-19 19:47:29 +02:00
Oliver Stöneberg
fd61eda16d
keyfiles: Move FILE* into HAVE_LIBGCRYPT code.
...
(cherry picked from commit c7c563eb8ad01ab5750b5ea4e72031ebd298651c)
2011-05-17 21:00:02 +02:00
Oliver Stöneberg
a6dda5fefd
keyfiles: Use BIO* in _privatekey_from_file().
...
(cherry picked from commit 82df5dc2083a6f7234d1545bd671ee1b5b4680b6)
2011-05-17 20:59:55 +02:00
Oliver Stöneberg
da8356b477
Use BIO* in _privatekey_from_file [Oliver Stöneberg]
...
_privatekey_from_file: moved FILE* into HAVE_LIBGCRYPT code / added missing #ifdef's to default case of switch [Oliver Stöneberg]
2011-05-17 20:57:58 +02:00
Oliver Stöneberg
e5fb20c17b
socket: Fixed use-after-free.
...
When s->callbacks->exception() was called in ssh_socket_pollcallback()
we had a use after free bug.
(cherry picked from commit 9866763789 )
2011-05-17 20:57:38 +02:00
Oliver Stöneberg
c472bd7437
keyfiles: Fixed compilation without defines.
...
This fixes cppcheck issues.
(cherry picked from commit 7f0761885c )
2011-05-17 20:57:38 +02:00
Oliver Stöneberg
8796756ae5
tests: Fixed some cppcheck warnings.
...
(cherry picked from commit e3311d03db )
2011-05-17 20:57:38 +02:00
Oliver Stöneberg
9c8f285a98
examples: Use the right cleanup functions.
...
(cherry picked from commit 525324b2f9 )
2011-05-17 20:57:38 +02:00
Oliver Stöneberg
8154e24027
channel: Fixed potential use-after-free in ssh_channel_get_exit_status().
...
If ssh_channel_get_exit_status() is called more than once and the
connection closed.
(cherry picked from commit 4e153aed8a )
2011-05-17 20:57:38 +02:00
Oliver Stöneberg
629cfbccc4
connect: Set timeout on connect
...
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 671a982739 )
2011-05-17 20:57:38 +02:00
Oliver Stöneberg
c5990791db
poll: Removed WSAPoll() support.
...
It was causing too many issues and the poll emulation is quite stable.
(cherry picked from commit f4f4ce37f0 )
2011-05-17 20:57:38 +02:00
Oliver Stöneberg
16241938af
doc: Small update to auth.c documentation.
...
(cherry picked from commit 12b61a6266 )
2011-05-17 20:57:38 +02:00
Andreas Schneider
6a8cb38dd3
channel: Improve the request signal documentation.
...
(cherry picked from commit 32cd45612b )
2011-05-15 13:44:11 +02:00
Oliver Stöneberg
bac2227ee2
Updated privatekey_from_file() to use BIO* as well [Oliver Stöneberg]
2011-05-02 19:46:54 +02:00
Oliver Stöneberg
dcb50cc0c8
Use BIO* in _privatekey_from_file [Oliver Stöneberg]
...
_privatekey_from_file: moved FILE* into HAVE_LIBGCRYPT code / added missing #ifdef's to default case of switch [Oliver Stöneberg]
2011-05-02 19:17:38 +02:00
milo
f503c4a3e1
Delay the check for kbdint->answers in kbdint_send()
...
(cherry picked from commit 32ba5204b7 )
2011-05-02 18:04:56 +02:00
milo
a56c925da9
Fix segfault when ssh_userauth_kbdint_setanswer() has not been called
...
(cherry picked from commit b6e712e934 )
2011-05-02 17:47:00 +02:00
milo
833cc00014
[socket] fix a segfault at disconnect
...
(cherry picked from commit 7d2064c289 )
2011-05-02 17:41:51 +02:00
milo
09e8cf33d7
[messages] don't queue messages if callback present
...
(cherry picked from commit 1979c14aac )
2011-05-02 17:40:05 +02:00
milo
a03bb2fbf7
[poll] avoid infinite loop in ssh_poll_ctx_free()
...
(cherry picked from commit 8092541603 )
2011-05-02 17:39:28 +02:00
milo
bb784ec6be
[channels] Added ssh_channel_window_size() and avoided reentrancy in channel_write_common()
...
(cherry picked from commit 7ba0938846 )
2011-05-02 17:35:34 +02:00
Andreas Schneider
996c00c81c
keyfiles: Fixed the build.
2011-05-01 21:04:55 +02:00
Oliver Stöneberg
30bdca07e9
init: Some initialization fixes.
...
- 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)
2011-05-01 19:43:57 +02:00