Daniel Stenberg
ab26693769
kill warnings
2006-11-19 13:26:19 +00:00
James Housley
1baaa31792
Patch from Daniel Stenberg
...
1 - #include <inttypes.h> and uses uint32_t (this is not very portable and
need attention as I mentioned in my separate mail)
2 - changes libssh2_blocking_read() to return ssize_t and all code that uses
this function explicitly checks its return code (better).
3 - I fixed a bunch of compiler warnings where functions got called with
unsigned char * when they expect char *. I strongly suggest we patch away
all warnings - now.
2006-11-14 01:30:39 +00:00
James Housley
1e889ca947
As pointed out, feof() will always fail after a rewind
2006-11-13 15:10:38 +00:00
James Housley
bebd14a011
Bug: [ 1592645 ] Public key can not be readed from file
...
While posting a public key file to a remote server via cut-n-paste it
is possible that the key won't have the proper ending. It might not have
the standard carriage return or line feed. It might even have extra
spaces. This patch is based on the originators original patch, but is
more extensive. If reading the file ends in EOF, remove that character.
Then if there are spaces at the end of the file remove them also.
This does not fix the posibility of the same error in a multi-key file, but
it is a start.
2006-11-13 11:33:03 +00:00
James Housley
7063d24724
/* RFC4253 section 6.1 Maximum Packet Length says:
...
*
* "All implementations MUST be able to process packets with
* uncompressed payload length of 32768 bytes or less and
* total packet size of 35000 bytes or less (including length,
* padding length, payload, padding, and MAC.)."
*/
Protect against an improper packet from producing unreasonable values.
Credit goes to Daniel Stenberg
2006-11-10 13:47:13 +00:00
James Housley
8069fa6f9a
libssh2_sftp_readdir() wasn't null terminating the filename. If there is
...
enough room in the buffer, all a null to the end.
2006-11-10 12:16:24 +00:00
James Housley
1961e07287
The public *_ex() API functions, most of them, used "int" for length values.
...
The convience functions pass in the return from strlen() which is "size_t",
usually an "unsigned long". This created the possiblility of passing in
a value that could look negative.
All "int" lengths were converted to "unsigned int". Ideally they should
all become "size_t", but that is a bigger change. This is a good start.
2006-11-04 19:30:31 +00:00
Sara Golemon
adee5e5653
Don't wait for KEX_INIT prior to sending our own packet.
...
Watch out for bad KEX_INIT guesses and burn packets if necessary.
2006-06-22 18:45:29 +00:00
Sara Golemon
5f85317efa
Swap ordering of packet_add/packet-inspection to avoid inspect after free. Fix OpenSSL detection using pkg-config.
2006-05-26 22:36:48 +00:00
Sara Golemon
09b93e4bb6
Map Win32 errno values
2006-04-17 02:49:44 +00:00
Sara Golemon
19cad102f4
autoconf already handles -g for us
2006-04-07 20:44:26 +00:00
Sara Golemon
4d7726c551
Plug leaks caused by not using OpenSSL's EVP interface correctly
2006-04-06 21:50:37 +00:00
Sara Golemon
37307a8778
Map win32 error codes
2006-04-05 05:36:53 +00:00
Sara Golemon
fbcdff2161
Allow socket_fd == 0 in libssh2_session_startup()
2006-03-08 19:10:53 +00:00
Sara Golemon
c45992da55
Bump copyright year
2006-03-02 01:10:52 +00:00
Sara Golemon
1d7522bc06
BugFix#1436593: Apply build options for HPUX targets
2006-02-23 23:14:35 +00:00
Mikhail Gusarov
a4e61c265b
Fixed errorneous flushing packets for unrelated channels when one is closed
...
(thanks to Alexander Holyapin)
2006-02-20 08:39:54 +00:00
Sara Golemon
efc3841fd2
Add terminating NULL to readlin/realpath results
2005-11-17 23:20:32 +00:00
Sara Golemon
f9d65b0984
Fix miscellaneous bugs in src/channel.c and src/packet.c
...
Courtessy David Robins
2005-11-02 00:26:24 +00:00
Sara Golemon
78048973c5
Fix x11_req. Multiple packet_len issues and error handling logic. (Simon Hart)
2005-08-10 21:37:44 +00:00
Sara Golemon
e15f5d97a0
Add publickey subsystem support
2005-07-21 20:28:07 +00:00
Sara Golemon
01de39e585
Fix generation of 'e' portion of Diffie-Hellman keyset.
2005-07-11 15:56:09 +00:00
Sara Golemon
6cc50263e2
Fix rename op -- Take 2
2005-07-06 17:50:53 +00:00
Sara Golemon
beca3742a2
Correct ancient typos in error messages
2005-07-06 16:27:54 +00:00
Mikhail Gusarov
0c53895bc0
libssh2_poll_channel_read made external
2005-06-24 11:22:10 +00:00
Mikhail Gusarov
dc446eff08
Debug output slightly fixed
2005-06-24 11:18:20 +00:00
Mikhail Gusarov
aa6e9c6eca
Added libssh2_channel_wait_close()
2005-06-24 11:17:50 +00:00
Mikhail Gusarov
2e097c7760
Memory leak liquidated - free the SSH_MSG_CHANNEL_REQUEST packet data
...
after processing 'exit-status' message
2005-06-23 08:22:04 +00:00
Mikhail Gusarov
77bd3c1215
'exit-status' information packet handling added
2005-06-23 05:55:01 +00:00
Mikhail Gusarov
8ee79a5118
Fixed keyboard-interactive authentication, debug output added
2005-06-18 12:18:07 +00:00
Mikhail Gusarov
0ad861d74c
libssh2_userauth_list should return char*, not the const char*
2005-06-18 11:30:31 +00:00
Mikhail Gusarov
b6d13ebe8a
Strictening function prototypes: char* -> const char* where applicable
2005-06-18 10:41:59 +00:00
Sara Golemon
06e1136ea0
Don't send flags for rename op if the sftp version is too low
2005-06-17 17:18:25 +00:00
Sara Golemon
2a6c49a73a
Add abstract pointer to keyboard-interactive callback
2005-06-16 17:14:31 +00:00
Sara Golemon
da653774aa
Add keyboard interactive authentication.
...
Implementation contributed by Mikhail Gusarov.
2005-06-11 19:18:06 +00:00
Sara Golemon
6de7ed8a7b
Drop these old references to initial window size, they were a mistake
2005-05-18 17:12:40 +00:00
Sara Golemon
cc7703092f
Save up multiple small refunds in order to cut down on unnecessary WINDOW_ADJUST packets
2005-05-18 17:08:29 +00:00
Sara Golemon
ff6f2dbe52
Typo: ALWAYS TEST FIRST
2005-05-17 17:18:48 +00:00
Sara Golemon
e5ee4a5be3
Fix sftp packet queueing mechanism
2005-05-17 05:22:41 +00:00
Sara Golemon
30bb7db0d1
Reduce busy-looping of libssh2_sftp_packet_requirev()
2005-05-16 23:12:09 +00:00
Sara Golemon
8d90bbfc28
Fix segfault when client/host can't agree on hostkey/crypt/mac/comp
2005-05-16 17:16:25 +00:00
Sara Golemon
e9b0710b4b
Fix format specifiers
2005-05-11 05:26:12 +00:00
Sara Golemon
379e510c87
Whoops
2005-05-11 05:16:32 +00:00
Sara Golemon
ebfbd22e59
Add debugging hooks for development diagnostics
2005-05-11 05:11:31 +00:00
Sara Golemon
9a0ba35457
Ignore extended data in the SFTP layer.
2005-05-10 04:57:34 +00:00
Sara Golemon
023c54d95d
One last (better be last) fix for FXP_INIT
2005-05-10 04:49:43 +00:00
Sara Golemon
ba2f21eb85
More fixes for channel_write()
2005-05-06 18:30:43 +00:00
Sara Golemon
8e0e6d81dd
Block means block
2005-05-04 19:01:48 +00:00
Sara Golemon
cba673de6f
Make blocking_read's polling loop less arbitrary
2005-05-04 18:48:47 +00:00
Sara Golemon
11b27e52c3
Put filetype into open/diropen/mkdir attributes
2005-05-04 18:06:07 +00:00