rofl0r
7ccd9c31b3
channels: Fix an endless loop in case of a channel_open error.
2011-08-06 11:12:02 +02:00
rofl0r
af85337f5f
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.
2011-08-06 11:12:02 +02:00
rofl0r
563fbe4de8
channels: Fix checking for fatal errors.
...
We need this that we don't end up in and infinite poll loop.
2011-08-06 11:11:12 +02:00
rofl0r
39f962c91e
channels: Fix ssh_channel_from_local()
...
It only worked if the first channel in the list was equivalent to we
were looking for.
2011-08-06 11:08:55 +02:00
rofl0r
c31cac93f3
misc: Fix ssh_timeout_update().
2011-08-06 11:08:38 +02:00
Andreas Schneider
790b62bca5
channels: Set the max packet size to 32768.
2011-08-03 20:49:57 +02:00
Aris Adamantiadis
0943ce3a4a
Fixed build on openssl
2011-07-20 09:56:43 +02:00
Aris Adamantiadis
da954c2c5e
Fixes the ssh_log issue on ssh_bind handles.
2011-07-19 22:16:28 +02:00
Aris Adamantiadis
54fb43358c
Workaround ssh_get_user_home_dir on LDAP users
2011-07-13 12:04:46 +02:00
Andreas Schneider
c75581fb93
pki: Make ssh_key_is_private() a public function.
2011-06-15 18:27:05 +02:00
Andreas Schneider
27cedaa0b6
pki: Make ssh_key_is_public() a public function.
2011-06-15 18:27:05 +02:00
Andreas Schneider
2be90be740
known_hosts: Added a log message for key type mismatch.
2011-06-15 18:27:05 +02:00
Aris Adamantiadis
bcec7eeddc
[crypto] fix pubkey authentication with ecdh
2011-06-14 23:13:20 +02:00
Aris Adamantiadis
ce03d26e03
Fix memory leak with session_id
2011-06-14 22:57:43 +02:00
Aris Adamantiadis
db2d0ebc44
Fix build with missing openssl/ecdh.h
2011-06-14 22:57:43 +02:00
Aris Adamantiadis
2653b31af0
[crypto] Removed ugly ifdefs on gcrypt/libcrypto
2011-06-13 14:47:17 +02:00
Aris Adamantiadis
a3c28f2558
Fix memory leak
2011-06-13 14:06:30 +02:00
Aris Adamantiadis
c5a998f47a
[crypto] initial support for ecdh-sha2-nistp256
...
Works with openssl
Still requires work for libgcrypt and other modes
2011-06-13 13:46:34 +02:00
Aris Adamantiadis
3b72bf0880
Moved DH specific code to dh.h
2011-06-12 20:55:58 +02:00
Aris Adamantiadis
113de13543
Test for ecdh and dh-group1
2011-06-12 20:54:33 +02:00
Andreas Schneider
fb0f125351
packet: Don't (de)compress empty buffers.
...
This fixes bug #50 .
2011-06-11 13:15:46 +02:00
Andreas Schneider
981190f8d3
pki: Add ssh_key_type_to_char() and ssh_key_type_from_name().
2011-06-11 13:04:22 +02:00
Aris Adamantiadis
7ff69d9c48
packet: Abort session on fatal errors on packets
2011-06-09 23:27:41 +02:00
Andreas Schneider
640e3830f2
build: Check for ntohll().
...
This function is available on AIX.
2011-06-06 18:56:30 +02:00
Andreas Schneider
3fa801a929
string: Added missing include.
2011-06-06 18:56:15 +02:00
Andreas Schneider
d536cc4f39
string: Added missing errno.
2011-06-06 18:50:39 +02:00
Andreas Schneider
1880ef54d2
cmake: Fix static .lib overwriting on Windows.
2011-06-01 14:52:27 +02:00
Andreas Schneider
3c21281bf0
session: Fix return code of ssh_blocking_flush().
2011-05-28 13:27:14 +02:00
Aris Adamantiadis
ac167c9077
Forgot a cast to remove warnings
2011-05-27 13:36:55 +02:00
Aris Adamantiadis
17454caf64
Fix bug #5 , channel_read_nonblocking that blocks
2011-05-27 13:13:02 +02:00
Mark Riordan
dcea8db6b2
Fix memory leak when compression is used
...
Signed-off-by: Mark Riordan <mriordan@ipswitch.com>
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2011-05-27 11:45:45 +02:00
Aris Adamantiadis
809b3adeba
Fix compilation without server and sftp modes
2011-05-26 21:56:42 +02:00
Aris Adamantiadis
34b05fd2dc
Fix memory leaks in pki and testcase
2011-05-26 21:33:36 +02:00
Andreas Schneider
c483418b82
sftp: Reset eof on seek operations.
...
This fixes bug #48 .
2011-05-26 11:22:11 +02:00
Andreas Schneider
ba03388031
misc: Fix compilation on Windows.
2011-05-26 11:20:04 +02:00
Andreas Schneider
07fb895fe9
cmake: Fix detection of clock_gettime.
2011-05-25 22:08:31 +02:00
Aris Adamantiadis
65282841e2
Replace clock_gettime with gettimeofday when missing
2011-05-25 21:27:48 +02:00
Aris Adamantiadis
59f7647cd9
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.
2011-05-24 23:26:18 +02:00
Aris Adamantiadis
79434649d0
Fix "connecting to closed port" on MacosX
2011-05-20 15:13:45 +02:00
Aris Adamantiadis
a053d819a3
Fixed warnings on MacosX with Xcode4
2011-05-20 14:31:13 +02:00
Aris Adamantiadis
837896e72d
scp: Fixed documentation bugs. bug #8
2011-05-20 13:42:24 +02:00
Oliver Stöneberg
12b61a6266
doc: Small update to auth.c documentation.
2011-05-17 14:22:11 +02:00
Oliver Stöneberg
f4f4ce37f0
poll: Removed WSAPoll() support.
...
It was causing too many issues and the poll emulation is quite stable.
2011-05-17 14:21:17 +02:00
Oliver Stöneberg
671a982739
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.
2011-05-17 14:21:04 +02:00
Oliver Stöneberg
4e153aed8a
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.
2011-05-17 14:20:56 +02:00
Oliver Stöneberg
7f0761885c
keyfiles: Fixed compilation without defines.
...
This fixes cppcheck issues.
2011-05-17 14:20:09 +02:00
Oliver Stöneberg
9866763789
socket: Fixed use-after-free.
...
When s->callbacks->exception() was called in ssh_socket_pollcallback()
we had a use after free bug.
2011-05-17 14:19:51 +02:00
Andreas Schneider
32cd45612b
channel: Improve the request signal documentation.
2011-05-15 13:42:38 +02:00
Andreas Schneider
d4838d4dc8
messages: Try to fix the build.
2011-05-03 10:55:14 +02:00
Oliver Stöneberg
daf1c3e0a8
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]
(cherry picked from commit dcb50cc0c833e73eb6025746f05c49b3c5dbc03b)
2011-05-02 19:19:41 +02:00