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
Daniel Stenberg [Fri, 25 Sep 2009 18:09:38 +0000 (18:09 +0000)]
- Chris Mumford filed bug report #2861587
(http://curl.haxx.se/bug/view.cgi?id=2861587) identifying that libcurl used
the OpenSSL function X509_load_crl_file() wrongly and failed if it would
load a CRL file with more than one certificate within. This is now fixed.
Dan Fandrich [Fri, 25 Sep 2009 16:51:57 +0000 (16:51 +0000)]
Changed the default OpenSSL include path
Yang Tse [Fri, 25 Sep 2009 13:05:36 +0000 (13:05 +0000)]
fix compiler warning: end-of-loop code not reached
Yang Tse [Thu, 24 Sep 2009 13:24:08 +0000 (13:24 +0000)]
fix compiler warning: variable "sni" was set but never used
Daniel Stenberg [Thu, 24 Sep 2009 03:40:30 +0000 (03:40 +0000)]
revert HPUX change since it already works fine
Daniel Stenberg [Wed, 23 Sep 2009 22:16:29 +0000 (22:16 +0000)]
builds thread-safer on HPUX
Daniel Stenberg [Wed, 23 Sep 2009 21:53:24 +0000 (21:53 +0000)]
- HPUX does need _REENTRANT too to build really thread-safe.
Gunter Knauf [Mon, 21 Sep 2009 23:00:12 +0000 (23:00 +0000)]
added section for libcurl builds with NSS SSL support.
Gunter Knauf [Mon, 21 Sep 2009 22:52:59 +0000 (22:52 +0000)]
added support for new SQLite cert database format: added a runtime check for version 3.12.0, and depending on the result add 'sql:' prefix to cert database directory so that newer SQLIte database format works.
Gunter Knauf [Mon, 21 Sep 2009 22:46:38 +0000 (22:46 +0000)]
added aditional check for the directory specified with SSL_DIR, and fall back to hardcoded directory if not a valid directory.
Yang Tse [Fri, 18 Sep 2009 14:48:16 +0000 (14:48 +0000)]
fix compiler warning: comparison between signed and unsigned
Daniel Stenberg [Thu, 17 Sep 2009 17:38:25 +0000 (17:38 +0000)]
added three missing files to the dist archive
Yang Tse [Thu, 17 Sep 2009 16:11:54 +0000 (16:11 +0000)]
fix compiler warning: enumerated type mixed with another type
Yang Tse [Thu, 17 Sep 2009 15:33:32 +0000 (15:33 +0000)]
Attempt to silence bogus compiler warning: "Potential null pointer dereference"
Yang Tse [Thu, 17 Sep 2009 15:06:34 +0000 (15:06 +0000)]
fix compiler warning: conversion to 'size_t' from 'curl_off_t' may alter its value
Yang Tse [Thu, 17 Sep 2009 14:23:27 +0000 (14:23 +0000)]
Moved Curl_rand() and Curl_srand() code from formdata.c and formdata.h
into curl_rand.c and curl_rand.h
Yang Tse [Thu, 17 Sep 2009 14:02:50 +0000 (14:02 +0000)]
remove line obsoleted with previous commit
Yang Tse [Thu, 17 Sep 2009 11:45:27 +0000 (11:45 +0000)]
Attempt to silence bogus compiler warning: "Potential null pointer dereference"
Daniel Stenberg [Wed, 16 Sep 2009 20:44:18 +0000 (20:44 +0000)]
- Sven Anders reported that we introduced a cert verfication flaw for OpenSSL-
powered libcurl in 7.19.6. If there was a X509v3 Subject Alternative Name
field in the certficate it had to match and so even if non-DNS and non-IP
entry was present it caused the verification to fail.
Yang Tse [Wed, 16 Sep 2009 16:49:02 +0000 (16:49 +0000)]
Attempt to silence bogus compiler warning: "Potential null pointer dereference through ptr is detected"
Yang Tse [Wed, 16 Sep 2009 14:38:18 +0000 (14:38 +0000)]
Attempt to silence bogus compiler warning: "Potential null pointer dereference through ptr is detected"
Dan Fandrich [Wed, 16 Sep 2009 03:19:39 +0000 (03:19 +0000)]
Moved the libssh2 checks after the SSL library checks. This helps when
statically linking since libssh2 needs the SSL library link flags to be
set up already to satisfy its dependencies. This wouldn't be necessary
if the libssh2 configure check was changed to use pkg-config since the
--static flag would add the dependencies automatically.
Dan Fandrich [Tue, 15 Sep 2009 22:35:49 +0000 (22:35 +0000)]
Provide instructions on creating curl_config.h
Yang Tse [Tue, 15 Sep 2009 00:16:50 +0000 (00:16 +0000)]
mention last changes
Yang Tse [Tue, 15 Sep 2009 00:07:56 +0000 (00:07 +0000)]
Some systems poll function sets POLLHUP in revents without setting
POLLIN, and sets POLLERR without setting POLLIN and POLLOUT. In some
libcurl code execution paths this could trigger busy wait loops with
high CPU usage until a timeout condition aborted the loop.
This fix for Curl_poll adresses the above in a libcurl-wide mode.
Yang Tse [Tue, 15 Sep 2009 00:07:25 +0000 (00:07 +0000)]
Revert Joshua Kwan's patch committed 11 Sep 2009.
Some systems poll function sets POLLHUP in revents without setting
POLLIN, and sets POLLERR without setting POLLIN and POLLOUT. In some
libcurl code execution paths this could trigger busy wait loops with
high CPU usage until a timeout condition aborted the loop.
The reverted patch addressed the above issue for a very specific case,
when awaiting c-ares to resolve. A libcurl-wide fix superceeds this one.
http://cool.haxx.se/cvs.cgi/curl/lib/select.c.diff?r1=1.52&r2=1.53
Dan Fandrich [Mon, 14 Sep 2009 18:43:53 +0000 (18:43 +0000)]
Added HTTP proxy keyword
Yang Tse [Mon, 14 Sep 2009 15:12:59 +0000 (15:12 +0000)]
ignore more files
Dan Fandrich [Fri, 11 Sep 2009 20:19:43 +0000 (20:19 +0000)]
Renumbered test565 to test1104 to move it out of the range reserved for
libcurl tests.
Daniel Stenberg [Fri, 11 Sep 2009 20:19:21 +0000 (20:19 +0000)]
point to the current functions, not the deprecated ones
Gunter Knauf [Fri, 11 Sep 2009 02:33:04 +0000 (02:33 +0000)]
Joshua Kwan provided a patch to pass POLLERR / POLLHUP back to c-ares.
This fixes a loop problem with high CPU usage.
Daniel Stenberg [Thu, 10 Sep 2009 21:06:50 +0000 (21:06 +0000)]
- Claes Jakobsson fixed a problem with cookie expiry dates at exctly the epoch
start second "Thu Jan 1 00:00:00 GMT 1970" as the date parser then returns 0
which internally then is treated as a session cookie. That particular date
is now made to get the value of 1.
Gunter Knauf [Thu, 10 Sep 2009 18:36:06 +0000 (18:36 +0000)]
use stderr for error output.
Gunter Knauf [Thu, 10 Sep 2009 15:00:21 +0000 (15:00 +0000)]
fixed spelling.
Gunter Knauf [Tue, 8 Sep 2009 01:13:49 +0000 (01:13 +0000)]
added debug output for NSS certpath.
Gunter Knauf [Mon, 7 Sep 2009 19:34:03 +0000 (19:34 +0000)]
changed NetWare makefiles to rely on SHELL rather than OSTYPE since we can have a sh-like shell also on Windows (MSYS, Cygwin).
Gisle Vanem [Mon, 7 Sep 2009 11:02:20 +0000 (11:02 +0000)]
Suppress warnings about unused prototypes in Watt32 and Win32 programs.
Gisle Vanem [Mon, 7 Sep 2009 10:59:54 +0000 (10:59 +0000)]
Update email address.
Gisle Vanem [Mon, 7 Sep 2009 10:01:17 +0000 (10:01 +0000)]
Update my email address. Add ares_config.h as dependency for 'make depend'.
Yang Tse [Sun, 6 Sep 2009 23:46:07 +0000 (23:46 +0000)]
T_SRV portability check
Gunter Knauf [Sun, 6 Sep 2009 20:16:59 +0000 (20:16 +0000)]
added casts to silent compiler warning on 64bit systems.
Gunter Knauf [Sun, 6 Sep 2009 19:45:08 +0000 (19:45 +0000)]
use our define struct_stat to be compatible with largefile support.
Gunter Knauf [Sun, 6 Sep 2009 17:59:46 +0000 (17:59 +0000)]
added base64.h include to silent warnings about missing prototype for ATOB_ConvertAsciiToItem.
Gunter Knauf [Sun, 6 Sep 2009 00:00:19 +0000 (00:00 +0000)]
language! / take2
Gunter Knauf [Sat, 5 Sep 2009 20:11:32 +0000 (20:11 +0000)]
changed includes to match style how we do with all other *.c files.
Daniel Stenberg [Sat, 5 Sep 2009 17:54:30 +0000 (17:54 +0000)]
add ftpgetinfo
Daniel Stenberg [Sat, 5 Sep 2009 17:49:07 +0000 (17:49 +0000)]
Make CURLOPT_FTPPORT support an additional port number
done!
Gunter Knauf [Sat, 5 Sep 2009 15:23:37 +0000 (15:23 +0000)]
added ftpgetinfo sample since users asked frequently for such a sample.
Gunter Knauf [Sat, 5 Sep 2009 15:12:30 +0000 (15:12 +0000)]
changed u_int16_t to unsigned short because it is the only place within ares and curl where such a type would be used;
also it broke many autobuilds. We should probably introduce an ares_port_t if we want to use a type here.
Gisle Vanem [Sat, 5 Sep 2009 12:33:08 +0000 (12:33 +0000)]
Replace 'uint16_t' with 'u_int16_t' since the latter is used in ares.h.
Gisle Vanem [Sat, 5 Sep 2009 12:29:35 +0000 (12:29 +0000)]
Added 'ares_parse_srv_reply.obj'. Added definition of 'u_int16_t'. This is I don't like; we should not depend on such non-universal types in a public header. But this is just a quick fix.
Daniel Stenberg [Fri, 4 Sep 2009 21:56:14 +0000 (21:56 +0000)]
- Jakub Hrozek added ares_parse_srv_reply() for SRV parsing
Gunter Knauf [Fri, 4 Sep 2009 17:46:59 +0000 (17:46 +0000)]
added --with-nss to configure output.
Gunter Knauf [Fri, 4 Sep 2009 16:59:10 +0000 (16:59 +0000)]
added MSVC6 caveats.
Gunter Knauf [Thu, 3 Sep 2009 17:54:02 +0000 (17:54 +0000)]
added chkspeed to samples.
Gunter Knauf [Thu, 3 Sep 2009 17:53:21 +0000 (17:53 +0000)]
updated MingW32 makefile for recent external libs.
Daniel Stenberg [Thu, 3 Sep 2009 08:30:28 +0000 (08:30 +0000)]
fix copyright year
Daniel Stenberg [Thu, 3 Sep 2009 08:13:32 +0000 (08:13 +0000)]
provide and export Curl_parsedate() as a library-wide internal function
for a better API to date parsing than the external API is
Daniel Stenberg [Wed, 2 Sep 2009 21:13:24 +0000 (21:13 +0000)]
language!
Daniel Stenberg [Wed, 2 Sep 2009 21:05:47 +0000 (21:05 +0000)]
- Daniel Johnson founded a flaw in the code convering sftp-errors to libcurl
errors.
Daniel Stenberg [Wed, 2 Sep 2009 17:48:26 +0000 (17:48 +0000)]
extended CURL_CHECK_PKGCONFIG to check for a host-specific version of the
pkg-config first before the "normal" one (if cross-compiling)
Daniel Stenberg [Wed, 2 Sep 2009 14:57:05 +0000 (14:57 +0000)]
spell out that when running_handles is zero, there is no longer any transfers
going on
Daniel Stenberg [Tue, 1 Sep 2009 17:05:24 +0000 (17:05 +0000)]
comment the "stunnel exited with [num]" stuff since this is now happen
in normal tests and is annoying
Daniel Stenberg [Tue, 1 Sep 2009 14:27:01 +0000 (14:27 +0000)]
- Peter Sylvester made a debug featuer for Curl_resolv() that now will force
libcurl to resolve 'localhost' whatever name you use in the URL *if* you set
the --interface option to (exactly) "LocalHost". This will enable us to
write tests for custom hosts names but still use a local host server.
Daniel Stenberg [Tue, 1 Sep 2009 08:39:39 +0000 (08:39 +0000)]
a failed libssh2 check must not pollute the variables
Daniel Stenberg [Tue, 1 Sep 2009 07:02:37 +0000 (07:02 +0000)]
clarify: building outside of the source tree is not special for the
test script
Daniel Stenberg [Tue, 1 Sep 2009 06:53:01 +0000 (06:53 +0000)]
- configure now tries to use pkg-config for a number of sub-dependencies even
when cross-compiling. The key to success is then you properly setup
PKG_CONFIG_PATH before invoking configure.
I also improved how NSS is detected by trying nss-config if pkg-config isn't
present, and as a last resort just use the lib name and force the user to
setup the LIBS/LDFLAGS/CFLAGS etc properly. The previous last resort would
add a range of various libs that would almost never be quite correct.
Daniel Stenberg [Mon, 31 Aug 2009 21:57:24 +0000 (21:57 +0000)]
73. if a connection is made to a FTP server but the server then just never
sends the 220 response or otherwise is dead slow, libcurl will not
acknowledge the connection timeout during that phase but only the "real"
timeout - which may surprise users as it is probably considered to be the
connect phase to most people. Brought up (and is being misunderstood) in:
http://curl.haxx.se/bug/view.cgi?id=2844077