platform/upstream/curl.git
13 years agoNTLM single-sign on adjustments (III)
Yang Tse [Wed, 27 Jul 2011 17:12:06 +0000 (19:12 +0200)]
NTLM single-sign on adjustments (III)

Provide some error tracing and fix execl() calling.

13 years agoNTLM single-sign on adjustments (II)
Yang Tse [Wed, 27 Jul 2011 17:04:55 +0000 (19:04 +0200)]
NTLM single-sign on adjustments (II)

Ensure test harness fake_ntlm main function can properly handle arguments.

13 years agoNTLM single-sign on adjustments (I)
Yang Tse [Wed, 27 Jul 2011 16:58:21 +0000 (18:58 +0200)]
NTLM single-sign on adjustments (I)

Use fake_ntlm absolute filename in NTLM_AUTH environment variable for test
2005 definition.

13 years agoFixed test 2005 to work in out-of-tree builds
Dan Fandrich [Tue, 26 Jul 2011 19:47:04 +0000 (12:47 -0700)]
Fixed test 2005 to work in out-of-tree builds

Also, set the test number in the test data file so fake_ntlm can
be reused in future tests.

13 years agofix compiler warning
Yang Tse [Tue, 26 Jul 2011 19:36:35 +0000 (21:36 +0200)]
fix compiler warning

13 years agofix compiler warning
Yang Tse [Tue, 26 Jul 2011 17:42:16 +0000 (19:42 +0200)]
fix compiler warning

13 years agostdio.h, stdlib.h, string.h, stdarg.h and ctype.h inclusion done in setup_once.h
Yang Tse [Tue, 26 Jul 2011 15:23:27 +0000 (17:23 +0200)]
stdio.h, stdlib.h, string.h, stdarg.h and ctype.h inclusion done in setup_once.h

13 years agoWIN32 io.h and fcntl.h inclusion done in setup_once.h
Yang Tse [Mon, 25 Jul 2011 03:30:14 +0000 (05:30 +0200)]
WIN32 io.h and fcntl.h inclusion done in setup_once.h

13 years agotime.h and sys/time.h inclusion conditionally done in setup_once.h
Yang Tse [Mon, 25 Jul 2011 02:08:08 +0000 (04:08 +0200)]
time.h and sys/time.h inclusion conditionally done in setup_once.h

13 years agoerrno.h inclusion conditionally done in setup_once.h - followup
Yang Tse [Mon, 25 Jul 2011 01:10:24 +0000 (03:10 +0200)]
errno.h inclusion conditionally done in setup_once.h - followup

13 years agoerrno.h inclusion conditionally done in setup_once.h
Yang Tse [Sun, 24 Jul 2011 02:39:43 +0000 (04:39 +0200)]
errno.h inclusion conditionally done in setup_once.h

13 years agoprogress: reset flags at transfer start
Ben Winslow [Fri, 22 Jul 2011 20:50:58 +0000 (22:50 +0200)]
progress: reset flags at transfer start

When an easy handle is used to download an URI which has no
Content-Length header (or equivalent) after downloading an URI which
does, the value from the previous transfer is reused and returned by
CURLINFO_CONTENT_LENGTH_DOWNLOAD. This is because the progress flags
(used to determine whether such a header was received) are not reset
between transfers.

Bug: http://curl.haxx.se/bug/view.cgi?id=3370895

13 years agoRELEASE-NOTES: HTTP error handling on request body send
Daniel Stenberg [Sun, 17 Jul 2011 21:47:59 +0000 (23:47 +0200)]
RELEASE-NOTES: HTTP error handling on request body send

13 years agohttp error response: stop sending when error is received
Daniel Stenberg [Mon, 11 Jul 2011 21:24:45 +0000 (23:24 +0200)]
http error response: stop sending when error is received

When libcurl has said to the server that there's a POST or PUT coming
(with a content-length and all) it has to either deliver that amount of
data or it needs to close the connection before trying a second request.

Adds test case 1129, 1130 and 1131

The bug report is about when used with 100-continue, but the change is
more generic.

Bug: http://curl.haxx.se/mail/lib-2011-06/0191.html
Reported by: Steven Parkes

13 years agosso_ntlm_initiate: unassigned variable
Michael Mueller [Tue, 19 Jul 2011 21:54:21 +0000 (23:54 +0200)]
sso_ntlm_initiate: unassigned variable

