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
Daniel Stenberg [Mon, 5 Nov 2007 09:45:09 +0000 (09:45 +0000)]
removed space after if and while before the parenthesis for better source code
consistency
Daniel Stenberg [Mon, 5 Nov 2007 09:31:30 +0000 (09:31 +0000)]
I check the code right now and while() and if() are in majority over while ()
and if () so the rule is from now on => no space before the parenthesis.
Daniel Stenberg [Mon, 5 Nov 2007 09:30:45 +0000 (09:30 +0000)]
Move connection-oriented variables from the SessionHandle struct to the
connectdata struct. This will in theory enable us to do persistent connections
with SCP+SFTP, but currently the state machine always (and wrongly) cleanup
everything in the 'done' action instead of in 'disconnect'. Also did a bunch
of indent fixes, if () => if() and a few other source cleanups like added
comments etc.
Daniel Stenberg [Sat, 3 Nov 2007 14:44:38 +0000 (14:44 +0000)]
make sure the code deals with failures on the DO_MORE state properly
Daniel Stenberg [Fri, 2 Nov 2007 23:34:00 +0000 (23:34 +0000)]
avoid setting up a transfer when the state machine failed previously
Daniel Stenberg [Thu, 1 Nov 2007 21:49:59 +0000 (21:49 +0000)]
Toby Peterson patched a memory problem in the command line tool that
happened when a user had a home dir as an empty string. curl would then do
free() on a wrong area.
Daniel Stenberg [Thu, 1 Nov 2007 21:43:56 +0000 (21:43 +0000)]
minor re-indent
Dan Fandrich [Thu, 1 Nov 2007 21:20:24 +0000 (21:20 +0000)]
Ignore more features that curl-config is not expected to know about
Dan Fandrich [Thu, 1 Nov 2007 18:55:00 +0000 (18:55 +0000)]
Fixed curl-config --features to not display libz when it wasn't used
due to a missing header file.
Dan Fandrich [Thu, 1 Nov 2007 17:42:39 +0000 (17:42 +0000)]
Make postcheck failure message more like the others
Dan Fandrich [Thu, 1 Nov 2007 03:09:27 +0000 (03:09 +0000)]
Added test case 1014 to compare curl-config --features with curl --version
Dan Fandrich [Thu, 1 Nov 2007 00:36:55 +0000 (00:36 +0000)]
Added test case 1013 to check that curl-config --protocols matches the
protocols listed in curl --version
Dan Fandrich [Wed, 31 Oct 2007 23:33:58 +0000 (23:33 +0000)]
Fixed the output of curl-config --protocols which showed SCP and SFTP
always, except when --without-libssh2 was given
Dan Fandrich [Wed, 31 Oct 2007 18:32:06 +0000 (18:32 +0000)]
Detect curl source when valgrind provides an absolute source file name
Gisle Vanem [Wed, 31 Oct 2007 10:58:51 +0000 (10:58 +0000)]
Add support for LDAP urls. Allthough the OpenWatcom
headers <winlap.h> and <winber.h> defines wrong calling convention.
Gisle Vanem [Wed, 31 Oct 2007 10:20:48 +0000 (10:20 +0000)]
Added optional use of zlib (USE_ZLIB=1).
Use a response-file for the C-compiler.
Daniel Stenberg [Wed, 31 Oct 2007 09:21:31 +0000 (09:21 +0000)]
contributor re-count (we'll break the 600 limit very very soon now) and I made
all the numericals at the top phrased "shorter" and I cut out the "number of
releases since the very beginning" since that's just the number curl releases
+ 26 and not a very interesting number anyway.
Dan Fandrich [Tue, 30 Oct 2007 23:00:40 +0000 (23:00 +0000)]
Fixed an OOM problem with file: URLs
Moved Curl_file_connect into the protocol handler struct.
Daniel Stenberg [Tue, 30 Oct 2007 22:48:08 +0000 (22:48 +0000)]
added new people from the 7.17.1 announcement
Dan Fandrich [Mon, 29 Oct 2007 22:57:31 +0000 (22:57 +0000)]
Added test case 546 to check that subsequent FTP transfers work after a
failed one using the multi interface
Daniel Stenberg [Mon, 29 Oct 2007 22:13:09 +0000 (22:13 +0000)]
curl-config --features and --protocols show the correct output when built
with NSS
Daniel Stenberg [Mon, 29 Oct 2007 22:13:00 +0000 (22:13 +0000)]
Based on one of those bug reports that are intercepted by a distro's bug
tracker (https://bugzilla.redhat.com/show_bug.cgi?id=316191), I now made
curl-config --features and --protocols show the correct output when built
with NSS.
Dan Fandrich [Mon, 29 Oct 2007 20:57:03 +0000 (20:57 +0000)]
Reverted the const change--what was I thinking?
Dan Fandrich [Mon, 29 Oct 2007 18:32:20 +0000 (18:32 +0000)]
Made some pointers const
Daniel Stenberg [Mon, 29 Oct 2007 15:06:04 +0000 (15:06 +0000)]
7.17.2