Commit Graph

492 Commits

Author SHA1 Message Date
Sara Golemon
cf8ca63ea0 Add ./configure option '--disable-gex-new' to fallback on
older diffie-hellman-group-exchange-sha1 syntax.

i.e. Use SSH_MSG_KEX_DH_GEX_REQUEST_OLD
rather then SSH_MSG_KEX_DH_GEX_REQUEST

See draft-ietf-secsh-dh-group-exchange section 7 for details.
2004-12-31 00:15:18 +00:00
Sara Golemon
d1b33840bf Note change to libssh2_session_methods() 2004-12-30 23:22:59 +00:00
Bert Vermeulen
eef99ca106 Changed libssh2_session_methods() to use method_type parameter 2004-12-30 22:19:53 +00:00
Sara Golemon
d86bcab2d2 Add error codes to session_method_pref() 2004-12-30 20:05:53 +00:00
Sara Golemon
2e02ad041a Add remote tcp/ip forwarding. 2004-12-29 19:26:28 +00:00
Sara Golemon
596b62c027 use actual random data with KEX_INIT cookie and packet padding 2004-12-27 20:38:44 +00:00
Sara Golemon
143c6bf97f Add DESTDIR support during 'make install' (Adam Go³êbiowski) 2004-12-26 21:54:19 +00:00
Sara Golemon
371f5de682 Bump for release 2004-12-24 23:23:09 +00:00
Sara Golemon
d2d8f8ad0b Added libssh2_banner_set() 2004-12-24 23:10:15 +00:00
Sara Golemon
a1e649b507 Fixed leak in sftp_symlink_ex(),
result for READLINK and REALPATH not freed unless there was an error.
2004-12-24 20:19:42 +00:00
Sara Golemon
99795a165e Plug leak in handle string provided by sftp_open 2004-12-24 03:57:10 +00:00
Sara Golemon
6f13a93be9 Fix crash in sftp_close_handle.
Don't free dir handle data when it's not a dir handle!
2004-12-24 03:49:25 +00:00
Sara Golemon
3f24fb005e Bump version for release and remove SFTP from TODO list 2004-12-23 15:15:44 +00:00
Sara Golemon
f11c657a10 Make libssh2_packet_read() use a static buffer to avoid unnecessary
alloc and free calls.

Since the cipher and mac layers aren't runtime extensible (yet)
and we know neither of these works in sizes greater than 32,
we can safely set aside a 64 byte block of data on the stack
for crypting and hashing.

This will make a big difference during quasi-non-blocking reads
where libssh2_packet_read() is polled repeatedly.
2004-12-23 00:42:20 +00:00
Sara Golemon
d4efdee802 Expose specific SFTP error codes to the calling program 2004-12-22 21:55:08 +00:00
Sara Golemon
aa8b8afe4f Update contact info with new domain 2004-12-22 20:56:06 +00:00
Sara Golemon
525a181037 Add SFTP support 2004-12-22 00:20:02 +00:00
Sara Golemon
9977cee99b Fix LIBSSH2_CHANNEL_CLOSE for the LAST TIME. 2004-12-20 22:42:02 +00:00
Sara Golemon
3a744117d6 Ooops, try that again... 2004-12-20 22:08:46 +00:00
Sara Golemon
d974137db9 Fixes: scp blocking modes, MacError abstract indirection
Additions: Channel Close callback
2004-12-20 21:52:35 +00:00
Sara Golemon
66f913e53a A broken decrypt (or false packet) could cause an unreasonably large
block of memory to be allocated leading to indeterminate results.

SSH-TRANS only requires implementations to handle about about 32k
compressed length per packet.  Allow 40k to be safe, but no more.
2004-12-18 07:14:51 +00:00
Sara Golemon
912e9ca713 Fixed polling error in libssh2_channel_read_ex() 2004-12-18 07:00:51 +00:00
Sara Golemon
6fdf9c9c06 Packet queueing mechanism allows data which immediately follows
open confirmation to get ignored.  Work around this by adding the channel
to the list before opening it.
2004-12-17 04:27:29 +00:00
Sara Golemon
26e7e66ecf Bump version for release 2004-12-17 01:33:17 +00:00
Sara Golemon
a0cd3ed3dc Fix return code in libssh2_channel_write_ex() 2004-12-16 23:04:11 +00:00
Sara Golemon
3614bdac21 Changed libssh2_session_disconnect_ex() to return an error code
on failed alloc.
2004-12-16 23:02:25 +00:00
Sara Golemon
14af2e3952 Correct comments for hostkey_hash 2004-12-16 22:58:02 +00:00
Sara Golemon
620a685af2 Add libssh2_session_last_error() 2004-12-16 22:44:28 +00:00
Sara Golemon
4ab2f2ab73 This initialization was based on an earlier concept 2004-12-10 14:44:08 +00:00
Sara Golemon
d2ca405d0f Added libssh2_session_abstract() 2004-12-09 23:27:14 +00:00
Sara Golemon
566bea77ea Add libssh2_session_method_pref() and libssh2_session_methods().
Specify methods to be used and retreive what methods were negotiated.
2004-12-09 22:10:07 +00:00
Sara Golemon
165837c085 Let the calling program know what methods we support 2004-12-09 19:09:03 +00:00
Sara Golemon
7035d475eb Added libssh2_session_callback_set() 2004-12-09 18:24:14 +00:00
Sara Golemon
794f01acc1 Add flush mechanism to the channel API 2004-12-08 18:54:25 +00:00
Sara Golemon
2b670d36ca Update changelog 2004-12-08 18:24:06 +00:00
Sara Golemon
7a153310f7 Change extended data ignore to allow merging extended data into the primary stream 2004-12-08 18:14:46 +00:00
Sara Golemon
013f64698c Add INSTALL, and remove configure.in from 'make dist' 2004-12-08 04:12:31 +00:00
Sara Golemon
54290ae77d Basic Instructions 2004-12-08 04:11:26 +00:00
Sara Golemon
433a94606a Bump version for release 2004-12-08 04:00:51 +00:00
Sara Golemon
82e9e2ba0f Add "ignore extended data" option to avoid having stderr data fill up
the receive window and leaving no room for stdio data.
2004-12-08 03:39:29 +00:00
Sara Golemon
2f41af6cdf Plug memory leaks in request_pty and channel->channel_type 2004-12-08 00:13:07 +00:00
Sara Golemon
7a5ffc8cee Initial revision 2004-12-07 21:17:20 +00:00