Daniel Stenberg
556cafc457
Removed use of ceil() since that is a math lib function and getting the
...
exact accuracy of the microsecond to millisecond conversion simply cannot
be that important. We don't even explicitly link with -lm...
2006-12-13 08:42:54 +00:00
Simon Josefsson
75b5e06773
Fix indentation.
2006-12-09 09:06:06 +00:00
Simon Josefsson
91e496ff41
Add.
2006-12-07 16:12:44 +00:00
Simon Josefsson
6b1dc88b14
Add autobuild.m4, to make it easier to use http://autobuild.josefsson.org/ .
2006-12-07 15:53:01 +00:00
Simon Josefsson
14b9deef24
Move symmetric OpenSSL EVP crypto calls to crypt.c.
2006-12-07 15:44:07 +00:00
Mikhail Gusarov
82d762cae5
Improve detection of closed channel. Eleminates lock-ups on
...
multi-channel operation.
2006-11-27 07:37:40 +00:00
Mikhail Gusarov
1c1c74479e
Reading bigger blocks from network before decryption.
...
Significantly increases performance.
2006-11-27 07:31:28 +00:00
Mikhail Gusarov
3a33680e14
write(2) may write only part of passed data under FreeBSD.
...
Make sure whole buffer is written.
2006-11-27 07:24:18 +00:00
Daniel Stenberg
38fea1973d
mention a few recent changes
2006-11-24 10:14:31 +00:00
Daniel Stenberg
c63a212559
Add builddir/src to the include path, for the generated config header when
...
building out of the source tree.
2006-11-20 22:21:01 +00:00
Daniel Stenberg
a8451f58df
ssh2_sample now gets the right include path to the current include directory
2006-11-20 22:19:40 +00:00
Daniel Stenberg
1dbe8ff365
check for inline in configure
2006-11-20 22:10:56 +00:00
Daniel Stenberg
82424d6735
Starting now, we use automake and libtool for the build.
2006-11-20 08:58:29 +00:00
Daniel Stenberg
3b1b45e644
Moved the private include files libssh2_priv.h and libssh2_config.h.in from
...
include/ into the src/ directory. The include/ dir is now strictly for public
headers.
Also, I removed the special win32 source package creation target in the
makefile and I modified the contact email address in configure.in to point out
the libssh2-devel list.
2006-11-20 08:41:04 +00:00
Daniel Stenberg
84f10fca87
kill compiler warnings
2006-11-19 13:39:01 +00:00
Daniel Stenberg
077ba3efd5
until we automake, let 'make' build all by default
2006-11-19 13:28:03 +00:00
Daniel Stenberg
ab26693769
kill warnings
2006-11-19 13:26:19 +00:00
Daniel Stenberg
1854b4536f
Use pkg-config --cflags-only-I when getting the include files necessary to
...
build with OpenSSL. Previous approach caused a bad compiler option get set.
2006-11-17 10:26:11 +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
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
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
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
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
2005-07-05 01:42:11 +00:00
Sara Golemon
ae17fbcd2c
BFN
2005-07-05 01:38:41 +00:00