Bug: http://curl.haxx.se/mail/lib-2011-07/0109.html

13 years agotest2005: require a debug build
Daniel Stenberg [Tue, 19 Jul 2011 21:50:34 +0000 (23:50 +0200)]
test2005: require a debug build

13 years agoruntests: add 'debug' as a feature a test can require
Daniel Stenberg [Tue, 19 Jul 2011 21:49:40 +0000 (23:49 +0200)]
runtests: add 'debug' as a feature a test can require

13 years agoconfigure: avoid "test -e"
Daniel Stenberg [Tue, 19 Jul 2011 18:12:58 +0000 (20:12 +0200)]
configure: avoid "test -e"

"test -e" is POSIX but clearly was not supported by the SunOS sh
version, -f is supported and should be a decent equivalent

Bug: http://curl.haxx.se/bug/view.cgi?id=3371574

13 years agosymbols-in-versions: add NTLM_SSO symbols
Daniel Stenberg [Mon, 18 Jul 2011 22:54:41 +0000 (00:54 +0200)]
symbols-in-versions: add NTLM_SSO symbols

13 years agogitignore: ignore fake_ntlm
Daniel Stenberg [Mon, 18 Jul 2011 21:49:31 +0000 (23:49 +0200)]
gitignore: ignore fake_ntlm

13 years agotest2005: verify ntlm single-signon
Mandy Wu [Mon, 18 Jul 2011 21:39:52 +0000 (23:39 +0200)]
test2005: verify ntlm single-signon

13 years agoNTLM single-sign on supported
Mandy Wu [Mon, 18 Jul 2011 21:36:36 +0000 (23:36 +0200)]
NTLM single-sign on supported

With the use of the 'ntlm_auth' tool from the Samba project

13 years agosws: don't enable pipelining for requests with content-length
Daniel Stenberg [Sat, 16 Jul 2011 22:39:23 +0000 (00:39 +0200)]
sws: don't enable pipelining for requests with content-length

Log texts also modified and some white space edits

13 years agoFix OS400 scripts to make it compilable again.
Patrick Monnerat [Thu, 14 Jul 2011 15:07:35 +0000 (17:07 +0200)]
Fix OS400 scripts to make it compilable again.
Upgrade ILE/RPG binding to 7.21.7.
Update OS400 documentation accordingly.

13 years agoruntests: ignore the 'all_proxy' environment variable as well
Daniel Stenberg [Thu, 14 Jul 2011 09:03:03 +0000 (11:03 +0200)]
runtests: ignore the 'all_proxy' environment variable as well

We should probably also make sure that [protocol]_proxy for all possible
protocols libcurl supports are unset.

13 years agocurl_gssapi: Guard files with HAVE_GSSAPI.
Julien Chaffraix [Thu, 14 Jul 2011 03:23:35 +0000 (20:23 -0700)]
curl_gssapi: Guard files with HAVE_GSSAPI.

Bug: http://curl.haxx.se/mail/lib-2011-07/0074.html
Reported and fix suggested by: Ben Greear

13 years agogssapi: rename our files to avoid conflicts
Daniel Stenberg [Wed, 13 Jul 2011 20:54:54 +0000 (22:54 +0200)]
gssapi: rename our files to avoid conflicts

gssapi.h is used as a header name by Heimdal-style GSSAPI so it would
conflict with a private header using that name, and while renaming the
header I figured we should name the .c file accordingly as well.

Bug: http://curl.haxx.se/mail/lib-2011-07/0071.html
Reported by: Ben Greear

13 years agosilence picky compilers: mark unused parameters
Daniel Stenberg [Tue, 12 Jul 2011 21:24:52 +0000 (23:24 +0200)]
silence picky compilers: mark unused parameters

Modern gcc versions (4.6.X) get more picky by default and have started
to warn for unused parameters, but luckily gcc also allows us to mark
them as unused so that we can avoid the warnings.

13 years agogssapi.c: Simplified the function.
Julien Chaffraix [Fri, 10 Jun 2011 15:26:34 +0000 (08:26 -0700)]
gssapi.c: Simplified the function.

Removed the parameters that were common to all our invocation.

13 years agoAdded Curl_gss_init_sec_context.
Julien Chaffraix [Fri, 10 Jun 2011 15:16:06 +0000 (08:16 -0700)]
Added Curl_gss_init_sec_context.

