Yang Tse [Fri, 20 Nov 2009 09:57:25 +0000 (09:57 +0000)]
Remove typecast
Yang Tse [Fri, 20 Nov 2009 09:54:15 +0000 (09:54 +0000)]
Fix comment
Yang Tse [Fri, 20 Nov 2009 09:14:37 +0000 (09:14 +0000)]
Add ares_data.c and ares_data.h
Yang Tse [Fri, 20 Nov 2009 09:06:33 +0000 (09:06 +0000)]
Jakub Hrozek modified ares_parse_srv_reply() and ares_parse_txt_reply() API
to return a linked lists of results. These were also modified to internally
use the ares_data memory struct and as such its result must be free'ed with
ares_free_data().
Yang Tse [Fri, 20 Nov 2009 08:50:03 +0000 (08:50 +0000)]
Initial support for the generic ares_free_data() function that will allow
applications to free memory allocated and returned by some c-ares funtions.
Yang Tse [Thu, 19 Nov 2009 17:21:56 +0000 (17:21 +0000)]
Explicit initialization of all FTP struct members in ftp_init()
Yang Tse [Wed, 18 Nov 2009 11:53:31 +0000 (11:53 +0000)]
Fix compiler warning: ISO C90 forbids mixed declarations and code
Yang Tse [Wed, 18 Nov 2009 11:21:58 +0000 (11:21 +0000)]
Make memory tracking system intolerant with zero sized malloc(),
calloc() and realloc() function calls.
Yang Tse [Wed, 18 Nov 2009 10:33:54 +0000 (10:33 +0000)]
Make usage of calloc()'s arguments consistent with rest of code base
Yang Tse [Wed, 18 Nov 2009 02:57:34 +0000 (02:57 +0000)]
workaround icc 9.1 optimizer issue
Daniel Stenberg [Tue, 17 Nov 2009 22:53:55 +0000 (22:53 +0000)]
- Constantine Sapuntzakis provided another fix for the DNS cache that could
end up with entries that wouldn't time-out:
1. Set up a first web server that redirects (307) to a http://server:port
that's down
2. Have curl connect to the first web server using curl multi
After the curl_easy_cleanup call, there will be curl dns entries hanging
around with in_use != 0.
(http://curl.haxx.se/bug/view.cgi?id=2891591)
Daniel Stenberg [Tue, 17 Nov 2009 18:11:06 +0000 (18:11 +0000)]
- Marc Kleine-Budde fixed: curl saved the LDFLAGS set during configure into
its pkg-config file. So -Wl stuff ended up in the .pc file, which is really
bad, and breaks if there are multiple -Wl in our LDFLAGS (which are in
PTXdist). bug #2893592 (http://curl.haxx.se/bug/view.cgi?id=2893592)
Yang Tse [Mon, 16 Nov 2009 23:01:37 +0000 (23:01 +0000)]
Add icc fvisibility bug test
Yang Tse [Mon, 16 Nov 2009 20:02:12 +0000 (20:02 +0000)]
Fix icc 9.0 compiler warning: external definition with no prior declaration
Yang Tse [Mon, 16 Nov 2009 01:56:45 +0000 (01:56 +0000)]
Update serial number
Yang Tse [Mon, 16 Nov 2009 01:56:16 +0000 (01:56 +0000)]
Fix three var names
Yang Tse [Mon, 16 Nov 2009 01:55:48 +0000 (01:55 +0000)]
Add check for assert.h header file
Kamil Dudka [Sun, 15 Nov 2009 15:23:43 +0000 (15:23 +0000)]
- David Byron improved the configure script to use pkg-config to find OpenSSL
(and in particular the list of required libraries) even if a path is given
as argument to --with-ssl
Yang Tse [Sun, 15 Nov 2009 13:43:15 +0000 (13:43 +0000)]
getaddrinfo is fully thread safe on solaris versions which
implement the function even when h_errno is not a macro.
The h_errno macro test now only done on systems for which there
is no hard coded knowledge about getaddrinfo's thread safeness.
Yang Tse [Sun, 15 Nov 2009 12:58:50 +0000 (12:58 +0000)]
Client certificate ENG file type requires OpenSSL 0.9.7 or newer
Yang Tse [Sun, 15 Nov 2009 03:47:13 +0000 (03:47 +0000)]
Remove files generated on previous buildconf/configure run
Yang Tse [Sun, 15 Nov 2009 03:46:14 +0000 (03:46 +0000)]
Add a couple of renamed files to the removal list
Yang Tse [Sun, 15 Nov 2009 02:45:23 +0000 (02:45 +0000)]
Remove enable-thread / disable-thread configure option. These were only placebo
options. The library is always built as thread safe as possible on every system.
Claes Jakobsson [Sat, 14 Nov 2009 19:23:26 +0000 (19:23 +0000)]
Added '--configure' option to curl-config to display original configure arguments when curl was built
Yang Tse [Sat, 14 Nov 2009 18:51:37 +0000 (18:51 +0000)]
Refactor how preprocessor symbol _THREAD_SAFE definition is done.
Yang Tse [Sat, 14 Nov 2009 11:33:49 +0000 (11:33 +0000)]
OpenSSL 0.9.7 or newer required for ENGINE_CTRL_GET_CMD_FROM_NAME definition
Daniel Stenberg [Sat, 14 Nov 2009 09:13:47 +0000 (09:13 +0000)]
- Claes Jakobsson restored the configure functionality to detect NSS when
--with-nss is set but not "yes".
I think we can still improve that to check for pkg-config in that path etc,
but at least this patch brings back the same functionality we had before.
Daniel Stenberg [Sat, 14 Nov 2009 07:53:34 +0000 (07:53 +0000)]
- Camille Moncelier added support for the file type SSL_FILETYPE_ENGINE for
the client certificate. It also disable the key name test as some engines
can select a private key/cert automatically (When there is only one key
and/or certificate on the hardware device used by the engine)
Yang Tse [Sat, 14 Nov 2009 02:30:30 +0000 (02:30 +0000)]
- Constantine Sapuntzakis provided the fix that ensures that an SSL connection
won't be reused unless protection level for peer and host verification match.
Yang Tse [Fri, 13 Nov 2009 20:03:45 +0000 (20:03 +0000)]
Assume that getaddrinfo is thread safe, unless hard coded
knowledge says the contrary or h_errno is not defined.
Yang Tse [Fri, 13 Nov 2009 05:01:51 +0000 (05:01 +0000)]
Related with the threadsafe capability of getaddrinfo:
- Constantine Sapuntzakis reported that Darwin 6.0 a.k.a. MAC OS X 10.2
and newer have a threadsafe getaddrinfo.
- Fix Dragonfly BSD triplet detection.
- In case the hard-coded knowledge says that getaddrinfo is threadsafe,
an additional check is done to verify that h_errno is also defined.
If h_errno isn't defined, we finally assume that it isn't threadsafe.
Jamie Lokier provided the inspiration for this extra check.
Yang Tse [Thu, 12 Nov 2009 22:48:40 +0000 (22:48 +0000)]
AIX 5.2 and newer have threadsafe getaddrinfo.
Add some comments to better understand what the regex's pretend to achieve.
Yang Tse [Thu, 12 Nov 2009 20:29:28 +0000 (20:29 +0000)]
HP-UX 11.11 and later have threadsafe getaddrinfo
Yang Tse [Thu, 12 Nov 2009 19:28:43 +0000 (19:28 +0000)]
Constantine Sapuntzakis patch for hostip.c
No need for a separate variable ndns.
The memory leak detection will detect code that fails to release a dns reference.
The DEBUGASSERT will detect code that releases too many references.
Yang Tse [Thu, 12 Nov 2009 18:31:33 +0000 (18:31 +0000)]
Check if getaddrinfo is threadsafe when function check allows it to be used
Yang Tse [Thu, 12 Nov 2009 14:36:34 +0000 (14:36 +0000)]
Add missing variable initialization
Kamil Dudka [Thu, 12 Nov 2009 11:16:31 +0000 (11:16 +0000)]
- libcurl-NSS now tries to reconnect with TLS disabled in case it detects
a broken TLS server. However it does not happen if SSL version is selected
manually. The approach was originally taken from PSM. Kaspar Brand helped me
to complete the patch. Original bug reports:
https://bugzilla.redhat.com/525496
https://bugzilla.redhat.com/527771
Kamil Dudka [Thu, 12 Nov 2009 10:54:10 +0000 (10:54 +0000)]
- Kevin Baughman provided a fix preventing libcurl-NSS from crash on doubly
closed NSPR descriptor. The issue was hard to find, reported several times
before and always closed unresolved. More info at the RH bug:
https://bugzilla.redhat.com/534176
Yang Tse [Thu, 12 Nov 2009 04:32:08 +0000 (04:32 +0000)]
Make hostip.c compile again
Dan Fandrich [Wed, 11 Nov 2009 22:15:33 +0000 (22:15 +0000)]
Made the path to the binaries absolute
Yang Tse [Wed, 11 Nov 2009 21:19:49 +0000 (21:19 +0000)]
Add last change credit
Yang Tse [Wed, 11 Nov 2009 21:15:34 +0000 (21:15 +0000)]
- Marco Maggi reported that compilation failed when configured --with-gssapi
and GNU GSS installed due to a missing mutual exclusion of header files in
the Kerberos 5 code path. He also verified that my patch worked for him.
Daniel Stenberg [Wed, 11 Nov 2009 14:54:45 +0000 (14:54 +0000)]
NSS SSL connections are also blocking
Daniel Stenberg [Wed, 11 Nov 2009 09:31:37 +0000 (09:31 +0000)]
- Constantine Sapuntzakis posted bug #2891595
(http://curl.haxx.se/bug/view.cgi?id=2891595) which identified how an entry
in the DNS cache would linger too long if the request that added it was in
use that long. He also provided the patch that now makes libcurl capable of
still doing a request while the DNS hash entry may get timed out.
Daniel Stenberg [Wed, 11 Nov 2009 09:01:43 +0000 (09:01 +0000)]
- Christian Schmitz noticed that the progress meter/callback was not properly
used during the FTP connection phase (after the actual TCP connect), while
it of course should be. I also made the speed check get called correctly so
that really slow servers will trigger that properly too.
Yang Tse [Wed, 11 Nov 2009 08:56:46 +0000 (08:56 +0000)]
Renamed fpGetNetworkParams and fpSystemFunction036 to avoid namespace pollution with static library
Yang Tse [Wed, 11 Nov 2009 08:51:31 +0000 (08:51 +0000)]
Add kernel32.lib
Yang Tse [Tue, 10 Nov 2009 22:07:32 +0000 (22:07 +0000)]
Mention last changes
Yang Tse [Tue, 10 Nov 2009 22:04:51 +0000 (22:04 +0000)]
Reinstate copyright symbol lost in previous commit
Yang Tse [Tue, 10 Nov 2009 20:20:13 +0000 (20:20 +0000)]
Make some strings different in resource file for debug or release builds
Yang Tse [Tue, 10 Nov 2009 20:05:10 +0000 (20:05 +0000)]
Ignore more subdirs
Yang Tse [Tue, 10 Nov 2009 18:41:03 +0000 (18:41 +0000)]
Fix compiler warning: conditional expression is constant
Yang Tse [Tue, 10 Nov 2009 18:26:09 +0000 (18:26 +0000)]
Sync linker and resource compiler options with Makefile.msvc
Yang Tse [Mon, 9 Nov 2009 19:34:30 +0000 (19:34 +0000)]
Follow Makefile.msvc subdirectory naming scheme, and sync compiler options
Yang Tse [Mon, 9 Nov 2009 13:24:11 +0000 (13:24 +0000)]
Updated MSVC makefile 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.
Yang Tse [Mon, 9 Nov 2009 12:57:26 +0000 (12:57 +0000)]
Test for USE_WINSOCK since it is more restrictive than WIN32
Yang Tse [Mon, 9 Nov 2009 12:56:50 +0000 (12:56 +0000)]
Make header inclusion depend on HAVE_*_H definition
Yang Tse [Mon, 9 Nov 2009 12:56:11 +0000 (12:56 +0000)]
Remove unneeded preprocessor directives
Daniel Stenberg [Sat, 7 Nov 2009 21:52:41 +0000 (21:52 +0000)]
Joshua Kwan added paragraph 4.18 about file:// URLs on windows etc
Yang Tse [Thu, 5 Nov 2009 17:44:29 +0000 (17:44 +0000)]
Adjust c-ares include paths for memory tracking enabled (--enable-curldebug) builds
Kamil Dudka [Thu, 5 Nov 2009 15:41:31 +0000 (15:41 +0000)]
- Dropped misleading timeouts in libcurl-NSS and made sure the SSL socket works
in non-blocking mode.
Yang Tse [Thu, 5 Nov 2009 15:04:03 +0000 (15:04 +0000)]
I removed leading 'curl' path on the 'curlbuild.h' include statement in
curl.h, adjusting auto-makefiles include path, to enhance portability to
OS's without an orthogonal directory tree structure such as OS/400.
Yang Tse [Thu, 5 Nov 2009 15:00:28 +0000 (15:00 +0000)]
avoid division by zero
Daniel Stenberg [Wed, 4 Nov 2009 23:09:17 +0000 (23:09 +0000)]
- I fixed several problems with the transfer progress meter. It showed the
wrong percentage for small files, most notable for <1000 bytes and could
easily end up showing more than 100% at the end. It also didn't show any
percentage, transfer size or estimated transfer times when transferring
less than 100 bytes.
Yang Tse [Wed, 4 Nov 2009 14:24:47 +0000 (14:24 +0000)]
source files used by sample programs
Daniel Stenberg [Wed, 4 Nov 2009 13:11:43 +0000 (13:11 +0000)]
start over towards 7.19.8
Daniel Stenberg [Wed, 4 Nov 2009 13:10:07 +0000 (13:10 +0000)]
updated with names from the 7.19.7 release notes
Daniel Stenberg [Wed, 4 Nov 2009 12:34:48 +0000 (12:34 +0000)]
fix the find command line
Daniel Stenberg [Wed, 4 Nov 2009 12:33:06 +0000 (12:33 +0000)]
avoid fiddling in the ares subdir since that isn't part of the release
tarball
Daniel Stenberg [Wed, 4 Nov 2009 12:20:07 +0000 (12:20 +0000)]
release coming up
Daniel Stenberg [Wed, 4 Nov 2009 12:13:20 +0000 (12:13 +0000)]
syntax
Daniel Stenberg [Wed, 4 Nov 2009 10:17:28 +0000 (10:17 +0000)]
I have next to no hope of fixing more bugs before 7.19.7 so all are now
moved to 7.19.8. I removed the bugs already in KNOWN_BUGS (but they should
of course still get fixed).
Added three recent bugs. 7.19.8 is targetted to get shipped in Janurary 2010
Dan Fandrich [Wed, 4 Nov 2009 00:27:19 +0000 (00:27 +0000)]
Put the Symbian binaries into the more modern locations in ROM
Dan Fandrich [Tue, 3 Nov 2009 19:07:19 +0000 (19:07 +0000)]
Updated systems, bindings, NTLM support
Dan Fandrich [Tue, 3 Nov 2009 00:22:56 +0000 (00:22 +0000)]
Export the Symbian .iby files to make it easier to build a ROM
Daniel Stenberg [Mon, 2 Nov 2009 21:20:45 +0000 (21:20 +0000)]
strerror() => curl_easy_strerror()
Yang Tse [Mon, 2 Nov 2009 20:04:18 +0000 (20:04 +0000)]
include progress.h for Curl_pgrsSetDownloadCounter function prototype
Daniel Stenberg [Mon, 2 Nov 2009 18:49:56 +0000 (18:49 +0000)]
- As reported independent by both Stan van de Burgt and Didier Brisebourg,
CURLINFO_SIZE_DOWNLOAD (the -w variable size_download) didn't work when
getting data from ldap!
Daniel Stenberg [Mon, 2 Nov 2009 16:24:11 +0000 (16:24 +0000)]
describe the cmake situation
Yang Tse [Mon, 2 Nov 2009 11:55:53 +0000 (11:55 +0000)]
Renamed c-ares setup.h to ares_setup.h
Yang Tse [Mon, 2 Nov 2009 01:58:25 +0000 (01:58 +0000)]
Adjust include paths to take in account that currently:
c-ares with --enable-curldebug uses memdebug.h from libcurl's lib subdirectory.
memdebug.h needs access to libcurl's setup.h from libcurl's lib subdirectory
and also needs access to libcurl's generated curl_config.h
Yang Tse [Sun, 1 Nov 2009 20:26:02 +0000 (20:26 +0000)]
Undo old temporary change once used for testing purposes
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!