Daniel Stenberg [Mon, 13 Jun 2011 20:03:33 +0000 (22:03 +0200)]
curl_formget.3: CURLFORM_STREAM has its drawbacks
Due to a design flaw, the CURLFORM_STREAM option doesn't really work
with curl_formget until after curl_easy_perform (or similar).
Daniel Stenberg [Mon, 13 Jun 2011 17:02:38 +0000 (19:02 +0200)]
FAQ: binding clarification
We don't author the bindings, they are created outside the main project.
Dan Fandrich [Sun, 12 Jun 2011 00:02:37 +0000 (17:02 -0700)]
Added http as a dependency of test 1308
Daniel Stenberg [Sat, 11 Jun 2011 22:10:51 +0000 (00:10 +0200)]
test1309: added to the dist
Daniel Stenberg [Sat, 11 Jun 2011 21:01:09 +0000 (23:01 +0200)]
write: add return code checks when used
These were just warnings in test code but it still makes it nicer to not
generate them.
Daniel Stenberg [Sat, 11 Jun 2011 20:56:45 +0000 (22:56 +0200)]
long/int mess
Typecast when converting to int from long to avoid some compiler warnings
Yang Tse [Sat, 11 Jun 2011 16:39:34 +0000 (18:39 +0200)]
configure: OpenSSL API detection cleanup
Dan Fandrich [Sat, 11 Jun 2011 07:10:09 +0000 (00:10 -0700)]
Fixed test 1309 to pass the torture test
Removing dynamic allocations also simplifies the test.
Daniel Stenberg [Fri, 10 Jun 2011 18:19:35 +0000 (20:19 +0200)]
splay: add unit tests
The test code that was #ifdef'ed in the code was converted into unit
tests in test case 1309. I also removed the #if 0'ed code from splay.c
Daniel Stenberg [Fri, 10 Jun 2011 12:40:46 +0000 (14:40 +0200)]
unittest: mark all unit tested functions
With "@unittest: [num]" in the header comment for each tested function.
Shows we have a log way to go still...
Daniel Stenberg [Fri, 10 Jun 2011 11:17:17 +0000 (13:17 +0200)]
CURLOPT_WRITEHEADER: clarify the docs
Daniel Stenberg [Fri, 10 Jun 2011 10:03:29 +0000 (12:03 +0200)]
unit test formpost: added test case 1308
This is a few first rather basic tests of curl_formadd() and
curl_formget(). Should serve as building blocks to add more variations
to the test.
Yang Tse [Thu, 9 Jun 2011 20:55:16 +0000 (22:55 +0200)]
configure: warn if OpenSSL headers and library versions don't match
Yang Tse [Thu, 9 Jun 2011 17:03:10 +0000 (19:03 +0200)]
configure: get API info for a couple of OpenSSL functions (followup 2)
Yang Tse [Wed, 8 Jun 2011 22:45:38 +0000 (00:45 +0200)]
configure: get API info for a couple of OpenSSL functions (followup 1)
Yang Tse [Wed, 8 Jun 2011 13:57:36 +0000 (15:57 +0200)]
configure: fix recvfrom 5th arg type qualifier detection (followup)
Yang Tse [Wed, 8 Jun 2011 11:37:35 +0000 (13:37 +0200)]
configure: fix recvfrom 5th arg type qualifier detection
Kamil Dudka [Tue, 7 Jun 2011 13:57:13 +0000 (15:57 +0200)]
disconnect: wipe out the keeps_speed time stamp
When closing a connection, the speedchecker's timestamp is now deleted
so that it cannot accidentally be used by a fresh connection on the same
handle when examining the transfer speed.
Bug: https://bugzilla.redhat.com/679709
Yang Tse [Tue, 7 Jun 2011 16:35:42 +0000 (18:35 +0200)]
urldata: use uniform inclusion style for OpenSSL headers
Daniel Stenberg [Tue, 7 Jun 2011 11:40:11 +0000 (13:40 +0200)]
HTTP time condition: force closure for 200 OK
When a time condition isn't met, so that no body is delivered to the
application even though a 2xx response is being read from the server, we
must close the connection to avoid a re-use of the connection to be
completely tricked.
Added test 1128 to verify.
Daniel Stenberg [Tue, 7 Jun 2011 11:15:50 +0000 (13:15 +0200)]
RELEASE-NOTES: synced with
b772f3a32146d7d
Yang Tse [Mon, 6 Jun 2011 18:47:36 +0000 (20:47 +0200)]
configure: get API info for a couple of OpenSSL functions
Daniel Stenberg [Sun, 5 Jun 2011 10:06:50 +0000 (12:06 +0200)]
wait_ms: takes an int argument
Typecasts added since I changed more code to use long for timeouts
Daniel Stenberg [Sat, 4 Jun 2011 19:19:14 +0000 (21:19 +0200)]
Curl_socket_ready: make timeout a 'long'
It was mostly typecasted to int all over the code so switching to long
instead all over should be a net gain.
Yang Tse [Sat, 4 Jun 2011 02:27:09 +0000 (04:27 +0200)]
xlc: avoid preprocessor definition usage when linking
Yang Tse [Fri, 3 Jun 2011 18:06:42 +0000 (20:06 +0200)]
unit tests: disable unit tests for a given cross-compilation configuration.
cross-compilation of unit tests static library/programs fails when
libcurl shared library is also built. This might be due to a libtool or
automake issue. In this case we disable unit tests.
Daniel Stenberg [Fri, 3 Jun 2011 18:02:07 +0000 (20:02 +0200)]
cookie_output: made private
Daniel Stenberg [Fri, 3 Jun 2011 17:54:17 +0000 (19:54 +0200)]
digest_cleanup_one: made private
Daniel Stenberg [Fri, 3 Jun 2011 17:51:08 +0000 (19:51 +0200)]
privatise: make private functions static
Daniel Stenberg [Fri, 3 Jun 2011 17:33:23 +0000 (19:33 +0200)]
Curl_fileinfo_dup: removed, not used
Daniel Stenberg [Fri, 3 Jun 2011 17:31:32 +0000 (19:31 +0200)]
parsedate: turn private and static
I removed the prefix as well accordingly.
Dan Fandrich [Fri, 3 Jun 2011 01:41:57 +0000 (18:41 -0700)]
curl hasn't sent a Pragma: header by default for a while
Yang Tse [Thu, 2 Jun 2011 20:26:01 +0000 (22:26 +0200)]
unit tests: attempt to fix linkage issue
Yang Tse [Thu, 2 Jun 2011 20:19:39 +0000 (22:19 +0200)]
urlglob: fix zero size malloc
Yang Tse [Thu, 2 Jun 2011 17:42:24 +0000 (19:42 +0200)]
Remove unnecessary typecast
Yang Tse [Thu, 2 Jun 2011 17:19:36 +0000 (19:19 +0200)]
compiler warning: fix
Fix compiler warning: cast increases required alignment
Yang Tse [Thu, 2 Jun 2011 15:02:46 +0000 (17:02 +0200)]
unit tests: make unit tests building actually depend on --enable-debug option.
Yang Tse [Thu, 2 Jun 2011 10:52:52 +0000 (12:52 +0200)]
OpenSSL enabled: require OPENSSL_VERSION_NUMBER definition before usage.
Yang Tse [Wed, 1 Jun 2011 19:39:18 +0000 (21:39 +0200)]
unit tests: more build adjustments
Daniel Stenberg [Wed, 1 Jun 2011 17:50:08 +0000 (19:50 +0200)]
CURLOPT_WILDCARDMATCH: minor style edit
Due to some flaw in roffit I removed some style changes to make the web
page look better.
Yang Tse [Wed, 1 Jun 2011 12:43:25 +0000 (14:43 +0200)]
makefile: avoid preprocessor definition usage when linking
Yang Tse [Wed, 1 Jun 2011 10:13:42 +0000 (12:13 +0200)]
warnless: icc 9.1 workaround
Daniel Stenberg [Tue, 31 May 2011 08:44:10 +0000 (10:44 +0200)]
testcurl.pl: allow configure args to use '='
Yang Tse [Mon, 30 May 2011 20:32:58 +0000 (22:32 +0200)]
Makefile.am: fix spurious CFLAGS duplication
Dan Fandrich [Mon, 30 May 2011 20:11:38 +0000 (13:11 -0700)]
Removed types.h from Android makefile
Daniel Stenberg [Mon, 30 May 2011 09:57:28 +0000 (11:57 +0200)]
configure.ac: skip /dev/urandom check when cross-compiling
Bug: http://curl.haxx.se/bug/view.cgi?id=3307835
Yang Tse [Sun, 29 May 2011 16:25:49 +0000 (18:25 +0200)]
main: fix header inclusion order
Currently, Windows cross-compiled autobuilds require inclusion of setup.h
before curl.h to get definitions of CURL_STATICLIB and BUILDING_LIBCURL.
Yang Tse [Sun, 29 May 2011 01:56:26 +0000 (03:56 +0200)]
main: fix header inclusion order
Yang Tse [Fri, 27 May 2011 11:34:54 +0000 (13:34 +0200)]
distribution: Fix EXTRA_DIST letter case
Daniel Stenberg [Fri, 27 May 2011 09:12:52 +0000 (11:12 +0200)]
curl_easy_setopt.3: NOPROGRESS also affects the callback
Yang Tse [Fri, 27 May 2011 04:56:56 +0000 (06:56 +0200)]
warnless: header inclusion fix
Yang Tse [Thu, 26 May 2011 17:17:10 +0000 (19:17 +0200)]
Make checksrc.pl work on more out-of-tree builds
Source files given with relative paths do not have the
-D directory specifier prepended.
Yang Tse [Thu, 26 May 2011 13:44:53 +0000 (15:44 +0200)]
compiler warning: fix
Fix compiler warning: conversion may lose significant bits
Yang Tse [Thu, 26 May 2011 12:53:13 +0000 (14:53 +0200)]
socks: fix unaligned memory access
Yang Tse [Thu, 26 May 2011 10:40:04 +0000 (12:40 +0200)]
compiler warning: fix
Fix compiler warning: variable was set but never used
Fix compiler warning: clobber ignored
Yang Tse [Wed, 25 May 2011 18:22:46 +0000 (20:22 +0200)]
unit tests: build adjustment
Also define UNITTESTS macro when building unit test sources.
Fixing compiler warning: external definition with no prior declaration
Daniel Stenberg [Wed, 25 May 2011 13:57:38 +0000 (15:57 +0200)]
create_conn: only switch protocol handler if necessary
When switching to HTTP because a HTTP proxy is being used, the existing
handler is now checked if it already is "compatible". This allows the https
handler remain while other non-http handlers will be redirected.
Bug: http://curl.haxx.se/mail/lib-2011-05/0214.html
Reported by: Jerome Robert
Daniel Stenberg [Wed, 25 May 2011 11:51:57 +0000 (13:51 +0200)]
setopt.3: remove leftover style change
Daniel Stenberg [Wed, 25 May 2011 11:50:52 +0000 (13:50 +0200)]
setopt.3: CURLOPT_WRITEFUNCTION had wrong function proto
Yang Tse [Wed, 25 May 2011 07:56:57 +0000 (09:56 +0200)]
compiler warning: fix followup
Fix compiler warning: variable was set but never used
Fix compiler warning: clobber ignored
Yang Tse [Tue, 24 May 2011 19:23:52 +0000 (21:23 +0200)]
unit tests: README, adjust header inclusion order
Yang Tse [Tue, 24 May 2011 18:39:58 +0000 (20:39 +0200)]
compiler warning: fix
Fix compiler warning: variable was set but never used
Fix compiler warning: clobber ignored
Yang Tse [Tue, 24 May 2011 15:35:08 +0000 (17:35 +0200)]
compiler warning: fix
Fix compiler warning: external definition with no prior declaration
Yang Tse [Tue, 24 May 2011 15:29:50 +0000 (17:29 +0200)]
compiler warning: fix
Fix compiler warning: external definition with no prior declaration
Yang Tse [Tue, 24 May 2011 15:24:59 +0000 (17:24 +0200)]
compiler warning: fix
Fix compiler warning: argument is incompatible with corresponding format
string conversion
Yang Tse [Tue, 24 May 2011 13:42:02 +0000 (15:42 +0200)]
build: inclusion guard
Enclose header file in an inclusion guard
Yang Tse [Tue, 24 May 2011 13:18:26 +0000 (15:18 +0200)]
compiler warning: fix
Fix compiler warning: expression has no effect
Yang Tse [Mon, 23 May 2011 17:37:41 +0000 (19:37 +0200)]
compiler warning: fix
Fix compiler warning: `keycheck' might be used uninitialized in this function.
Fix compiler warning: `keybit' might be used uninitialized in this function.
Yang Tse [Mon, 23 May 2011 17:04:49 +0000 (19:04 +0200)]
compiler warning: fix
Fix variable declaration placement
Yang Tse [Mon, 23 May 2011 14:59:43 +0000 (16:59 +0200)]
compiler warning: fix
Fix missing semicolon
Yang Tse [Mon, 23 May 2011 14:55:49 +0000 (16:55 +0200)]
compiler warning: fix
Fix compiler warning: expression has no effect
Fix OOM handling
Yang Tse [Mon, 23 May 2011 14:55:09 +0000 (16:55 +0200)]
compiler warning: fix
Fix compiler warning: expression has no effect
Yang Tse [Mon, 23 May 2011 10:57:23 +0000 (12:57 +0200)]
compiler warning: fix
Fix compiler warning: unused variable 'data'
Yang Tse [Sat, 21 May 2011 13:06:50 +0000 (15:06 +0200)]
compiler warning: fix
Fix compiler warning: enumerated type mixed with another type
Yang Tse [Sat, 21 May 2011 12:59:03 +0000 (14:59 +0200)]
compiler warning: fix
Fix compiler warning: enumerated type mixed with another type
Yang Tse [Sat, 21 May 2011 12:55:10 +0000 (14:55 +0200)]
compiler warning: fix
Fix compiler warning: enumerated type mixed with another type
Yang Tse [Sat, 21 May 2011 12:39:42 +0000 (14:39 +0200)]
compiler warning: fix
Fix compiler warning: enumerated type mixed with another type
Yang Tse [Sat, 21 May 2011 12:10:17 +0000 (14:10 +0200)]
compiler warning: fix
Fix compiler warning: enumerated type mixed with another type
Yang Tse [Sat, 21 May 2011 11:46:37 +0000 (13:46 +0200)]
compiler warning: fix
Fix compiler warning: empty body in an if-statement
Yang Tse [Sat, 21 May 2011 11:22:11 +0000 (13:22 +0200)]
unit tests: adjust header inclusion order
Additionally, prevent multiple inclusions of curl_config.h
Daniel Stenberg [Fri, 20 May 2011 21:45:16 +0000 (14:45 -0700)]
Merge pull request #19 from pierrejoye/master
winbuild: typo in docs
Ola Mork [Fri, 20 May 2011 21:40:59 +0000 (23:40 +0200)]
cyassl: build without filesystem
Get cyassl's NO_FILESYSTEM to work with libcurl. Otherwise I'd get linker
errors for the missing "SSL_CTX_load_verify_locations" functions.
Pierre Joye [Fri, 20 May 2011 11:35:23 +0000 (13:35 +0200)]
- typo
Daniel Stenberg [Wed, 18 May 2011 21:46:57 +0000 (23:46 +0200)]
typo: close is in man page section 3
Yang Tse [Thu, 19 May 2011 20:28:28 +0000 (22:28 +0200)]
tests: verify OPEN/CLOSESOCKETFUNCTION
Test 585: Fix opensocket return type, and avoid function name clash.
Yang Tse [Thu, 19 May 2011 09:48:32 +0000 (11:48 +0200)]
version: linkage fix
Fix linkage on c-ares enabled Windows static builds
Daniel Stenberg [Wed, 18 May 2011 20:30:10 +0000 (22:30 +0200)]
curl_easy_setopt.3: document CLOSESOCKET* options
Daniel Stenberg [Wed, 18 May 2011 19:48:14 +0000 (21:48 +0200)]
tests: verify OPEN/CLOSESOCKETFUNCTION
Test 585 and 586 were added. Using a modified lib500.c
Daniel Stenberg [Mon, 16 May 2011 21:53:38 +0000 (23:53 +0200)]
symbols-in-versions: add CLOSESOCKET*
Daniel Stenberg [Mon, 16 May 2011 21:52:15 +0000 (23:52 +0200)]
CLOSESOCKETFUNCTION: use the callback
Fix the return type of the callback to match close() and make use of it.
Daniel Stenberg [Mon, 16 May 2011 21:46:43 +0000 (23:46 +0200)]
CLOSESOCKETFUNCTION: added
Introduced the initial setup to allow closesocket callbacks by making
sure sclose() is only ever called from one place in the libcurl source
and still run all test cases fine.
Daniel Stenberg [Wed, 18 May 2011 18:48:42 +0000 (20:48 +0200)]
GnuTLS handshake: fix timeout
Commit
cbf4961bf3e garbled the timeout handling while doing SSL
handshaking (in an attempt at fixing another bug). This puts sanity
back.
Bug: http://curl.haxx.se/mail/lib-2011-05/0167.html
Reported by: Ethan Glasser Camp
Daniel Stenberg [Mon, 16 May 2011 13:21:04 +0000 (15:21 +0200)]
checksrc: trailing whitespace detection fix
Marcel Roelofs [Mon, 16 May 2011 09:19:03 +0000 (11:19 +0200)]
negotiate sspi: fix sequential requests
Daniel Stenberg [Fri, 13 May 2011 06:55:15 +0000 (08:55 +0200)]
tests: added HTTP If-Modified-Since tests
Added test 1126 and 1127 to verify curl's behaviour when If-Modified-Since
is used and a 200 is returned.
The list of test cases in Makefile.am is now sorted numerically.
Daniel Stenberg [Tue, 3 May 2011 20:39:38 +0000 (22:39 +0200)]
include: cleanup
Made the public headers checksrc compliant
Removed types.h (it's been unused since April 2004)
Made the root makefile do make in include by default as well, so that
TAGS and the checksrc will work better.
Dan Fandrich [Fri, 6 May 2011 20:48:59 +0000 (13:48 -0700)]
Fixed compilation when RTSP is disabled
Dan Fandrich [Fri, 6 May 2011 20:48:24 +0000 (13:48 -0700)]
Fixed LDAP after RTSP readwrite change
Daniel Stenberg [Fri, 6 May 2011 09:26:37 +0000 (11:26 +0200)]
RELEASE-NOTES: synced with
32001ac4149b206
Daniel Stenberg [Thu, 5 May 2011 15:07:21 +0000 (17:07 +0200)]
set_userpass: convert from protocol-specific to generic
The protocol handler's flags field now can set that the protocol
requires a password, so that the set_userpass function doesn't have to
have the specific knowledge of which protocols that do.