This function wraps our calls to gss_init_sec_context so that we
have a unified way to talk to GSSAPI.

13 years agohttp_negociate: Be consistent in gss_init_sec_context attributes.
Julien Chaffraix [Mon, 27 Jun 2011 14:53:38 +0000 (07:53 -0700)]
http_negociate: Be consistent in gss_init_sec_context attributes.

This change makes this callsite match the rest of the code.

13 years agocode style: space between close paren and open brace
Daniel Stenberg [Mon, 4 Jul 2011 20:10:32 +0000 (22:10 +0200)]
code style: space between close paren and open brace

13 years agochecksrc: detect open brace without space
Daniel Stenberg [Mon, 4 Jul 2011 20:08:14 +0000 (22:08 +0200)]
checksrc: detect open brace without space

We use "if(condition) {" with a space between the close paren and the
open brace.

13 years agopolarssl.h: remove CVS leftover
Daniel Stenberg [Mon, 4 Jul 2011 20:04:04 +0000 (22:04 +0200)]
polarssl.h: remove CVS leftover

13 years agohelp output: more gnu like output
Daniel Stenberg [Sun, 3 Jul 2011 20:13:18 +0000 (22:13 +0200)]
help output: more gnu like output

First, the -J/--remote-header-name was wrongly sorted in the --help
output as pointed out in bug report #3349271.

Then, I changed the format of the texts to follow the man page better in
that it now uses "-A, --long" intead of "-A/--long". I also made all
additional arguments get written as in "-A, --long FILENAME" instead of
the previous "<filename>" style.

Reported by: Herve Amblard
Bug: http://curl.haxx.se/bug/view.cgi?id=3349271

13 years agosws: allow multiple commands in <servercmd>
Daniel Stenberg [Sun, 3 Jul 2011 17:15:06 +0000 (19:15 +0200)]
sws: allow multiple commands in <servercmd>

13 years agoCurl_http_readwrite_headers: minor indent fix
Daniel Stenberg [Fri, 1 Jul 2011 20:57:28 +0000 (22:57 +0200)]
Curl_http_readwrite_headers: minor indent fix

13 years agogitignore: config.cache
Daniel Stenberg [Thu, 30 Jun 2011 07:58:45 +0000 (09:58 +0200)]
gitignore: config.cache

13 years agodocs: FTP quotes support '*' prefix to ignore errors
Daniel Stenberg [Thu, 30 Jun 2011 07:57:23 +0000 (09:57 +0200)]
docs: FTP quotes support '*' prefix to ignore errors

By default libcurl stops processing quote commands on failures.

13 years agoTHANKS: new contributors from 7.21.7
Daniel Stenberg [Wed, 29 Jun 2011 18:42:02 +0000 (20:42 +0200)]
THANKS: new contributors from 7.21.7

13 years agoget_gss_name: proxy auth without proxy set equals error
Daniel Stenberg [Wed, 29 Jun 2011 10:26:23 +0000 (12:26 +0200)]
get_gss_name: proxy auth without proxy set equals error

Previously it would access a NULL pointer and die.

Bug: http://curl.haxx.se/mail/lib-2011-06/0170.html
Reported by: Christian Hagele

13 years agoexamples: cleanup curl includes
Daniel Stenberg [Tue, 28 Jun 2011 17:08:51 +0000 (19:08 +0200)]
examples: cleanup curl includes

Only <curl/curl.h> is needed typically and curl/types.h has been removed

13 years agolibtests: stop checking for CURLM_CALL_MULTI_PERFORM
Daniel Stenberg [Sun, 26 Jun 2011 21:12:08 +0000 (23:12 +0200)]
libtests: stop checking for CURLM_CALL_MULTI_PERFORM

CURLM_CALL_MULTI_PERFORM stopped being a valid return code from
curl_multi_perform back in 7.20.0. All the libcurl tests are ajusted to
this and no longer check for this return code. Makes them simpler.

13 years agoFixed test 1300 to pass the memory torture test
Dan Fandrich [Fri, 24 Jun 2011 19:32:38 +0000 (12:32 -0700)]
Fixed test 1300 to pass the memory torture test

