Simon Josefsson
9d433d4f80
Add gcov files.
2008-11-21 08:23:54 +00:00
Dan Fandrich
50a3255dde
Use only C89-style comments
2008-11-21 02:25:38 +00:00
Dan Fandrich
482072939a
Check LIBSSH2_HMAC_RIPEMD consistently
2008-11-21 01:07:08 +00:00
Simon Josefsson
f2253aeee9
Fix compiler warnings.
2008-11-20 10:29:01 +00:00
Simon Josefsson
2b5becfe85
Move pem.c to libgcrypt section, it is not needed for OpenSSL.
2008-11-20 10:09:43 +00:00
Simon Josefsson
fd0bffdb2e
Rewrite OpenSSL+libz detection logic.
2008-11-19 11:10:48 +00:00
Daniel Stenberg
e45bddb9fd
avoid duplicate function declarations on windows
2008-11-11 22:32:33 +00:00
Daniel Stenberg
5438cffd9a
Richard W.M. Jones' 5 patches that enables libssh2 to get cross-compiled with
...
mingw
2008-11-10 16:48:41 +00:00
Paul Thomas
95b73812e7
Fixes a problem that the last code change apparently didn't fix. Verified
...
that this works correctly with another user.
2008-11-09 17:54:23 +00:00
Paul Thomas
85b953d0dd
Fixed an issue with a patch that I submitted where the channel_read_ex()
...
could get stuck in a busy read loop.
2008-11-01 17:28:30 +00:00
Paul Thomas
8896b675f8
Reformatted the code, updated line endings to match original file,
...
fixed the build problem, removed tabs and replaced with spaces
and removed C89 unfriendly comments.
2008-10-03 01:14:46 +00:00
Paul Thomas
006f233361
This fix addresses bug# 2141548. Channel reads would fail despite
...
libssh2_poll() detecting that there was data ready to be read on
the socket. This is seen when small amounts of data are ready to
be read, typically 1-4 chars worth.
2008-10-02 02:26:49 +00:00
Paul Thomas
fa620b2a7b
Committed changes to add in support for pty resizing. Credit for this
...
patch goes to Vincent Jaulin.
2008-10-01 01:47:48 +00:00
Paul Thomas
b228f132f7
Fixed an issue with the libssh2_poll_channel_read function not
...
reading both normal and extended data when a non-zero value
is passed in as the 2nd parameter. This now matches the functionallity
described in the documentation.
2008-10-01 01:31:15 +00:00
Daniel Stenberg
8c43bc52b1
Carlo Bramini fixed the build for msys+mingw. Bug #1943976 .
2008-09-30 21:54:20 +00:00
Daniel Stenberg
818e9edfb1
- Bug #1862727 fixed libssh2_poll() to work on windows (by defining HAVE_SELECT).
2008-09-29 14:16:19 +00:00
Daniel Stenberg
61fda23340
- Based on bug #1815692 , we introduce libssh2_sftp_seek2() that allows seeking
...
beyond the 2GB margin even on 32bit machines.
2008-09-29 14:11:29 +00:00
Daniel Stenberg
93ae080bbc
- Based on a patch in bug #1878059 by Steven Ayre libssh2 now parses >2GB file
...
sizes when downloading SCP files.
2008-09-29 14:04:01 +00:00
Daniel Stenberg
99afc66665
Sean Peterson's key re-exchange fix. See his long explanation on:
...
http://daniel.haxx.se/projects/libssh2/mail/libssh2-devel-archive-2008-06/0002.shtml
2008-07-03 16:26:55 +00:00
Daniel Stenberg
9b31ca67ac
Gah, I broke Sebastian's patch when I left out the parentheses his patch
...
did contain. Added properly now.
2008-06-24 22:33:25 +00:00
Daniel Stenberg
3f0d30d1d6
|sftp.c:1470: warning: cast to pointer from integer of different size Another
...
reason why macros are evil: The string (which is allready char *) should be
cast into char * not the integer.
Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc>
2008-06-23 22:20:00 +00:00
Daniel Stenberg
f56daac7fe
- Mike Protts filed the bug report #1908724 that identified and fixed a problem
...
with SFTP stat on files >4GB in size. Previously it used 32bit math only.
2008-03-07 11:55:07 +00:00
Dan Fandrich
a55e6c10c9
Removed a stderr debug message that was accidentally left in (bug #1863153 )
2008-01-03 19:12:50 +00:00
Daniel Stenberg
2fcaa00e3a
as mentioned in bug #1841442 , select wants maxfd+1 in its first argument!
2008-01-02 14:48:48 +00:00
Daniel Stenberg
0242a3b6af
corrected wrong comment and made libssh2_channel_wait_closed() return 0 as
...
documented!
2007-11-29 11:32:34 +00:00
Guenter Knauf
4600d108ed
fixed 'uninitialized' compiler warnings.
2007-11-18 20:57:13 +00:00
Daniel Stenberg
76e8e81402
valgrind was friendly enough to point out that doing memcpy() on overlapping
...
memory areas is a very bad idea so I changed this to memmove()
2007-11-12 23:09:45 +00:00
Daniel Stenberg
c92465930d
fix three compiler warnings on comparison between signed and unsigned
2007-11-08 15:53:04 +00:00
Daniel Stenberg
030b670e2a
Moved the check that the amount of data is larger than the blocksize to
...
only get done on the first block. Based on the bug report #1826989
https://sourceforge.net/tracker/?func=detail&atid=703942&aid=1826989&group_id=125852
2007-11-08 13:51:23 +00:00
Daniel Stenberg
371a795443
fix transfer stall bug with non-blocking transfers, by Gavrie Philipson
2007-11-08 13:46:54 +00:00
Dan Fandrich
2d773f9322
Stop shadowing a global declaration
2007-09-28 18:29:40 +00:00
Daniel Stenberg
80f6c7c6d1
Immanuel Gregoire made libssh2_packet_read() properly deal with blocks when
...
in non-blocking state. Until this fix, libssh2 just couldn't work properly
on Windows while non-blocking.
2007-09-24 20:49:43 +00:00
Daniel Stenberg
d90d8bdae7
The libssh2_channel_receive_window_adjust() function failed to set the state
...
variables at times and thus this function would misbehave on repeated invokes.
2007-08-12 21:53:32 +00:00
Daniel Stenberg
f216b36328
When we have less than blocksize data left we MUST (attempt to) read more
...
since we can't decrypt anything in that situation.
2007-08-10 22:22:45 +00:00
Dan Fandrich
17173aab0e
Added const to varname parameter of libssh2_channel_setenv_ex
2007-08-09 01:09:09 +00:00
Daniel Stenberg
e32ff531a3
Satish Mittal and David J Sullivan fixed an infinit recv() loop in
...
libssh2_banner_receive()
2007-08-08 21:43:12 +00:00
Daniel Stenberg
210459db4b
re-indented the source code with this script:
...
indent \
--braces-on-if-line \
--braces-after-struct-decl-line \
--space-after-cast \
--line-length 79 \
--comment-line-length 79 \
--cuddle-else \
--no-tabs \
--tab-size 8 \
--indent-level 4 \
--no-space-after-for \
--space-after-if \
--space-after-while \
--no-space-after-function-call-names \
*.[ch]
2007-08-06 20:48:04 +00:00
Daniel Stenberg
209d06d6c9
libssh2_poll() no longer relies on C99 features but instead uses alloca()
...
on systems that have it - and uses a fixed-size array on those that don't.
session.c was also cleaned from a large amount of trailing whitespace.
2007-07-23 21:18:43 +00:00
James Housley
46f59112d9
* After setting the error to the error string from in the packet, set
...
the pointer to NULL so it can't be double freed.
* On session cleanup be sure to free the last error if it needs to be
2007-07-19 15:02:37 +00:00
James Housley
05c1164a67
The test after the memory allocation was backwards, so keyboard-interactive
...
would always fail due to a memory problem.
2007-07-18 19:54:51 +00:00
Guenter Knauf
8f62c7322f
added NMakefile to Makefile.am so that it gets included with releases and daily snapshots.
2007-07-17 13:22:55 +00:00
Guenter Knauf
bb76ed34a0
fixed NMakefile stuff to build at least the DLL again.
2007-07-15 20:06:19 +00:00
James Housley
a87fdff9e9
The variable "packet" needs to be in LIBSSH2_SFTP_HANDLE for re-entry when
...
blocking in libssh2_sftp_close_handle()
2007-07-09 15:11:37 +00:00
James Housley
50fd6590f0
While the previous commit seemed to correct a problem, it actually exposed
...
another problem. Commit this until a proper fix is found
2007-07-08 17:14:19 +00:00
James Housley
2b1c979d7e
Remove a blocking while loop that wasn't removed when the code to
...
return PACKET_EAGAIN was added, but should have been.
2007-07-08 15:37:44 +00:00
James Housley
6ac790a477
* Since the packet as already had data read from it, it can't retrun
...
PACKET_EAGAIN while reading the rest of it.
* Get the error message in libssh2_scp_recv() in the same manner as it
was gotten in libssh2_scp_send_ex()
2007-07-05 15:31:19 +00:00
James Housley
530e57d4ac
Gavrie Philipson sumitted a patch to get the actual text of the error
...
on scp upload.
2007-07-05 11:08:17 +00:00
Daniel Stenberg
cf9ed016e7
as mentioned in bug #1655429 , the CRLF pair was stripped off in the wrong
...
order!
2007-06-28 20:53:32 +00:00
James Housley
74b12c3c7a
* Eberhard Mattes submitted a patch "According to RFC 4251,
...
a boolean value of true is encoded as 1, not as 0xff". Servers
should accept any non-zero value.
Bug: 1703472
2007-06-23 22:20:30 +00:00
James Housley
25adcc150e
Guenter Knauf submitted code to detect on windows if the socket is
...
blocking or not
2007-06-22 16:46:36 +00:00