platform/upstream/curl.git
12 years agoconfigure: OpenSSL API detection cleanup
Yang Tse [Sat, 11 Jun 2011 16:39:34 +0000 (18:39 +0200)]
configure: OpenSSL API detection cleanup

12 years agoFixed test 1309 to pass the torture test
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.

13 years agosplay: add unit tests
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

13 years agounittest: mark all unit tested functions
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...

13 years agoCURLOPT_WRITEHEADER: clarify the docs
Daniel Stenberg [Fri, 10 Jun 2011 11:17:17 +0000 (13:17 +0200)]
CURLOPT_WRITEHEADER: clarify the docs

13 years agounit test formpost: added test case 1308
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.

13 years agoconfigure: warn if OpenSSL headers and library versions don't match
Yang Tse [Thu, 9 Jun 2011 20:55:16 +0000 (22:55 +0200)]
configure: warn if OpenSSL headers and library versions don't match

13 years agoconfigure: get API info for a couple of OpenSSL functions (followup 2)
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)

13 years agoconfigure: get API info for a couple of OpenSSL functions (followup 1)
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)

13 years agoconfigure: fix recvfrom 5th arg type qualifier detection (followup)
Yang Tse [Wed, 8 Jun 2011 13:57:36 +0000 (15:57 +0200)]
configure: fix recvfrom 5th arg type qualifier detection (followup)

13 years agoconfigure: fix recvfrom 5th arg type qualifier detection
Yang Tse [Wed, 8 Jun 2011 11:37:35 +0000 (13:37 +0200)]
configure: fix recvfrom 5th arg type qualifier detection

13 years agodisconnect: wipe out the keeps_speed time stamp
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

13 years agourldata: use uniform inclusion style for OpenSSL headers
Yang Tse [Tue, 7 Jun 2011 16:35:42 +0000 (18:35 +0200)]
urldata: use uniform inclusion style for OpenSSL headers

13 years agoHTTP time condition: force closure for 200 OK
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.

13 years agoRELEASE-NOTES: synced with b772f3a32146d7d
Daniel Stenberg [Tue, 7 Jun 2011 11:15:50 +0000 (13:15 +0200)]
RELEASE-NOTES: synced with b772f3a32146d7d

13 years agoconfigure: get API info for a couple of OpenSSL functions
Yang Tse [Mon, 6 Jun 2011 18:47:36 +0000 (20:47 +0200)]
configure: get API info for a couple of OpenSSL functions

13 years agowait_ms: takes an int argument
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

13 years agoCurl_socket_ready: make timeout a 'long'
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.

13 years agoxlc: avoid preprocessor definition usage when linking
Yang Tse [Sat, 4 Jun 2011 02:27:09 +0000 (04:27 +0200)]
xlc: avoid preprocessor definition usage when linking

13 years agounit tests: disable unit tests for a given cross-compilation configuration.
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.

13 years agocookie_output: made private
Daniel Stenberg [Fri, 3 Jun 2011 18:02:07 +0000 (20:02 +0200)]
cookie_output: made private

13 years agodigest_cleanup_one: made private
Daniel Stenberg [Fri, 3 Jun 2011 17:54:17 +0000 (19:54 +0200)]
digest_cleanup_one: made private

13 years agoprivatise: make private functions static
Daniel Stenberg [Fri, 3 Jun 2011 17:51:08 +0000 (19:51 +0200)]
privatise: make private functions static

13 years agoCurl_fileinfo_dup: removed, not used
Daniel Stenberg [Fri, 3 Jun 2011 17:33:23 +0000 (19:33 +0200)]
Curl_fileinfo_dup: removed, not used

13 years agoparsedate: turn private and static
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.

13 years agocurl hasn't sent a Pragma: header by default for a while
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

13 years agounit tests: attempt to fix linkage issue
Yang Tse [Thu, 2 Jun 2011 20:26:01 +0000 (22:26 +0200)]
unit tests: attempt to fix linkage issue

13 years agourlglob: fix zero size malloc
Yang Tse [Thu, 2 Jun 2011 20:19:39 +0000 (22:19 +0200)]
urlglob: fix zero size malloc

13 years agoRemove unnecessary typecast
Yang Tse [Thu, 2 Jun 2011 17:42:24 +0000 (19:42 +0200)]
Remove unnecessary typecast

13 years agocompiler warning: fix
Yang Tse [Thu, 2 Jun 2011 17:19:36 +0000 (19:19 +0200)]
compiler warning: fix

Fix compiler warning: cast increases required alignment

13 years agounit tests: make unit tests building actually depend on --enable-debug option.
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.

13 years agoOpenSSL enabled: require OPENSSL_VERSION_NUMBER definition before usage.
Yang Tse [Thu, 2 Jun 2011 10:52:52 +0000 (12:52 +0200)]
OpenSSL enabled: require OPENSSL_VERSION_NUMBER definition before usage.