13 years agoDisplay notes from setup file in testcurl.pl
Dan Fandrich [Fri, 24 Jun 2011 05:38:33 +0000 (22:38 -0700)]
Display notes from setup file in testcurl.pl

Autobuild submitters can use this to add some text to their
setup files to describe issues they've found with the build
or tests. This could include laying blame on test failures on
network issues or dependent libraries, explaining away compiler
warnings or providing any additional information that could be
useful to people reviewing and investigating problems with the
publicly available autobuild logs.  Note that persistent test
failures that are not issues with curl itself should normally be
fixed by excluding them from the test run instead.

This is an entirely optional field that is not entered by the
user the first time a new build is created.

13 years agoAdded a leap second test to test517
Dan Fandrich [Fri, 24 Jun 2011 04:20:29 +0000 (21:20 -0700)]
Added a leap second test to test517

13 years agoruntests.pl: warn if a test is explicitly disabled
Daniel Stenberg [Thu, 23 Jun 2011 21:10:00 +0000 (23:10 +0200)]
runtests.pl: warn if a test is explicitly disabled

Just to make sure a user is aware of it.

13 years agobump release: start working towards 7.21.8
Daniel Stenberg [Thu, 23 Jun 2011 11:02:47 +0000 (13:02 +0200)]
bump release: start working towards 7.21.8

13 years agoparsedate: detect more invalid dates better
Daniel Stenberg [Tue, 21 Jun 2011 21:18:05 +0000 (23:18 +0200)]
parsedate: detect more invalid dates better

13 years agocurl_formfree: clarify which pointer to free
Daniel Stenberg [Thu, 23 Jun 2011 07:31:12 +0000 (09:31 +0200)]
curl_formfree: clarify which pointer to free

13 years agoRELEASE-NOTES: mention security issue 20110623
Daniel Stenberg [Wed, 22 Jun 2011 21:12:39 +0000 (23:12 +0200)]
RELEASE-NOTES: mention security issue 20110623

libcurl inappropriate GSSAPI delegation. Full details at
http://curl.haxx.se/docs/adv_20110623.html

13 years agoRELEASE-NOTES: synced with 9016958aa8989
Daniel Stenberg [Wed, 22 Jun 2011 11:07:24 +0000 (13:07 +0200)]
RELEASE-NOTES: synced with 9016958aa8989

13 years agoCurl_input_negotiate: do not delegate GSSAPI credentials
Daniel Stenberg [Tue, 7 Jun 2011 22:10:26 +0000 (00:10 +0200)]
Curl_input_negotiate: do not delegate GSSAPI credentials

This is a security flaw. See curl advisory 20110623 for details.

Reported by: Richard Silverman

13 years agowindows build: use correct MS CRT
Josue Andrade Gomes [Tue, 21 Jun 2011 18:05:06 +0000 (20:05 +0200)]
windows build: use correct MS CRT

13 years agoMerge pull request #23 from salty-horse/pop3_list_space
Daniel Stenberg [Tue, 21 Jun 2011 15:54:25 +0000 (08:54 -0700)]
Merge pull request #23 from salty-horse/pop3_list_space

[pop3] remove extra space in LIST command

13 years ago[pop3] remove extra space in LIST command
Ori Avtalion [Mon, 20 Jun 2011 22:33:32 +0000 (01:33 +0300)]
[pop3] remove extra space in LIST command

Some servers, e.g. mail.bezeqint.net:110, consider it a syntax error

13 years agohttp: fix compiler warning
Yang Tse [Tue, 21 Jun 2011 14:28:15 +0000 (16:28 +0200)]
http: fix compiler warning

compiler warning: conditional expression is constant

13 years agoasyn-thread: fix compiler warning
Yang Tse [Tue, 21 Jun 2011 14:06:56 +0000 (16:06 +0200)]
asyn-thread: fix compiler warning

compiler warning: variable is initialized but not referenced

13 years agocmake: remove spurious definition
Yang Tse [Tue, 21 Jun 2011 13:26:24 +0000 (15:26 +0200)]
cmake: remove spurious definition

13 years agoFAQ: more blurb on persistent connections
Daniel Stenberg [Tue, 21 Jun 2011 06:44:42 +0000 (08:44 +0200)]
FAQ: more blurb on persistent connections

13 years agoxc-translit.m4 fix quoting
Yang Tse [Mon, 20 Jun 2011 22:02:49 +0000 (00:02 +0200)]
xc-translit.m4 fix quoting

