Andreas Schneider
935e3b70ae
misc: Added working ssh_is_ipaddr for Windows.
...
(cherry picked from commit cd30a1d4b1 )
2011-02-13 12:30:52 +01:00
Andreas Schneider
1199ad8f47
misc: Fixed ssh_is_ipaddr on FreeBSD.
...
(cherry picked from commit d1ddec00d9 )
2011-02-13 12:30:17 +01:00
Bernhard R. Link
c12559f8f6
always set error when returning error in auth.c
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 637fc7ea59 )
2011-02-12 20:15:07 +01:00
Andreas Schneider
0d07dc5355
srv_sftp: Set error messages in sftp_get_client_message().
...
(cherry picked from commit 4d38b4c848 )
2011-02-12 19:22:01 +01:00
Andreas Schneider
4170258595
connect: Use ssh_is_ipaddr instead of regex.
...
(cherry picked from commit 768fbdd92e )
2011-02-12 19:22:01 +01:00
Andreas Schneider
dacfc41d21
misc: Added ssh_is_ipaddr() function.
...
(cherry picked from commit b313fa944a )
2011-02-12 19:22:01 +01:00
Bernhard R. Link
a785ba3c4d
use ssh_log instead of fprintf in ssh_config_parse_file
...
ssh_config_parse_file calls "fprintf(stderr," directly thus ignoring
a set log callback. Replacing the print with a call to ssh_log should
fix this.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 8d9d46ca66 )
2011-02-12 19:21:17 +01:00
Bernhard R. Link
92dbd4eca2
ssh_connect_host_nonblocking returns SSH_EINTR, not E_INTR, so update documentation
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 8e0e4d8fb3 )
2011-02-12 19:21:16 +01:00
Bernhard R. Link
a7144c5b6b
proper prototypes
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org >
(cherry picked from commit 8b51d29363 )
2011-02-12 19:21:16 +01:00
Andreas Schneider
5a8a2a56af
poll: Use WSAPoll() on Windows.
2011-02-09 00:36:16 +01:00
Andreas Schneider
d464b57fa5
Revert "poll: Remove obsolete win_poll functions."
...
This reverts commit c950ed3b4c .
2011-02-09 00:34:36 +01:00
Andreas Schneider
c950ed3b4c
poll: Remove obsolete win_poll functions.
...
Thanks for the hint Milo ;)
2011-02-09 00:13:47 +01:00
Andreas Schneider
93a2d79459
session: Added ssh_is_connected().
2011-02-06 10:50:14 +01:00
Andreas Schneider
03b387cf47
Revert "sftp: Added missing break's to server."
...
This reverts commit 131e3b968f .
2011-02-05 18:40:00 +01:00
Andreas Schneider
131e3b968f
sftp: Added missing break's to server.
2011-02-05 18:24:23 +01:00
Andreas Schneider
8f850585dd
session: Fixed possible uninitialized return of ret.
2011-02-05 15:23:19 +01:00
Andreas Schneider
4b07157fc6
getpass: Fixed a compiler warning.
2011-02-05 15:23:19 +01:00
milo
867944b939
Respect RFC when sending stderr data
...
http://tools.ietf.org/html/rfc4254#section-5.2
byte SSH_MSG_CHANNEL_EXTENDED_DATA
uint32 recipient channel
*uint32 data_type_code*
string data
2011-02-04 12:46:51 +01:00
Aris Adamantiadis
c1ecec7cda
SSH1: Update a few fix from 0.4.8-git
2011-01-26 22:50:05 +01:00
Aris Adamantiadis
00d68d63fa
Getpass: fixed loop + indentation
2011-01-26 21:49:58 +01:00
Aris Adamantiadis
5d87ca94a8
Getpass: Fix password clearing
2011-01-26 13:22:29 +01:00
Andreas Schneider
1e827a8e81
getpass: Fixed possible segfault if len is too small.
2011-01-24 17:13:35 +01:00
Andreas Schneider
50a119dd0a
misc: Added multiplatform ssh_getpass() fuction.
2011-01-24 13:55:05 +01:00
Aris Adamantiadis
80ef7d9304
Fix problem with ssh_connect w/ timeout &fd > 1024
...
Convert that code to ssh_poll
(cherry picked from commit b1a65dd25f )
2011-01-22 16:55:36 +01:00
Aris Adamantiadis
84df46f805
Fix use-after-free when socket is closed in a callback handler
2011-01-19 16:01:21 +01:00
Aris Adamantiadis
0e2bbdd25b
Fix doxygen warning
2011-01-16 23:42:19 +01:00
Aris Adamantiadis
6b52aaff1c
ssh_auth_password made nonblocking
2011-01-16 23:42:19 +01:00
Aris Adamantiadis
227764a803
Made ssh_userauth_none nonblocking
2011-01-16 23:42:19 +01:00
Aris Adamantiadis
624676b1cc
Made ask_userauth nonblocking
2011-01-16 23:42:19 +01:00
Aris Adamantiadis
b945cbca52
Fix double-connect testcase
2011-01-15 22:43:58 +01:00
Aris Adamantiadis
5b6f048197
Use termination functions for event polling
2011-01-12 23:04:43 +01:00
Aris Adamantiadis
7fbb926c0b
Fix getpwuid_r on opensolaris
2011-01-11 17:55:12 +01:00
Andreas Schneider
bb5f5281c0
build: Fixed build on Windows.
2011-01-11 11:07:17 +01:00
Aris Adamantiadis
9140242cbe
Non-blocking mode for ssh_connect
...
This looks ugly. I'll see if we need to revert or change that patch later.
2011-01-10 18:01:35 +01:00
Aris Adamantiadis
bcea8921ba
Change blocking parameter to a flag
2011-01-10 17:39:47 +01:00
Aris Adamantiadis
076dfb8294
Fix connection callbacks called at wrong time
2011-01-10 12:14:26 +01:00
Aris Adamantiadis
d631ce32ed
All error path consistent with ssh_packet_kexinit
2011-01-10 11:24:15 +01:00
Aris Adamantiadis
4439d5c774
Log errors with ssh_log
2011-01-10 11:23:49 +01:00
Aris Adamantiadis
ac6278feb7
Fix leak when key exchange fails.
2011-01-09 22:27:55 +01:00
Andreas Schneider
6b27966c9c
keys: Fixed memory leaks in session signing.
...
Found by cppcheck - http://test.libssh.org/cppcheck-analyzer/
2011-01-06 14:32:39 +01:00
Andreas Schneider
a016d356fa
dh: Fixed a memory leak in ssh_print_hexa.
...
Found by cppcheck - http://test.libssh.org/cppcheck-analyzer/
2011-01-06 14:25:35 +01:00
Andreas Schneider
82547867eb
options: Remove unsused getopt option.
...
Found by clang-analyzer http://test.libssh.org/clang-analyzer/
2011-01-06 10:15:01 +01:00
Andreas Schneider
13ece2a2f8
messages: Added missing NULL pointer checks.
...
Found by clang-analyzer http://test.libssh.org/clang-analyzer/
2011-01-06 10:04:12 +01:00
Aris Adamantiadis
fdffa42c02
Fix "SSH_KEXINIT received in wrong state" race
...
Setting the flag before doing any IO
2011-01-04 16:59:54 +01:00
Andreas Schneider
d679d5d7ef
poll: Ensure that the poll handle and ctx is zeroed.
2011-01-03 09:07:02 +01:00
Andreas Schneider
350838d1b5
messages: Fixed cast warnings on Windows.
2011-01-02 19:35:54 +01:00
Andreas Schneider
f23880ddee
base64: Added casts to GET macros to fix build warnings.
2011-01-02 19:35:54 +01:00
Andreas Schneider
be3e5c35cf
scp: Fixed a build warning on Windows.
2011-01-02 19:35:54 +01:00
Andreas Schneider
73c0cd050e
poll: Fixed a build warning on Windows.
2011-01-02 19:35:53 +01:00
Andreas Schneider
c54d6b7f8a
bind: Added include file for close function on Windows.
2011-01-02 19:35:53 +01:00