13 years agounit tests: more build adjustments
Yang Tse [Wed, 1 Jun 2011 19:39:18 +0000 (21:39 +0200)]
unit tests: more build adjustments

13 years agoCURLOPT_WILDCARDMATCH: minor style edit
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.

13 years agomakefile: avoid preprocessor definition usage when linking
Yang Tse [Wed, 1 Jun 2011 12:43:25 +0000 (14:43 +0200)]
makefile: avoid preprocessor definition usage when linking

13 years agowarnless: icc 9.1 workaround
Yang Tse [Wed, 1 Jun 2011 10:13:42 +0000 (12:13 +0200)]
warnless: icc 9.1 workaround

13 years agotestcurl.pl: allow configure args to use '='
Daniel Stenberg [Tue, 31 May 2011 08:44:10 +0000 (10:44 +0200)]
testcurl.pl: allow configure args to use '='

13 years agoMakefile.am: fix spurious CFLAGS duplication
Yang Tse [Mon, 30 May 2011 20:32:58 +0000 (22:32 +0200)]
Makefile.am: fix spurious CFLAGS duplication

13 years agoRemoved types.h from Android makefile
Dan Fandrich [Mon, 30 May 2011 20:11:38 +0000 (13:11 -0700)]
Removed types.h from Android makefile

13 years agoconfigure.ac: skip /dev/urandom check when cross-compiling
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

13 years agomain: fix header inclusion order
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.

13 years agomain: fix header inclusion order
Yang Tse [Sun, 29 May 2011 01:56:26 +0000 (03:56 +0200)]
main: fix header inclusion order

13 years agodistribution: Fix EXTRA_DIST letter case
Yang Tse [Fri, 27 May 2011 11:34:54 +0000 (13:34 +0200)]
distribution: Fix EXTRA_DIST letter case

13 years agocurl_easy_setopt.3: NOPROGRESS also affects the callback
Daniel Stenberg [Fri, 27 May 2011 09:12:52 +0000 (11:12 +0200)]
curl_easy_setopt.3: NOPROGRESS also affects the callback

13 years agowarnless: header inclusion fix
Yang Tse [Fri, 27 May 2011 04:56:56 +0000 (06:56 +0200)]
warnless: header inclusion fix

13 years agoMake checksrc.pl work on more out-of-tree builds
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.

13 years agocompiler warning: fix
Yang Tse [Thu, 26 May 2011 13:44:53 +0000 (15:44 +0200)]
compiler warning: fix

Fix compiler warning: conversion may lose significant bits

13 years agosocks: fix unaligned memory access
Yang Tse [Thu, 26 May 2011 12:53:13 +0000 (14:53 +0200)]
socks: fix unaligned memory access

13 years agocompiler warning: fix
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

13 years agounit tests: build adjustment
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

13 years agocreate_conn: only switch protocol handler if necessary
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

13 years agosetopt.3: remove leftover style change
Daniel Stenberg [Wed, 25 May 2011 11:51:57 +0000 (13:51 +0200)]
setopt.3: remove leftover style change

13 years agosetopt.3: CURLOPT_WRITEFUNCTION had wrong function proto
Daniel Stenberg [Wed, 25 May 2011 11:50:52 +0000 (13:50 +0200)]
setopt.3: CURLOPT_WRITEFUNCTION had wrong function proto

13 years agocompiler warning: fix followup
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

13 years agounit tests: README, adjust header inclusion order
Yang Tse [Tue, 24 May 2011 19:23:52 +0000 (21:23 +0200)]
unit tests: README, adjust header inclusion order

13 years agocompiler warning: fix
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

13 years agocompiler warning: fix
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

13 years agocompiler warning: fix
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

13 years agocompiler warning: fix
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

13 years agobuild: inclusion guard
Yang Tse [Tue, 24 May 2011 13:42:02 +0000 (15:42 +0200)]
build: inclusion guard

Enclose header file in an inclusion guard

13 years agocompiler warning: fix
Yang Tse [Tue, 24 May 2011 13:18:26 +0000 (15:18 +0200)]
compiler warning: fix

Fix compiler warning: expression has no effect

13 years agocompiler warning: fix
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.

13 years agocompiler warning: fix
Yang Tse [Mon, 23 May 2011 17:04:49 +0000 (19:04 +0200)]
compiler warning: fix

Fix variable declaration placement

13 years agocompiler warning: fix
Yang Tse [Mon, 23 May 2011 14:59:43 +0000 (16:59 +0200)]
compiler warning: fix

Fix missing semicolon

13 years agocompiler warning: fix
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

13 years agocompiler warning: fix
Yang Tse [Mon, 23 May 2011 14:55:09 +0000 (16:55 +0200)]
compiler warning: fix

Fix compiler warning: expression has no effect