13 years agoINSTALL: mention the GIT-INFO file
Daniel Stenberg [Mon, 20 Jun 2011 20:20:22 +0000 (22:20 +0200)]
INSTALL: mention the GIT-INFO file

13 years agoAdded LOCAL_MODULE_TAGS to support Android gingerbread
Dan Fandrich [Mon, 20 Jun 2011 19:01:38 +0000 (12:01 -0700)]
Added LOCAL_MODULE_TAGS to support Android gingerbread

13 years agounitteset: Curl_llist_move
Amr Shahin [Sun, 19 Jun 2011 00:27:22 +0000 (03:27 +0300)]
unitteset: Curl_llist_move

adding unit test for Curl_llist_move, documenting unit-tested functions
in llist.c, changing unit-test to unittest, replacing assert calls with
abort_unless calls

13 years agoCURLFORM_STREAM: acknowledge CURLFORM_FILENAME
Daniel Stenberg [Fri, 17 Jun 2011 20:21:36 +0000 (22:21 +0200)]
CURLFORM_STREAM: acknowledge CURLFORM_FILENAME

The CURLFORM_STREAM is documented to only insert a file name (and thus
look like a file upload) in the part if CURLFORM_FILENAME is set, but in
reality it always inserted a filename="" and if CURLFORM_FILENAME wasn't
set, it would insert insert rubbish (or possibly crash).

This is now fixed to work as documented, and test 554 has been extended
to verify this.

Reported by: Sascha Swiercy
Bug: http://curl.haxx.se/mail/lib-2011-06/0070.html

13 years agoconfigure: avoid direct usage of AS_TR_* macros
Yang Tse [Fri, 17 Jun 2011 19:01:41 +0000 (21:01 +0200)]
configure: avoid direct usage of AS_TR_* macros

13 years agoxc-translit.m4 provides transliteration macros with well defined behavior.
Yang Tse [Fri, 17 Jun 2011 18:59:58 +0000 (20:59 +0200)]
xc-translit.m4 provides transliteration macros with well defined behavior.

13 years agoRELEASE-NOTES: add more contributors for this release
Daniel Stenberg [Tue, 14 Jun 2011 17:17:41 +0000 (19:17 +0200)]
RELEASE-NOTES: add more contributors for this release

13 years agoRELEASE-NOTES: synced with 0aedccc18a33a778535
Daniel Stenberg [Tue, 14 Jun 2011 12:45:44 +0000 (14:45 +0200)]
RELEASE-NOTES: synced with 0aedccc18a33a778535

13 years agocurl_formget: fix FILE * leak
Daniel Stenberg [Mon, 13 Jun 2011 20:32:00 +0000 (22:32 +0200)]
curl_formget: fix FILE * leak

Properly deal with the fact that the last fread() call most probably is
a short read, and when using callbacks in fact all calls can be short
reads. No longer consider a file read done until it returns a 0 from the
read function.

Reported by: Aaron Orenstein
Bug: http://curl.haxx.se/mail/lib-2011-06/0048.html

13 years agocurl_formget: treat CURLFORM_STREAM better
Daniel Stenberg [Mon, 13 Jun 2011 20:05:13 +0000 (22:05 +0200)]
curl_formget: treat CURLFORM_STREAM better

If a piece is set to use a callback to get the data, it should not be
treated as data. It unfortunately also requires that curl_easy_perform()
or similar has been used as otherwise the callback function hasn't been
figured out and curl_formget won't know how to get the content.

13 years agocurl_formget.3: CURLFORM_STREAM has its drawbacks
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).

13 years agoFAQ: binding clarification
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.

13 years agoAdded http as a dependency of test 1308
Dan Fandrich [Sun, 12 Jun 2011 00:02:37 +0000 (17:02 -0700)]
Added http as a dependency of test 1308

13 years agotest1309: added to the dist
Daniel Stenberg [Sat, 11 Jun 2011 22:10:51 +0000 (00:10 +0200)]
test1309: added to the dist

13 years agowrite: add return code checks when used
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.

13 years agolong/int mess
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

13 years agoconfigure: OpenSSL API detection cleanup
Yang Tse [Sat, 11 Jun 2011 16:39:34 +0000 (18:39 +0200)]
configure: OpenSSL API detection cleanup

13 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