Daniel Stenberg [Sat, 31 Oct 2009 18:51:50 +0000 (18:51 +0000)]
- Gabriel Kuri reported a problem with CURLINFO_CONTENT_LENGTH_DOWNLOAD if the
download was 0 bytes, as libcurl would then return the size as unknown (-1)
and not 0. I wrote a fix and test case 566 to verify it.
Yang Tse [Sat, 31 Oct 2009 12:52:44 +0000 (12:52 +0000)]
Mention many changes
Yang Tse [Sat, 31 Oct 2009 12:51:49 +0000 (12:51 +0000)]
Mention --enable-symbol-hiding configure option
Yang Tse [Sat, 31 Oct 2009 04:16:40 +0000 (04:16 +0000)]
Symbol hiding configure options renamed to the hopefully less ambiguous
--enable-symbol-hiding and --disable-symbol-hiding as well as related
macro names and some internal variables used for them.
Related configuration file preprocessor symbols named to
CARES_SYMBOL_HIDING and CARES_SYMBOL_SCOPE_EXTERN.
Daniel Stenberg [Fri, 30 Oct 2009 22:38:21 +0000 (22:38 +0000)]
Added test case 566 in an attempt to repeat bug 2884561
(http://curl.haxx.se/bug/view.cgi?id=2884561) but it seems to work for me...
Daniel Stenberg [Fri, 30 Oct 2009 22:28:56 +0000 (22:28 +0000)]
- Liza Alenchery mentioned a problem with re-used SCP connection when a bad
auth is used, as it caused a crash. I failed to repeat the issue, but still
made a change that now forces the TCP connection used for a freed SCP
session to get closed and not be re-used.
Daniel Stenberg [Fri, 30 Oct 2009 22:24:48 +0000 (22:24 +0000)]
- "Tom" posted a bug report that mentioned how libcurl did wrong when doing a
POST using a read callback, with Digest authentication and
"Transfer-Encoding: chunked" enforced. I would then cause the first request
to be wrongly sent and then basically hang until the server closed the
connection. I fixed the problem and added test case 565 to verify it.
Yang Tse [Fri, 30 Oct 2009 18:20:17 +0000 (18:20 +0000)]
Header inclusion depending on HAVE_* symbol.
Fix two typos.
Yang Tse [Fri, 30 Oct 2009 18:07:17 +0000 (18:07 +0000)]
Comparison of the Initial revision of this file with ares_parse_a_reply.c
shows that this one is actually a modified copy of ares_parse_a_reply.c.
In order to comply with ares_parse_a_reply.c's M.I.T. license, the old
1998 M.I.T. copyright notice is now also preserved in this file the same
as it is done in other ares_parse_*.c files.
Yang Tse [Fri, 30 Oct 2009 18:03:57 +0000 (18:03 +0000)]
Add CVS Id tag.
Fix identation of some license lines.
Yang Tse [Fri, 30 Oct 2009 18:03:04 +0000 (18:03 +0000)]
Add CVS Id tag.
Yang Tse [Fri, 30 Oct 2009 16:27:30 +0000 (16:27 +0000)]
Fix comment
Yang Tse [Fri, 30 Oct 2009 16:21:56 +0000 (16:21 +0000)]
In no particular order, changed/fixed all of the following in
ares_parse_txt_reply() current version:
- Fixed a couple of potential double free's.
- Fixed memory leaks upon out of memory condition.
- Fixed pointer arithmetic.
- Setting ntxtreply to zero upon entry for all failure cases.
- Changed data type to size_t for variables substr_len, str_len and
the length member of ares_txt_reply struct.
- Avoided a couple of memcpy() calls.
- Changed i data type to unsigned int to prevent compiler warnings.
- Adjusted a comment.
- Use ARES_SUCCESS literal for successfull completion.
- Added CVS Id tag.
Yang Tse [Thu, 29 Oct 2009 19:13:20 +0000 (19:13 +0000)]
Add c-ares DLL resource file to distribution archive
Yang Tse [Thu, 29 Oct 2009 18:30:38 +0000 (18:30 +0000)]
ignore files
Yang Tse [Thu, 29 Oct 2009 18:00:24 +0000 (18:00 +0000)]
Empty subdir
Yang Tse [Thu, 29 Oct 2009 17:52:56 +0000 (17:52 +0000)]
Updated MSVC 6.0 workspace and project files that allows building
dynamic and static c-ares libraries in debug and release flavours.
Additionally each of the three sample programs is built against
each of the four possible c-ares libraries, generating all this
a total number of 12 executables and 4 libraries.
Daniel Stenberg [Thu, 29 Oct 2009 09:12:40 +0000 (09:12 +0000)]
no need to check for NULL pointers before dereferencing, as the pointers
MUST be valid and they are dereferenced further down in the function
unconditionally!
Daniel Stenberg [Thu, 29 Oct 2009 09:06:42 +0000 (09:06 +0000)]
shorten the descriptions somewhat
Daniel Stenberg [Thu, 29 Oct 2009 09:06:22 +0000 (09:06 +0000)]
update to the new struct name
Daniel Stenberg [Thu, 29 Oct 2009 08:59:40 +0000 (08:59 +0000)]
Jakub Hrozek added ares_parse_txt_reply() for TXT parsing
Daniel Stenberg [Thu, 29 Oct 2009 08:50:34 +0000 (08:50 +0000)]
use 'ares_srv_reply' for proper name-spacing
Yang Tse [Thu, 29 Oct 2009 04:02:21 +0000 (04:02 +0000)]
Fix compiler warning: control reaches end of non-void function
Yang Tse [Thu, 29 Oct 2009 03:48:00 +0000 (03:48 +0000)]
Take in account c-ares 1.6.1 will use __declspec function decoration
for Win32 and Symbian unless CARES_STATICLIB is defined to use static
library linkage.
Yang Tse [Thu, 29 Oct 2009 02:40:16 +0000 (02:40 +0000)]
Add reference for ares_parse_srv_reply.pdf
Yang Tse [Thu, 29 Oct 2009 01:59:57 +0000 (01:59 +0000)]
Add reference for ares_parse_srv_reply docs
Yang Tse [Thu, 29 Oct 2009 01:34:19 +0000 (01:34 +0000)]
External API function linkage decoration adjustment
Yang Tse [Thu, 29 Oct 2009 01:02:54 +0000 (01:02 +0000)]
External API function linkage decoration adjustment
Daniel Stenberg [Wed, 28 Oct 2009 20:30:23 +0000 (20:30 +0000)]
Since the NSS lib closes the socket the memory tracking system wrongly gets a
false positive on a leaked socket, so this introduces a way to tell the system
that the socket is indeed closed without explicitly closing it!
Yang Tse [Wed, 28 Oct 2009 19:45:26 +0000 (19:45 +0000)]
Initial step towards the ability to reduce c-ares exported symbols
based on the 'visibility' attribute for GNUC and __global for Sun
compilers, taking also in account __declspec function decoration
for Win32 and Symbian DLL's.
Introducing configure options --enable-hidden-symbols and
--disable-hidden-symbols following libcurl's naming.
Yang Tse [Wed, 28 Oct 2009 00:33:28 +0000 (00:33 +0000)]
libssh2 detection changes mentioned in curl.haxx.se/mail/lib-2009-10/0343.html
Yang Tse [Tue, 27 Oct 2009 17:03:11 +0000 (17:03 +0000)]
Fix comment
Yang Tse [Tue, 27 Oct 2009 16:56:20 +0000 (16:56 +0000)]
Fix spelling
Yang Tse [Tue, 27 Oct 2009 16:38:42 +0000 (16:38 +0000)]
Fix Pelles C Win32 target compilation issues
Daniel Stenberg [Mon, 26 Oct 2009 08:54:23 +0000 (08:54 +0000)]
grrr, removed the conflict markers
Daniel Stenberg [Mon, 26 Oct 2009 08:53:07 +0000 (08:53 +0000)]
spell fix by Michael Wood
Daniel Stenberg [Sun, 25 Oct 2009 18:15:14 +0000 (18:15 +0000)]
- Dima Barsky made the curl cookie parser accept cookies even with blank or
unparsable expiry dates and then treat them as session cookies - previously
libcurl would reject cookies with a date format it couldn't parse. Research
shows that the major browser treat such cookies as session cookies. I
modified test 8 and 31 to verify this.
Dan Fandrich [Sat, 24 Oct 2009 20:20:08 +0000 (20:20 +0000)]
Mention that Android works
Daniel Stenberg [Sat, 24 Oct 2009 16:34:04 +0000 (16:34 +0000)]
Fabian Keil's suggested wording
Yang Tse [Fri, 23 Oct 2009 15:49:05 +0000 (15:49 +0000)]
John Engelhart noticed an unreleased problem relative to a duplicate
ARES_ECANCELLED error code value and missing error code description.
Patrick Monnerat [Fri, 23 Oct 2009 15:05:45 +0000 (15:05 +0000)]
OS400 install: Duplicate H include file to file CURL to support more include path forms.
Daniel Stenberg [Thu, 22 Oct 2009 07:56:10 +0000 (07:56 +0000)]
update the company sponsors part, as one company is no longer sponsoring
and another is sponsoring more
Yang Tse [Wed, 21 Oct 2009 18:46:00 +0000 (18:46 +0000)]
Update MSVC 6 caveats section
Yang Tse [Wed, 21 Oct 2009 18:01:11 +0000 (18:01 +0000)]
Update memory tracking/debugging reference
Daniel Stenberg [Wed, 21 Oct 2009 14:56:25 +0000 (14:56 +0000)]
- Attempt to use pkg-config for finding out libssh2 installation details
during configure.
Daniel Stenberg [Wed, 21 Oct 2009 12:39:27 +0000 (12:39 +0000)]
mention bug 2848436 in regard to the TFTP problems
Daniel Stenberg [Wed, 21 Oct 2009 12:36:54 +0000 (12:36 +0000)]
s/koresh/Johan van Selst/
Daniel Stenberg [Wed, 21 Oct 2009 12:33:56 +0000 (12:33 +0000)]
add --crlfile to the man page
Daniel Stenberg [Wed, 21 Oct 2009 12:29:52 +0000 (12:29 +0000)]
- A patch in bug report #2883177 (curl.haxx.se/bug/view.cgi?id=2883177)
by user 'koresh' introduced the --crlfile option to curl, which makes curl
tell libcurl about a file with CRL (certificate revocation list) data to
read.
Daniel Stenberg [Wed, 21 Oct 2009 07:40:33 +0000 (07:40 +0000)]
spelling corrections
Yang Tse [Wed, 21 Oct 2009 02:30:56 +0000 (02:30 +0000)]
Detect when msvc 6.0 is in use without PSDK installed, intentionally
fail to build when this happens, and show an appropriate error.
The brave of heart can circumvect this. Defining ALLOW_MSVC6_WITHOUT_PSDK
in lib/config-win32.h, although absolutely discouraged and unsupported,
this will allow the die hard MSVC hacker to build in such a discouraged
environment.
The actually supported 'fix' is to install 'February 2003 Platform SDK'
a.k.a. 'Windows Server 2003 PSDK' which can be freely downloaded from
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/psdk-full.htm
Gunter Knauf [Mon, 19 Oct 2009 18:10:47 +0000 (18:10 +0000)]
added cast macros to silent compiler warnings with 64-bit systems.
Yang Tse [Mon, 19 Oct 2009 15:56:26 +0000 (15:56 +0000)]
Fix compiler warning: local variable may be used without having been initialized
Yang Tse [Mon, 19 Oct 2009 04:13:12 +0000 (04:13 +0000)]
Use *_CHECK_PATH_SEPARATOR_REQUIRED to ensure that *_CHECK_PATH_SEPARATOR
is only expanded and included once in the configure script.
Yang Tse [Mon, 19 Oct 2009 04:11:54 +0000 (04:11 +0000)]
Our _AS_PATH_SEPARATOR_PREPARE override is now m4_defun'd instead of m4_define'd
due to autoconf 2.64 m4_require'ing it in _AS_SHELL_SANITIZE indirectly through
_AS_PATH_WALK.
Daniel Stenberg [Sun, 18 Oct 2009 21:56:19 +0000 (21:56 +0000)]
- Ray Dassen provided a patch in Debian's bug tracker (bug number #551461)
that now makes curl_getdate(3) actually handles RFC 822 formatted dates that
use the "single letter military timezones".
http://www.rfc-ref.org/RFC-TEXTS/822/chapter5.html has the details.
Yang Tse [Sun, 18 Oct 2009 03:37:39 +0000 (03:37 +0000)]
Check for basename() is now done the same as other function checks
Daniel Stenberg [Sun, 18 Oct 2009 01:11:25 +0000 (01:11 +0000)]
- Fixed memory leak in the SCP/SFTP code as it never freed the knownhosts
data!
Daniel Stenberg [Sun, 18 Oct 2009 00:18:27 +0000 (00:18 +0000)]
John Dennis filed bug report #2873666
(http://curl.haxx.se/bug/view.cgi?id=2873666) which identified a problem which
made libcurl loop infinitely when given incorrect credentials when using HTTP
GSS negotiate authentication.
Daniel Stenberg [Sun, 18 Oct 2009 00:10:13 +0000 (00:10 +0000)]
- Kevin Baughman found a double close() problem with libcurl-NSS, as when
libcurl called NSS to close the SSL "session" it also closed the actual
socket.
Daniel Stenberg [Sat, 17 Oct 2009 19:31:57 +0000 (19:31 +0000)]
s/Make NTLM work without OpenSSL functions/Make NTLM work with other crypto functions
As it actually builds with gcrypt these days, but not the NSS functions.
Daniel Stenberg [Sat, 17 Oct 2009 18:31:57 +0000 (18:31 +0000)]
README.NSS is gone
Yang Tse [Sat, 17 Oct 2009 17:33:19 +0000 (17:33 +0000)]
Fix invalid file name characters handling on Windows
Yang Tse [Fri, 16 Oct 2009 13:30:31 +0000 (13:30 +0000)]
Move comment
Yang Tse [Thu, 15 Oct 2009 17:34:09 +0000 (17:34 +0000)]
Replace tabs with spaces
Yang Tse [Wed, 14 Oct 2009 18:11:36 +0000 (18:11 +0000)]
Fix an OOM handling problem
Gunter Knauf [Wed, 14 Oct 2009 02:32:27 +0000 (02:32 +0000)]
we only need to call ASN1_STRING_length() if ASN1_STRING_type() detects UTF-8,
else ASN1_STRING_to_UTF8() returns the string length.
Yang Tse [Tue, 13 Oct 2009 14:48:35 +0000 (14:48 +0000)]
Update LDAP URL format reference
Yang Tse [Tue, 13 Oct 2009 13:53:57 +0000 (13:53 +0000)]
Fix compiler warning: argument is incompatible with corresponding format string conversion
Yang Tse [Sat, 10 Oct 2009 12:31:27 +0000 (12:31 +0000)]
Fix potential out-of-bounds read
Yang Tse [Sat, 10 Oct 2009 12:29:32 +0000 (12:29 +0000)]
Fix compiler warning: loop without body
Yang Tse [Fri, 9 Oct 2009 14:06:38 +0000 (14:06 +0000)]
Fix compiler warning
Yang Tse [Thu, 8 Oct 2009 18:38:29 +0000 (18:38 +0000)]
Fix compiler warning
Yang Tse [Thu, 8 Oct 2009 17:06:08 +0000 (17:06 +0000)]
Fix compiler warning
Yang Tse [Thu, 8 Oct 2009 12:44:25 +0000 (12:44 +0000)]
Attempt to silence bogus compiler warning: "Potential null pointer dereference"
Yang Tse [Thu, 8 Oct 2009 00:02:32 +0000 (00:02 +0000)]
Fix compiler warning: addition result could be truncated before cast to bigger sized type
Kamil Dudka [Wed, 7 Oct 2009 20:34:08 +0000 (20:34 +0000)]
fix gcc warnings in lib/nss.c
Yang Tse [Wed, 7 Oct 2009 18:47:04 +0000 (18:47 +0000)]
Overhauled ares__get_hostent()
- Fixing out of bounds memory overwrite triggered with malformed /etc/hosts file.
- Improving parsing of /etc/hosts file.
- Validating requested address family.
- Ensuring that failures always return a NULL pointer.
- Adjusting header inclusions.
Gunter Knauf [Wed, 7 Oct 2009 12:25:32 +0000 (12:25 +0000)]
removed NSS README since the mentioned problems are now solved.
Yang Tse [Tue, 6 Oct 2009 14:14:13 +0000 (14:14 +0000)]
Fix vc-x64 target having MACHINE= wrongly positioned, and added vc-x64-ssl-zlib
target as indicated end requested by Viktor Szakats in bug report #2872879.
Yang Tse [Tue, 6 Oct 2009 14:00:03 +0000 (14:00 +0000)]
Fix comment
Yang Tse [Tue, 6 Oct 2009 13:59:37 +0000 (13:59 +0000)]
Fix ssize_t redefinition errors on WIN64 reported by Alexey Simak
Dan Fandrich [Tue, 6 Oct 2009 06:54:46 +0000 (06:54 +0000)]
Minix has new build prerequisites using autoconf 2.64
Yang Tse [Mon, 5 Oct 2009 02:47:34 +0000 (02:47 +0000)]
more files to ignore
Daniel Stenberg [Thu, 1 Oct 2009 07:59:45 +0000 (07:59 +0000)]
- Tom Mueller correctly reported in bug report #2870221
(http://curl.haxx.se/bug/view.cgi?id=2870221) that libcurl returned an
incorrect return code from the internal trynextip() function which caused
him grief. This is a regression that was introduced in 7.19.1 and I find it
strange it hasn't hit us harder, but I won't persue into figuring out
exactly why.
Daniel Stenberg [Thu, 1 Oct 2009 07:37:58 +0000 (07:37 +0000)]
mention some alternative method names in the docs for --request
Daniel Stenberg [Thu, 1 Oct 2009 07:35:15 +0000 (07:35 +0000)]
mention "quiet" for the --silent option to get easier to find
Daniel Stenberg [Thu, 1 Oct 2009 07:05:07 +0000 (07:05 +0000)]
- Constantine Sapuntzakis: The current implementation will always set
SO_SNDBUF to CURL_WRITE_SIZE even if the SO_SNDBUF starts out larger. The
patch doesn't do a setsockopt if SO_SNDBUF is already greater than
CURL_WRITE_SIZE. This should help folks who have set up their computer with
large send buffers.
Yang Tse [Tue, 29 Sep 2009 16:34:03 +0000 (16:34 +0000)]
Check if _REENTRANT definition is required to
make errno available as a preprocessor macro.
Dan Fandrich [Mon, 28 Sep 2009 18:13:35 +0000 (18:13 +0000)]
Removed some extraneous carriage return characters
Yang Tse [Mon, 28 Sep 2009 17:01:23 +0000 (17:01 +0000)]
fix compiler warning: conversion from "long" to "size_t" may lose sign
Yang Tse [Mon, 28 Sep 2009 16:05:20 +0000 (16:05 +0000)]
libcurl private function Curl_memrchr() now in curl_memrchr.c and curl_memrchr.h
Yang Tse [Mon, 28 Sep 2009 12:16:29 +0000 (12:16 +0000)]
Added check for memrchr function or macro
Daniel Stenberg [Sun, 27 Sep 2009 21:37:24 +0000 (21:37 +0000)]
tiny indent fix
Daniel Stenberg [Sun, 27 Sep 2009 21:34:13 +0000 (21:34 +0000)]
- I introduced a maximum limit for received HTTP headers. It is controlled by
the define CURL_MAX_HTTP_HEADER which is even exposed in the public header
file to allow for users to fairly easy rebuild libcurl with a modified
limit. The rationale for a fixed limit is that libcurl is realloc()ing a
buffer to be able to put a full header into it, so that it can call the
header callback with the entire header, but that also risk getting it into
trouble if a server by mistake or willingly sends a header that is more or
less without an end. The limit is set to 100K.
Daniel Stenberg [Sun, 27 Sep 2009 21:14:15 +0000 (21:14 +0000)]
unify two very similar code sections into one single function, header_append()
Daniel Stenberg [Sat, 26 Sep 2009 20:51:51 +0000 (20:51 +0000)]
- John P. McCaskey posted a bug report that showed how libcurl did wrong when
saving received cookies with no given path, if the path in the request had a
query part. That is means a question mark (?) and characters on the right
side of that. I wrote test case 1105 and fixed this problem.
Daniel Stenberg [Sat, 26 Sep 2009 11:46:41 +0000 (11:46 +0000)]
added test 1105 (disabled) - it repeats a cookie path bug we need to fix
Kamil Dudka [Sat, 26 Sep 2009 08:31:48 +0000 (08:31 +0000)]
- Implemented a protocol independent way to specify blocking direction, used by
transfer.c for blocking. It is currently used only by SCP and SFTP protocols.
This enhancement resolves an issue with 100% CPU usage during SFTP upload,
reported by Vourhey.
Daniel Stenberg [Fri, 25 Sep 2009 20:26:44 +0000 (20:26 +0000)]
minor whitespace edit