Dan Fandrich [Fri, 11 Mar 2005 07:52:24 +0000 (07:52 +0000)]
Added HAVE_AF_INET6 to Netware's config.h
Dan Fandrich [Fri, 11 Mar 2005 05:49:04 +0000 (05:49 +0000)]
Fixed some compiler warnings.
Dan Fandrich [Fri, 11 Mar 2005 05:39:37 +0000 (05:39 +0000)]
Added HAVE_STRUCT_IN6_ADDR to Netware's config.h
Dan Fandrich [Fri, 11 Mar 2005 05:28:07 +0000 (05:28 +0000)]
Fixed LDAP library file name bug (KNOWN_BUGS #1). configure now auto-detects
the correct dynamic library names by default, and provides override switches
--with-ldap-lib, --with-lber-lib and --without-lber-lib. Added
CURL_DISABLE_LDAP to platform-specific config files to disable LDAP
support on those platforms that probably don't have dynamic OpenLDAP
libraries available to avoid compile errors.
Daniel Stenberg [Fri, 11 Mar 2005 00:44:32 +0000 (00:44 +0000)]
Add an alert already here if 'make test' is attempted for a cross-compile
since there's no use building the whole test suite first and _then_ tell it
doesn't work anyway...
Daniel Stenberg [Fri, 11 Mar 2005 00:20:30 +0000 (00:20 +0000)]
no more rewriting of the setup file
Daniel Stenberg [Thu, 10 Mar 2005 23:30:34 +0000 (23:30 +0000)]
Dominick Meglio added ares_parse_aaaa_reply.c and did various adjustments. The
first little steps towards IPv6 support!
Daniel Stenberg [Thu, 10 Mar 2005 23:15:29 +0000 (23:15 +0000)]
Christopher R. Palmer made it possible to build libcurl with the
USE_WINDOWS_SSPI on Windows, and then libcurl will be built to use the native
way to do NTLM. SSPI also allows libcurl to pass on the current user and its
password in the request.
Daniel Stenberg [Wed, 9 Mar 2005 23:35:14 +0000 (23:35 +0000)]
configure, socks, debug, getdate
Daniel Stenberg [Wed, 9 Mar 2005 22:13:52 +0000 (22:13 +0000)]
As reported by 'nodak sodak' we should check for a NULL pointer before
referencing the proxy name pointer.
Dan Fandrich [Wed, 9 Mar 2005 18:40:41 +0000 (18:40 +0000)]
Stopped linking to the SSL libs if a full installation isn't found.
Removed a redundant library check.
Daniel Stenberg [Wed, 9 Mar 2005 07:56:32 +0000 (07:56 +0000)]
skip the test of "2094 Nov 6" for now, since the 64bit time_t systems return
different values for it...
Daniel Stenberg [Tue, 8 Mar 2005 22:21:59 +0000 (22:21 +0000)]
remove old printf() debug leftover
Daniel Stenberg [Tue, 8 Mar 2005 16:31:56 +0000 (16:31 +0000)]
mktime() returns a time_t. time_t is often 32 bits, even on many architectures
that feature 64 bit 'long'.
Some systems have 64 bit time_t and deal with years beyond 2038. However, even
some of the systems with 64 bit time_t returns -1 for dates beyond 03:14:07
UTC, January 19, 2038. (Such as AIX 5100-06)
Daniel Stenberg [Tue, 8 Mar 2005 11:15:29 +0000 (11:15 +0000)]
days are english
Daniel Stenberg [Tue, 8 Mar 2005 08:09:14 +0000 (08:09 +0000)]
Dominick Meglio reported that using CURLOPT_FILETIME when transferring a FTP
file got a Last-Modified: header written to the data stream, corrupting the
actual data. This was because some conditions from the previous FTP code was
not properly brought into the new FTP code. I fixed and I added test case 520
to verify. (This bug was introduced in 7.13.1)
Dan Fandrich [Tue, 8 Mar 2005 03:24:49 +0000 (03:24 +0000)]
Fixed the --with-zlib configure option so that it always adds the specified
path to the compiler flags. Before, a zlib installation in the default
path was always used in preference to the one in the desired location.
Dan Fandrich [Mon, 7 Mar 2005 18:59:04 +0000 (18:59 +0000)]
fseek() with SEEK_SET is broken on large file capable 32-bit systems, so
revert to the SEEK_END method of repositioning the stream after a ftruncate()
and only use SEEK_SET if ftruncate() isn't available.
Daniel Stenberg [Mon, 7 Mar 2005 08:29:28 +0000 (08:29 +0000)]
test 236: FTP resume upload but denied access to remote file
Daniel Stenberg [Mon, 7 Mar 2005 08:11:36 +0000 (08:11 +0000)]
valgrind.pm fixed
Daniel Stenberg [Sun, 6 Mar 2005 22:33:05 +0000 (22:33 +0000)]
added valgrind.pm to the dist
Dan Fandrich [Sat, 5 Mar 2005 00:54:16 +0000 (00:54 +0000)]
Better cope with a failed or unavailable ftruncate().
Added HAVE_FTRUNCATE to all the static config-*.h files on the assumption
that all those systems provide it.
Daniel Stenberg [Sat, 5 Mar 2005 00:04:52 +0000 (00:04 +0000)]
Samuel Díaz García's correction
Daniel Stenberg [Fri, 4 Mar 2005 23:52:06 +0000 (23:52 +0000)]
Added test case 235 that makes a resumed upload of a file that isn't present
on the remote side. This then converts the operation to an ordinary STOR
upload. This was requested/pointed out by Ignacio Vazquez-Abrams.
It also proved (and I fixed) a bug in the newly rewritten ftp code (and
present in the 7.13.1 release) when trying to resume an upload and the servers
returns an error to the SIZE command. libcurl then loops and sends SIZE
commands infinitely.
Dan Fandrich [Fri, 4 Mar 2005 22:36:56 +0000 (22:36 +0000)]
Reduced the length of data read from the random entropy file.
Dan Fandrich [Fri, 4 Mar 2005 20:10:29 +0000 (20:10 +0000)]
Don't try to read the whole of the random file because when /dev/urandom is
used, it slows initialization too much reading an infinitely long file!
Daniel Stenberg [Fri, 4 Mar 2005 15:42:33 +0000 (15:42 +0000)]
7.13.2-CVS
Daniel Stenberg [Fri, 4 Mar 2005 14:09:04 +0000 (14:09 +0000)]
starting over
Daniel Stenberg [Fri, 4 Mar 2005 13:41:46 +0000 (13:41 +0000)]
stand clear for release time
Daniel Stenberg [Fri, 4 Mar 2005 00:26:50 +0000 (00:26 +0000)]
Dave Dribin made it possible to set CURLOPT_COOKIEFILE to "" to activate
the cookie "engine" without having to provide an empty or non-existing file.
Daniel Stenberg [Fri, 4 Mar 2005 00:24:52 +0000 (00:24 +0000)]
killed trailing whitespace
Daniel Stenberg [Fri, 4 Mar 2005 00:14:45 +0000 (00:14 +0000)]
killed trailing whitespace
Daniel Stenberg [Fri, 4 Mar 2005 00:12:02 +0000 (00:12 +0000)]
Rene Rebe fixed a -# crash when more data than expected was retrieved.
Daniel Stenberg [Thu, 3 Mar 2005 23:27:09 +0000 (23:27 +0000)]
new VB binding
Daniel Stenberg [Thu, 3 Mar 2005 23:25:13 +0000 (23:25 +0000)]
VB binding, updated the .NET info
Daniel Stenberg [Thu, 3 Mar 2005 13:13:21 +0000 (13:13 +0000)]
mention buffer overflows fixed
Daniel Stenberg [Thu, 3 Mar 2005 06:51:31 +0000 (06:51 +0000)]
fix the distribution files
Dan Fandrich [Mon, 28 Feb 2005 23:54:17 +0000 (23:54 +0000)]
Fix for a base64 decode heap buffer overflow vulnerability.
Dan Fandrich [Thu, 24 Feb 2005 18:54:23 +0000 (18:54 +0000)]
Fixed some compiler warnings. Fixed a low incidence memory leak in the test server.
Daniel Stenberg [Tue, 22 Feb 2005 18:39:40 +0000 (18:39 +0000)]
Updated as suggested by Samuel Díaz García
Daniel Stenberg [Tue, 22 Feb 2005 12:20:30 +0000 (12:20 +0000)]
krb4 fixed
Daniel Stenberg [Tue, 22 Feb 2005 12:10:30 +0000 (12:10 +0000)]
Curl_base64_decode() now returns an allocated buffer
Daniel Stenberg [Tue, 22 Feb 2005 07:44:14 +0000 (07:44 +0000)]
Thanks for the notification iDEFENCE. We are the "initial vendor" and we sure
got no notification, no mail, no nothing.
You didn't even bother to mail us when you went public with this. Cool.
NTLM buffer overflow fix, as reported here:
http://www.securityfocus.com/archive/1/391042
Daniel Stenberg [Sat, 19 Feb 2005 22:33:06 +0000 (22:33 +0000)]
added test case 234 which is like 233 but uses --location-trusted instead so
thus the second request to the new host will use authentication fine
Daniel Stenberg [Fri, 18 Feb 2005 23:53:07 +0000 (23:53 +0000)]
Ralph Mitchell reported a flaw when you used a proxy with auth, and you
requested data from a host and then followed a redirect to another
host. libcurl then didn't use the proxy-auth properly in the second request,
due to the host-only check for original host name wrongly being extended to
the proxy auth as well. Added test case 233 to verify the flaw and that the
fix removed the problem.
Daniel Stenberg [Fri, 18 Feb 2005 11:54:52 +0000 (11:54 +0000)]
socket leak, mingw build
Daniel Stenberg [Fri, 18 Feb 2005 08:24:53 +0000 (08:24 +0000)]
Based on Mike Dobbs' report, BUILDING_LIBCURL is now defined in here if it
runs to build with mingw.
Daniel Stenberg [Thu, 17 Feb 2005 14:45:03 +0000 (14:45 +0000)]
close the socket properly when returning error due to failing localbind
Bug report #1124588 by David
Daniel Stenberg [Thu, 17 Feb 2005 07:47:32 +0000 (07:47 +0000)]
mention filename= for the -F
Daniel Stenberg [Wed, 16 Feb 2005 14:31:23 +0000 (14:31 +0000)]
Christopher R. Palmer reported a problem with HTTP-POSTing using "anyauth"
that picks NTLM. Thanks to David Byron letting me test NTLM against his
servers, I could quickly repeat and fix the problem. It turned out to be:
When libcurl POSTs without knowing/using an authentication and it gets back a
list of types from which it picks NTLM, it needs to either continue sending
its data if it keeps the connection alive, or not send the data but close the
connection. Then do the first step in the NTLM auth. libcurl didn't send the
data nor close the connection but simply read the response-body and then sent
the first negotiation step. Which then failed miserably of course. The fixed
version forces a connection if there is more than 2000 bytes left to send.
Daniel Stenberg [Mon, 14 Feb 2005 23:50:29 +0000 (23:50 +0000)]
check for ENGINE_load_builtin_engines() as well if engine is around
Marty Kuhrt [Mon, 14 Feb 2005 22:37:59 +0000 (22:37 +0000)]
changed config-vms info
Marty Kuhrt [Mon, 14 Feb 2005 22:36:21 +0000 (22:36 +0000)]
changed curlmsg.* entries to see if CVS would ignore it now
Daniel Stenberg [Mon, 14 Feb 2005 09:30:40 +0000 (09:30 +0000)]
Rename Curl_pretransfersec() to *_second_connect() since it does not just
do pretransfer stuff like Curl_pretransfer().
Daniel Stenberg [Fri, 11 Feb 2005 22:50:57 +0000 (22:50 +0000)]
Fixed bad krb4 code. It always tried to use krb4 if built enabled.
Marty Kuhrt [Fri, 11 Feb 2005 22:42:16 +0000 (22:42 +0000)]
rename amigaos.c and nwlib.c if they exist before building
Daniel Stenberg [Fri, 11 Feb 2005 22:05:04 +0000 (22:05 +0000)]
Removed per Marty's request: The .h_* files aren't needed anymore, I
consolidated them into one file called config-vms.h. The curlmsg.h and .sdl
files are generated from the curlmsg.msg file and, thus, shouldn't be in the
dist.
Marty Kuhrt [Fri, 11 Feb 2005 21:17:23 +0000 (21:17 +0000)]
re-sync'd with curlmsg.msg
Marty Kuhrt [Fri, 11 Feb 2005 21:07:35 +0000 (21:07 +0000)]
ignore curlmsg.h and .sdl as they are generated by curlmsg.msg
Marty Kuhrt [Fri, 11 Feb 2005 21:01:52 +0000 (21:01 +0000)]
sync'd error codes with include/curl.h
Marty Kuhrt [Fri, 11 Feb 2005 20:17:21 +0000 (20:17 +0000)]
Added $Id$ and pre-exisiting logical check
Daniel Stenberg [Fri, 11 Feb 2005 19:34:05 +0000 (19:34 +0000)]
remove the check for strftime(), we don't need it
Daniel Stenberg [Fri, 11 Feb 2005 00:03:49 +0000 (00:03 +0000)]
Removed all uses of strftime() since it uses the localised version of the
week day names and month names and servers don't like that.
Daniel Stenberg [Thu, 10 Feb 2005 08:57:23 +0000 (08:57 +0000)]
valgrind stuff for test suite, vms build and more
Daniel Stenberg [Thu, 10 Feb 2005 08:50:33 +0000 (08:50 +0000)]
Moved out the valgrind report parser to valgrind.pm, to make it easier to
test it outside the test suite. Now we also disable valgrind usage if libcurl
was built shared, as then valgrind is only testing the wrapper-script running
shell which is pointless.
Daniel Stenberg [Thu, 10 Feb 2005 07:45:26 +0000 (07:45 +0000)]
typecast assign to ftpport from int to prevent warnings
Daniel Stenberg [Thu, 10 Feb 2005 07:45:08 +0000 (07:45 +0000)]
init fix for non-SSL builds
Marty Kuhrt [Thu, 10 Feb 2005 01:54:11 +0000 (01:54 +0000)]
Reduced the two config-vms.h_* files into this one.
Daniel Stenberg [Wed, 9 Feb 2005 23:16:03 +0000 (23:16 +0000)]
David Byron fixed his SSL problems, initially mentioned here:
http://curl.haxx.se/mail/lib-2005-01/0240.html. It turned out we didn't use
SSL_pending() as we should.
This was TODO-RELEASE issue #59.
Daniel Stenberg [Wed, 9 Feb 2005 23:09:12 +0000 (23:09 +0000)]
David Byron identified the lack of SSL_pending() use, and this is my take
at fixing this issue.
Daniel Stenberg [Wed, 9 Feb 2005 23:04:51 +0000 (23:04 +0000)]
better error checking and SSL init by David Byron
Daniel Stenberg [Wed, 9 Feb 2005 22:47:57 +0000 (22:47 +0000)]
prevent a compiler warning
Gisle Vanem [Wed, 9 Feb 2005 15:15:01 +0000 (15:15 +0000)]
Some functions are static here, but extern in libxml's
SAX.h. gcc doesn't like that. Rename.
Daniel Stenberg [Wed, 9 Feb 2005 14:34:46 +0000 (14:34 +0000)]
the new ftp code and Gisle's DICT fix
Daniel Stenberg [Wed, 9 Feb 2005 14:29:57 +0000 (14:29 +0000)]
issue #54 done
Gisle Vanem [Wed, 9 Feb 2005 14:28:35 +0000 (14:28 +0000)]
Set 'bits.close' in case of malloc fail.
Don't free 'lud_dn' twice in case curl_unescape()
fails.
Daniel Stenberg [Wed, 9 Feb 2005 14:13:21 +0000 (14:13 +0000)]
add missing error codes
Gisle Vanem [Wed, 9 Feb 2005 14:01:15 +0000 (14:01 +0000)]
Use CURL_SOCKET_BAD.
Gisle Vanem [Wed, 9 Feb 2005 13:59:40 +0000 (13:59 +0000)]
Handle CURLE_LOGIN_DENIED in strerror.c.
For ftp only?
Daniel Stenberg [Wed, 9 Feb 2005 13:47:35 +0000 (13:47 +0000)]
FD_SET can be big macro, use braces
Daniel Stenberg [Wed, 9 Feb 2005 13:06:40 +0000 (13:06 +0000)]
FTP code turned into state machine. Not completely yet, but a good start.
The tag 'before_ftp_statemachine' was set just before this commit in case
of future need.
Gisle Vanem [Wed, 9 Feb 2005 11:50:41 +0000 (11:50 +0000)]
Replace LF with CRLF. Ref RFC-2229, sec 2.3:
"Each command line must be terminated by a CRLF".
Daniel Stenberg [Tue, 8 Feb 2005 23:39:47 +0000 (23:39 +0000)]
-O clarification
Daniel Stenberg [Tue, 8 Feb 2005 19:07:28 +0000 (19:07 +0000)]
inflate and out of memory fixes
Daniel Stenberg [Tue, 8 Feb 2005 19:03:27 +0000 (19:03 +0000)]
ares_gethostbyname wants a 'ares_host_callback' in the 4th argument
Gisle Vanem [Tue, 8 Feb 2005 12:36:13 +0000 (12:36 +0000)]
Curl_addrinfo?_callback() and addrinfo_callback() now returns
CURLE_OK or CURLE_OUT_OF_MEMORY.
Add typecast in hostares.c.
Gisle Vanem [Tue, 8 Feb 2005 12:32:28 +0000 (12:32 +0000)]
Don't free too much in freedirs() if realloc() fails.
Daniel Stenberg [Tue, 8 Feb 2005 07:36:57 +0000 (07:36 +0000)]
Curl_wait_for_resolv() no longer disconnects on failure, but leaves that
operation to the caller. Disconnecting has the disadvantage that the conn
pointer gets completely invalidated and this is not handled on lots of places
in the code.
Dan Fandrich [Mon, 7 Feb 2005 19:12:37 +0000 (19:12 +0000)]
Fix for a bug report that compressed files that are exactly 64 KiB long
produce a zlib error.
Gisle Vanem [Sun, 6 Feb 2005 12:43:40 +0000 (12:43 +0000)]
Preserve previous status in Curl_http_done().
Daniel Stenberg [Sat, 5 Feb 2005 10:25:20 +0000 (10:25 +0000)]
valgrind errors occur too often when 'make test' is used. It is because too
many third-party libs and tools have problems. When curl is built without
--disable-shared, the testing is done with a front-end script which makes the
valgrind testing include (ba)sh as well and that often causes valgrind
errors. Either we improve the valgrind error scanner a lot to better identify
(lib)curl errors only, or we disable valgrind checking by default
Daniel Stenberg [Fri, 4 Feb 2005 23:53:12 +0000 (23:53 +0000)]
fix type
Daniel Stenberg [Fri, 4 Feb 2005 23:43:44 +0000 (23:43 +0000)]
Eric Vergnaud found a use of an uninitialized variable
Daniel Stenberg [Fri, 4 Feb 2005 13:42:41 +0000 (13:42 +0000)]
David Byron pointed out that this -1 on the buffer size is pointless since
the buffer is already BUFSIZE +1 one big to fit the extra trailing zero. This
change is reported to fix David's weird SSL problem...
Daniel Stenberg [Wed, 2 Feb 2005 19:25:49 +0000 (19:25 +0000)]
another example
Daniel Stenberg [Wed, 2 Feb 2005 19:25:37 +0000 (19:25 +0000)]
HTML parsing example with libtidy, by Jeff Pohlmeyer
Daniel Stenberg [Tue, 1 Feb 2005 08:46:06 +0000 (08:46 +0000)]
and we start over again
Daniel Stenberg [Tue, 1 Feb 2005 07:54:36 +0000 (07:54 +0000)]
7.13 coming up
Daniel Stenberg [Mon, 31 Jan 2005 20:03:01 +0000 (20:03 +0000)]
somewhat nicer libcurl usage
Daniel Stenberg [Mon, 31 Jan 2005 18:23:42 +0000 (18:23 +0000)]
htmltitle