13 years agocompiler warning: fix
Yang Tse [Mon, 23 May 2011 10:57:23 +0000 (12:57 +0200)]
compiler warning: fix

Fix compiler warning: unused variable 'data'

13 years agocompiler warning: fix
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

13 years agocompiler warning: fix
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

13 years agocompiler warning: fix
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

13 years agocompiler warning: fix
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

13 years agocompiler warning: fix
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

13 years agocompiler warning: fix
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

13 years agounit tests: adjust header inclusion order
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

13 years agoMerge pull request #19 from pierrejoye/master
Daniel Stenberg [Fri, 20 May 2011 21:45:16 +0000 (14:45 -0700)]
Merge pull request #19 from pierrejoye/master

winbuild: typo in docs

13 years agocyassl: build without filesystem
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.

13 years ago- typo
Pierre Joye [Fri, 20 May 2011 11:35:23 +0000 (13:35 +0200)]
- typo

13 years agotypo: close is in man page section 3
Daniel Stenberg [Wed, 18 May 2011 21:46:57 +0000 (23:46 +0200)]
typo: close is in man page section 3

13 years agotests: verify OPEN/CLOSESOCKETFUNCTION
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.

13 years agoversion: linkage fix
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

13 years agocurl_easy_setopt.3: document CLOSESOCKET* options
Daniel Stenberg [Wed, 18 May 2011 20:30:10 +0000 (22:30 +0200)]
curl_easy_setopt.3: document CLOSESOCKET* options

13 years agotests: verify OPEN/CLOSESOCKETFUNCTION
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

13 years agosymbols-in-versions: add CLOSESOCKET*
Daniel Stenberg [Mon, 16 May 2011 21:53:38 +0000 (23:53 +0200)]
symbols-in-versions: add CLOSESOCKET*

13 years agoCLOSESOCKETFUNCTION: use the callback
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.

13 years agoCLOSESOCKETFUNCTION: added
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.

13 years agoGnuTLS handshake: fix timeout
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

13 years agochecksrc: trailing whitespace detection fix
Daniel Stenberg [Mon, 16 May 2011 13:21:04 +0000 (15:21 +0200)]
checksrc: trailing whitespace detection fix

13 years agonegotiate sspi: fix sequential requests
Marcel Roelofs [Mon, 16 May 2011 09:19:03 +0000 (11:19 +0200)]
negotiate sspi: fix sequential requests

13 years agotests: added HTTP If-Modified-Since tests
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.

13 years agoinclude: cleanup
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.

13 years agoFixed compilation when RTSP is disabled
Dan Fandrich [Fri, 6 May 2011 20:48:59 +0000 (13:48 -0700)]
Fixed compilation when RTSP is disabled

13 years agoFixed LDAP after RTSP readwrite change
Dan Fandrich [Fri, 6 May 2011 20:48:24 +0000 (13:48 -0700)]
Fixed LDAP after RTSP readwrite change

13 years agoRELEASE-NOTES: synced with 32001ac4149b206
Daniel Stenberg [Fri, 6 May 2011 09:26:37 +0000 (11:26 +0200)]
RELEASE-NOTES: synced with 32001ac4149b206

13 years agoset_userpass: convert from protocol-specific to generic
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.

13 years agoRTSP: cleanups
Daniel Stenberg [Thu, 5 May 2011 14:53:05 +0000 (16:53 +0200)]
RTSP: cleanups

Made several functions static

Made one function defined to nothing when RTSP is disabled to avoid
the #ifdefs in code.

Removed explicit rtsp.h includes

13 years agoRTSP: convert protocol-specific checks to generic
Daniel Stenberg [Thu, 5 May 2011 14:27:03 +0000 (16:27 +0200)]
RTSP: convert protocol-specific checks to generic

Add a 'readwrite' function to the protocol handler struct and use that
for the extra readwrite functionality RTSP needs.

13 years agoSSL: check for SSL, not specific protocols
Daniel Stenberg [Thu, 5 May 2011 13:49:43 +0000 (15:49 +0200)]
SSL: check for SSL, not specific protocols

Code cleanup to check less for protocols and more for the specific
relevant feature. Like if SSL is required.

13 years agohttp_perhapsrewind: remove HTTP check
Daniel Stenberg [Thu, 5 May 2011 13:38:01 +0000 (15:38 +0200)]
http_perhapsrewind: remove HTTP check

No need to check for HTTP as this is now a HTTP-specific function

13 years agohttp_perhapsrewind:
Daniel Stenberg [Thu, 5 May 2011 13:18:31 +0000 (15:18 +0200)]
http_perhapsrewind:

make it static, remove Curl_ prefix

13 years agoremove FILE protocol-specific checks
Daniel Stenberg [Thu, 5 May 2011 13:14:19 +0000 (15:14 +0200)]
remove FILE protocol-specific checks

Also, convert the BANPROXY flag into NONETWORK for the protocols
(file:// only atm) that don't work over networks.