James Housley
7058b7fc2a
Reproduce most of the POSIX permission/file type defines from sys/stat.h
...
so that if compiled with a non-POSIX compiler these are still available
for client software.
2006-11-13 22:35:02 +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
ace0c8f00b
Bump for release
RELEASE.0.14
2006-06-22 18:50:26 +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
2207b99afb
Bump version number
RELEASE.0.13
2006-03-02 01:10:06 +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
502a48afa1
Fix make install on MacOSX
2006-01-06 17:34:03 +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
edcdf43264
Prep for release
RELEASE.0.12
2005-11-01 23:11:50 +00:00
Mikhail Gusarov
722470994a
Added missing '#ifdef __cplusplus extern "C" {}' stanza
2005-10-04 04:25:24 +00:00
Sara Golemon
14f00247a8
Explicitly include sha.h and md5.h from openssl
2005-08-25 20:50:37 +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
Sara Golemon
d6cfa7c6b9
bump for release -- 0.11
RELEASE.0.11
2005-07-05 01:42:11 +00:00
Sara Golemon
ae17fbcd2c
BFN
2005-07-05 01:38:41 +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
0e5eb4d9c5
Added extern "C" declaration for C++ compatibility
2005-06-20 05:17:51 +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
9203a62789
Late commit -- This is for release 0.10
RELEASE.0.10
2005-05-24 14:01:38 +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
8937980044
BFN
2005-05-18 17:10:27 +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
7502920c7f
Remove /test/*
2005-05-17 19:30:59 +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