Daniel Stenberg [Thu, 29 Nov 2007 22:14:33 +0000 (22:14 +0000)]
Fixed the resumed FTP upload loop to not require that the read callback
returns a full buffer on each invoke.
Daniel Stenberg [Thu, 29 Nov 2007 11:25:10 +0000 (11:25 +0000)]
include the libssh2 return code in the output for these failures to ease
debugging
Daniel Stenberg [Wed, 28 Nov 2007 15:18:27 +0000 (15:18 +0000)]
the gethostbyname fix applied here as well
Daniel Stenberg [Wed, 28 Nov 2007 10:46:40 +0000 (10:46 +0000)]
fix next_lookup() to continue searching even if c-ares failed to load the
/etc/hosts file, pointed out by Erik Kline:
http://daniel.haxx.se/projects/c-ares/mail/c-ares-archive-2007-11/0027.shtml
Daniel Stenberg [Wed, 28 Nov 2007 10:33:47 +0000 (10:33 +0000)]
When --with-gssapi (without given path) is used, we must use krb5-config to
get the libs as well and not only the include path like we used to.
Yang Tse [Wed, 28 Nov 2007 01:46:28 +0000 (01:46 +0000)]
To allow remote log inspection avoid redirecting messages to stderr.
Cleanup some debugging messages. Unlink log file on exit.
Daniel Stenberg [Tue, 27 Nov 2007 22:41:53 +0000 (22:41 +0000)]
Remove the check for libdl since that isn't actually used and it causes
warnings. Pointed out by Robin Cornelius.
Daniel Stenberg [Tue, 27 Nov 2007 22:38:11 +0000 (22:38 +0000)]
pkgconfig fix by Andreas Schuldei
Daniel Stenberg [Tue, 27 Nov 2007 22:37:55 +0000 (22:37 +0000)]
spellfix
Yang Tse [Tue, 27 Nov 2007 20:57:22 +0000 (20:57 +0000)]
ConnectTimeout requires OpenSSH 3.7 or later
Yang Tse [Tue, 27 Nov 2007 00:52:30 +0000 (00:52 +0000)]
Explicitly disallow remote hosts to connect to local forwarded ports,
the socks server port in the test suite. This is the default setting
unless a tinkered built ssh is being used.
Yang Tse [Mon, 26 Nov 2007 14:26:40 +0000 (14:26 +0000)]
Stop ssh and socks servers when verification fails
Yang Tse [Mon, 26 Nov 2007 14:07:09 +0000 (14:07 +0000)]
Providing an explicit bind address besides the port for dynamic application-level
port forwarding, our socks port, prevents ssh from running on some systems.
By default, ssh binds local port forwardings to the loopback address, since this
was the address being given as the explicit bind address, now it isn't given.
Daniel Stenberg [Mon, 26 Nov 2007 12:26:58 +0000 (12:26 +0000)]
more blurb
Daniel Stenberg [Mon, 26 Nov 2007 11:04:51 +0000 (11:04 +0000)]
Added recent changes and spellchecked
Daniel Stenberg [Mon, 26 Nov 2007 11:04:21 +0000 (11:04 +0000)]
test1015 --data-urlencode
Daniel Stenberg [Mon, 26 Nov 2007 11:03:32 +0000 (11:03 +0000)]
#1 fixed --data-urlencode when no = or @ was used
#2 extended the user-agent buffer since I hit the 128 byte boundary!
Daniel Stenberg [Mon, 26 Nov 2007 11:02:45 +0000 (11:02 +0000)]
slightly less outdated
Yang Tse [Mon, 26 Nov 2007 02:45:24 +0000 (02:45 +0000)]
Temporary change to better debug startup failures
of test suite ssh and socks servers.
Yang Tse [Sun, 25 Nov 2007 03:55:53 +0000 (03:55 +0000)]
Allow different start timeout specification for each server
Daniel Stenberg [Sat, 24 Nov 2007 23:18:21 +0000 (23:18 +0000)]
reqdata doesn't exist anymore and the path moved to the UrlState struct
Daniel Stenberg [Sat, 24 Nov 2007 23:16:55 +0000 (23:16 +0000)]
struct HandleData is now called struct SingleRequest, and is only for data that
is inited at the start of the DO action. I removed the Curl_transfer_keeper
struct completely, and I had to move out a few struct members (that had to
be set before DO or used after DONE) to the UrlState struct. The SingleRequest
struct is accessed with SessionHandle->req.
One of the biggest reasons for doing this was the bunch of duplicate struct
members in HandleData and Curl_transfer_keeper since it was really messy to
keep track of two variables with the same name and basically the same purpose!
Yang Tse [Fri, 23 Nov 2007 12:18:45 +0000 (12:18 +0000)]
make 'checkdied' in runtests.pl more robust
Yang Tse [Fri, 23 Nov 2007 09:50:44 +0000 (09:50 +0000)]
Revert last change since it breaks running the test suite
when builddir is different from srcdir.
Yang Tse [Fri, 23 Nov 2007 04:03:46 +0000 (04:03 +0000)]
Improve chance of running runtests.pl from outside the
source tree 'tests' directory
Yang Tse [Thu, 22 Nov 2007 19:56:38 +0000 (19:56 +0000)]
Debugging messages to trace startnew failures
Yang Tse [Thu, 22 Nov 2007 16:35:07 +0000 (16:35 +0000)]
Provide a socklen_t definition in curl.h for Win32 API build targets
which don't have one.
Daniel Stenberg [Thu, 22 Nov 2007 09:39:04 +0000 (09:39 +0000)]
make nlen a size_t to better hold diffs between pointers etc
Daniel Stenberg [Thu, 22 Nov 2007 09:36:28 +0000 (09:36 +0000)]
Alessandro Vesely helped me improve the --data-urlencode's syntax, parser
and documentation.
Daniel Stenberg [Wed, 21 Nov 2007 22:37:55 +0000 (22:37 +0000)]
Make the do_complete() function not get called until the DO actually is
compelete, which bascially means when used with the multi interface
Yang Tse [Wed, 21 Nov 2007 19:33:09 +0000 (19:33 +0000)]
Temporary change adding additional debugging messages to better pinpoint
startup failures of test suite ssh and socks servers.
Yang Tse [Wed, 21 Nov 2007 17:50:30 +0000 (17:50 +0000)]
Fix trying to return outside of a subroutine
Daniel Stenberg [Wed, 21 Nov 2007 10:16:44 +0000 (10:16 +0000)]
and we start on 1.5.2!
Daniel Stenberg [Wed, 21 Nov 2007 10:12:20 +0000 (10:12 +0000)]
change
Daniel Stenberg [Wed, 21 Nov 2007 10:12:06 +0000 (10:12 +0000)]
oops
Daniel Stenberg [Wed, 21 Nov 2007 09:31:56 +0000 (09:31 +0000)]
start working on 1.5.1 now
Daniel Stenberg [Wed, 21 Nov 2007 09:24:03 +0000 (09:24 +0000)]
this is what 1.5.0 is
Daniel Stenberg [Tue, 20 Nov 2007 23:17:08 +0000 (23:17 +0000)]
While inspecting the Negotiate code, I noticed how the proxy auth was using
the same state struct as the host auth, so both could never be used at the
same time! I fixed it (without being able to check) to use two separate
structs to allow authentication using Negotiate on host and proxy
simultanouesly.
Daniel Stenberg [Tue, 20 Nov 2007 23:16:19 +0000 (23:16 +0000)]
clarify somewhat what happens to some data when a share is set to be used
Daniel Stenberg [Tue, 20 Nov 2007 23:02:58 +0000 (23:02 +0000)]
white space changes only to clean up indent and source width
Daniel Stenberg [Tue, 20 Nov 2007 22:59:10 +0000 (22:59 +0000)]
remove the unconditional enabling of cookies if you set a share to use!
Daniel Stenberg [Tue, 20 Nov 2007 22:57:24 +0000 (22:57 +0000)]
a bunch of new comments
Daniel Stenberg [Tue, 20 Nov 2007 22:01:05 +0000 (22:01 +0000)]
rephrased
Yang Tse [Tue, 20 Nov 2007 16:47:56 +0000 (16:47 +0000)]
Don't gather additional debug info unless sshd actually fails
Patrick Monnerat [Tue, 20 Nov 2007 14:23:13 +0000 (14:23 +0000)]
ILE RPG binding: OS/400 specific and contained in source distribution
Yang Tse [Tue, 20 Nov 2007 14:10:09 +0000 (14:10 +0000)]
Improve detection of sshd un/supported options.
Gather additional debug info when the test suite ssh server fails to start.
Daniel Stenberg [Tue, 20 Nov 2007 10:08:42 +0000 (10:08 +0000)]
Introuced --data-urlencode to the curl tool for easier url encoding of the
data sent in a post.
Daniel Stenberg [Tue, 20 Nov 2007 10:03:33 +0000 (10:03 +0000)]
fix the treatment of the parameter-based precision, as in "%.*s%s" as
previously the second %s would wrongly get the numerical argument that is used
for the variable precision for the first %s...
Daniel Stenberg [Tue, 20 Nov 2007 09:44:37 +0000 (09:44 +0000)]
107 - resolve the type= thing for FTP URLs over HTTP proxies
Daniel Stenberg [Mon, 19 Nov 2007 23:20:15 +0000 (23:20 +0000)]
106 - Share interface force-enable the cookie parser
Yang Tse [Mon, 19 Nov 2007 17:20:32 +0000 (17:20 +0000)]
This is a temporary change to test if OpenSSH 3.6 and SunSSH 1.1
are good/compatible enough to run the test suite ssh server and
socks tests
Daniel Stenberg [Mon, 19 Nov 2007 15:47:01 +0000 (15:47 +0000)]
fill in missing copyrights
Daniel Stenberg [Mon, 19 Nov 2007 09:24:24 +0000 (09:24 +0000)]
I think this is the right fix for other non-OpenSSL libs, based on the NSS fix
from the other day. It is time to setup the internal SSL libs and treat them
with a "handler" struct similar to how we deal with the protocols these days...
Yang Tse [Mon, 19 Nov 2007 01:49:28 +0000 (01:49 +0000)]
Temporary change to help debugging string(s) returned by sshd -V
when sshd is not being identified as an OpenSSH daemon
Gunter Knauf [Sun, 18 Nov 2007 22:48:39 +0000 (22:48 +0000)]
removed now obsolete defines;
updated external library versions to latest.
Daniel Stenberg [Sun, 18 Nov 2007 09:45:05 +0000 (09:45 +0000)]
Rob Crittenden fixed SSL connections with NSS done with the multi-interface
Yang Tse [Sun, 18 Nov 2007 01:16:44 +0000 (01:16 +0000)]
Add /opt/ssh/sbin and /opt/ssh/libexec to the sshd locations search list.
Improve wording of a couple of debug messages.
Yang Tse [Sat, 17 Nov 2007 17:43:33 +0000 (17:43 +0000)]
When unable to start test suite sshserver, log if OpenSSH has not been
found or the OpenSSH version found
Daniel Stenberg [Sat, 17 Nov 2007 10:22:44 +0000 (10:22 +0000)]
Andres Garcia made the examples build fine on Windows (mingw + msys) when
the lib was built staticly.
Yang Tse [Sat, 17 Nov 2007 02:28:54 +0000 (02:28 +0000)]
Add /usr/local/sbin and /usr/freeware/bin to the sshd locations search list
Daniel Stenberg [Fri, 16 Nov 2007 23:06:53 +0000 (23:06 +0000)]
Michal Marek made the test suite remember what test servers that fail to
start so that subsequent tries are simply skipped.
Steinar H. Gunderson [Fri, 16 Nov 2007 09:36:00 +0000 (09:36 +0000)]
Fix a double free.
Yang Tse [Fri, 16 Nov 2007 01:19:46 +0000 (01:19 +0000)]
Fix unsigned integral math check in add_buffer_send()
Daniel Stenberg [Thu, 15 Nov 2007 23:42:21 +0000 (23:42 +0000)]
Ates Goral identified a problem in http.c:add_buffer_send() when a debug
callback was used, as it could wrongly pass on a bad size for the outgoing
HTTP header. The bad size would be a very large value as it was a wrapped
size_t content. This happened when the whole HTTP request failed to get sent
in one single send. http://curl.haxx.se/mail/lib-2007-11/0165.html
Daniel Stenberg [Thu, 15 Nov 2007 23:30:59 +0000 (23:30 +0000)]
removed unnecessary check from add_buffer_send() that only was made within
#ifdef CURL_DOES_CONVERSIONS anyway! I turned it into a DEBUGASSERT() instead.
Daniel Stenberg [Thu, 15 Nov 2007 22:41:31 +0000 (22:41 +0000)]
Michal Marek fixed the test suite to better deal with the case when the HTTP
ipv6 server can't run.
Daniel Stenberg [Thu, 15 Nov 2007 21:45:45 +0000 (21:45 +0000)]
Rearranged code and changed Curl_readwrite_init() and Curl_pre_readwrite() into
do_init() and do_complete() which now are called first and last in the DO
function. It simplified the flow in multi.c and the functions got more
sensible names!
Yang Tse [Thu, 15 Nov 2007 19:44:01 +0000 (19:44 +0000)]
Needed now that in6_addr is referenced in ares.h
Yang Tse [Thu, 15 Nov 2007 13:20:18 +0000 (13:20 +0000)]
Replace isupper with our uppercase macro version
Yang Tse [Thu, 15 Nov 2007 13:12:35 +0000 (13:12 +0000)]
Replace isgraph with our uppercase macro version
Daniel Stenberg [Thu, 15 Nov 2007 11:03:02 +0000 (11:03 +0000)]
Make the Transfer() function return earlier without doing any initializations
for the cases where there's nothing to do in here, like for SFTP directory
listings that already is complete when this function gets called. The init
stuff clears byte counters which isn't really desired.
Steinar H. Gunderson [Thu, 15 Nov 2007 09:16:48 +0000 (09:16 +0000)]
When looking up in DNS and then in the hosts file, return the error code from DNS if both fail, instead of returning the error code from the hosts file, as today. Patch from the Google tree.
Steinar H. Gunderson [Thu, 15 Nov 2007 08:36:25 +0000 (08:36 +0000)]
Return TTL data from ares_parse_{a,aaaa}_reply, if the user is so inclined. Patch from the Google tree.
Daniel Stenberg [Wed, 14 Nov 2007 22:44:30 +0000 (22:44 +0000)]
use the existing variable instead
Daniel Stenberg [Wed, 14 Nov 2007 22:41:42 +0000 (22:41 +0000)]
Fix how TFTP connections are treated when re-used, if the SessionHandle has
been used for other protocols in between. I found this when test 2004 started
to fail for me!
Yang Tse [Wed, 14 Nov 2007 00:48:11 +0000 (00:48 +0000)]
Fix a variable potential wrapping in add_buffer() when using absolutely
huge send buffer sizes
Daniel Stenberg [Mon, 12 Nov 2007 23:04:44 +0000 (23:04 +0000)]
Fixed a remaining problem with doing SFTP directory listings on a re-used
persistent connection. Mentioned by Immanuel Gregoire on the mailing list.
Daniel Stenberg [Mon, 12 Nov 2007 21:42:20 +0000 (21:42 +0000)]
comment language
Daniel Stenberg [Mon, 12 Nov 2007 21:38:43 +0000 (21:38 +0000)]
Bug report #1830637 (curl.haxx.se/bug/view.cgi?id=1830637), which was
forwarded from the Gentoo bug tracker by Daniel Black and was originally
submitted by Robin Johnson, pointed out that libcurl would do bad memory
references when it failed and bailed out before the handler thing was
setup. My fix is not done like the provided patch does it, but instead I
make sure that there's never any chance for a NULL pointer in that struct
member.
Daniel Stenberg [Mon, 12 Nov 2007 09:24:05 +0000 (09:24 +0000)]
oops, fixed build when CURL_LIBSSH2_DEBUG is defined
Daniel Stenberg [Sun, 11 Nov 2007 14:20:15 +0000 (14:20 +0000)]
new ruby binding, curl-multi version 0.1
Yang Tse [Sat, 10 Nov 2007 04:23:15 +0000 (04:23 +0000)]
Some versions of winsock2.h have pollfd struct and constants
Yang Tse [Thu, 8 Nov 2007 19:28:25 +0000 (19:28 +0000)]
Fix compiler warning: integral size mismatch in argument
Yang Tse [Thu, 8 Nov 2007 18:13:54 +0000 (18:13 +0000)]
Define WIN32 when build target is Win32 API.
This also defines it for WinCE even though it is a subset of WIN32.
Yang Tse [Thu, 8 Nov 2007 16:43:01 +0000 (16:43 +0000)]
Fix compiler warning: may be used uninitialized
Yang Tse [Thu, 8 Nov 2007 16:32:31 +0000 (16:32 +0000)]
Fix comment
Daniel Stenberg [Thu, 8 Nov 2007 10:25:23 +0000 (10:25 +0000)]
spell!
Daniel Stenberg [Thu, 8 Nov 2007 10:22:49 +0000 (10:22 +0000)]
Bug report #1823487 (curl.haxx.se/bug/view.cgi?id=1823487) pointed
out that SFTP requests didn't use persistent connections. Neither did SCP
ones. I gave the SSH code a good beating and now both SCP and SFTP should
use persistent connections fine. I also did a bunch for indent changes as
well as a bug fix for the "keyboard interactive" auth.
Yang Tse [Thu, 8 Nov 2007 01:33:28 +0000 (01:33 +0000)]
The only libraries actually needed for sample programs adig and
ahost are ws2_32.lib and advapi32.lib
Yang Tse [Wed, 7 Nov 2007 18:18:42 +0000 (18:18 +0000)]
MSVC versions prior to VS2005 do not complain about portable C functions
Daniel Stenberg [Wed, 7 Nov 2007 09:21:35 +0000 (09:21 +0000)]
if () => if()
while () => while()
and some other minor re-indentings
Dan Fandrich [Wed, 7 Nov 2007 05:52:03 +0000 (05:52 +0000)]
Improved telnet support by drastically reducing the number of write
callbacks needed to pass a buffer to the user. Instead one per byte it
is now as little as one per segment.
Dan Fandrich [Wed, 7 Nov 2007 04:53:37 +0000 (04:53 +0000)]
Add a call to curl_global_cleanup to show how to do a proper shutdown.
Yang Tse [Tue, 6 Nov 2007 17:18:27 +0000 (17:18 +0000)]
Bug report #1824894 (curl.haxx.se/bug/view.cgi?id=1824894) pointed
out a problem in curl.h when building C++ apps with MSVC. To fix it, the
inclusion of header files in curl.h is moved outside of the C++ extern "C"
linkage block.
Gisle Vanem [Tue, 6 Nov 2007 16:20:54 +0000 (16:20 +0000)]
Added prototype for _strtoi64().
Gisle Vanem [Tue, 6 Nov 2007 16:20:04 +0000 (16:20 +0000)]
Constified from arguments.
Dan Fandrich [Mon, 5 Nov 2007 20:54:35 +0000 (20:54 +0000)]
Sort the directory listing because the server doesn't always do it.
Dan Fandrich [Mon, 5 Nov 2007 20:53:15 +0000 (20:53 +0000)]
Added some keywords
Daniel Stenberg [Mon, 5 Nov 2007 15:43:41 +0000 (15:43 +0000)]
tclcurl and a mirror recount when bad ones have been cut out
Daniel Stenberg [Mon, 5 Nov 2007 10:07:34 +0000 (10:07 +0000)]
Andres Garcia made it build and run on windows