platform/upstream/curl.git
9 years agoFAQ: expand the thread-safe section
Daniel Stenberg [Thu, 10 Jul 2014 03:06:34 +0000 (22:06 -0500)]
FAQ: expand the thread-safe section

... with a mention of *NOSIGNAL, based on talk in bug #1386

9 years agourl.c: Fixed memory leak on OOM
Dan Fandrich [Mon, 7 Jul 2014 21:12:22 +0000 (23:12 +0200)]
url.c: Fixed memory leak on OOM

This showed itself on some systems with torture failures
in tests 1060 and 1061

9 years agoUpdate instances of some obsolete CURLOPTs to their new names
Dan Fandrich [Sat, 5 Jul 2014 14:59:12 +0000 (16:59 +0200)]
Update instances of some obsolete CURLOPTs to their new names

9 years agocompiler warnings: potentially uninitialized variables
Marcel Raad [Fri, 4 Jul 2014 16:26:57 +0000 (18:26 +0200)]
compiler warnings: potentially uninitialized variables

... pointed out by MSVC2013

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

9 years agonss: make the list of CRL items global
Kamil Dudka [Fri, 4 Jul 2014 10:41:53 +0000 (12:41 +0200)]
nss: make the list of CRL items global

Otherwise NSS could use an already freed item for another connection.

9 years agonss: fix a memory leak when CURLOPT_CRLFILE is used
Kamil Dudka [Thu, 3 Jul 2014 22:39:23 +0000 (00:39 +0200)]
nss: fix a memory leak when CURLOPT_CRLFILE is used

9 years agonss: make crl_der allocated on heap
Kamil Dudka [Thu, 3 Jul 2014 22:36:21 +0000 (00:36 +0200)]
nss: make crl_der allocated on heap

... and spell it as crl_der instead of crlDER

9 years agonss: let nss_{cache,load}_crl return CURLcode
Kamil Dudka [Thu, 3 Jul 2014 21:53:44 +0000 (23:53 +0200)]
nss: let nss_{cache,load}_crl return CURLcode

9 years agotool: oops, forgot to include <plarenas.h>
Kamil Dudka [Thu, 3 Jul 2014 18:19:35 +0000 (20:19 +0200)]
tool: oops, forgot to include <plarenas.h>

... that contains the declaration of PL_ArenaFinish()

9 years agotool: call PL_ArenaFinish() on exit if NSPR is used
Kamil Dudka [Thu, 3 Jul 2014 18:19:35 +0000 (20:19 +0200)]
tool: call PL_ArenaFinish() on exit if NSPR is used

This prevents valgrind from reporting still reachable memory allocated
by NSPR arenas (mainly the freelist).

Reported-by: Hubert Kario
9 years agoexample: use correct type (long) for CURLOPT_FOLLOWLOCATION
Dimitrios Siganos [Wed, 2 Jul 2014 09:49:08 +0000 (11:49 +0200)]
example: use correct type (long) for CURLOPT_FOLLOWLOCATION

9 years agoDocument type of argument for CURLOPT_FOLLOWLOCATION.
Dimitrios Siganos [Wed, 2 Jul 2014 09:41:40 +0000 (11:41 +0200)]
Document type of argument for CURLOPT_FOLLOWLOCATION.

9 years agoDocument type of argument for CURLOPT_ERRORBUFFER.
Dimitrios Siganos [Wed, 2 Jul 2014 09:41:39 +0000 (11:41 +0200)]
Document type of argument for CURLOPT_ERRORBUFFER.

9 years agoDocument type of argument for CURLOPT_COPYPOSTFIELDS.
Dimitrios Siganos [Wed, 2 Jul 2014 09:41:38 +0000 (11:41 +0200)]
Document type of argument for CURLOPT_COPYPOSTFIELDS.

9 years agoDocument type of argument for CURLOPT_ADDRESS_SCOPE.
Dimitrios Siganos [Wed, 2 Jul 2014 09:41:37 +0000 (11:41 +0200)]
Document type of argument for CURLOPT_ADDRESS_SCOPE.

9 years agocurl.1: minor language fix
Daniel Stenberg [Thu, 3 Jul 2014 20:36:41 +0000 (22:36 +0200)]
curl.1: minor language fix

Bug: http://curl.haxx.se/mail/archive-2014-07/0006.html

9 years agoprogress callback: skip last callback update on errors
Ray Satiro [Mon, 9 Jun 2014 21:57:14 +0000 (23:57 +0200)]
progress callback: skip last callback update on errors

When an error has been detected, skip the final forced call to the
progress callback by making sure to pass the current return code
variable in the Curl_done() call in the CURLM_STATE_DONE state.

This avoids the "extra" callback that could occur even if you returned
error from the progress callback.

Bug: http://curl.haxx.se/mail/lib-2014-06/0062.html
Reported by: Jonathan Cardoso Machado

9 years agoopts: fixed some CURLOPT references so they get turned into links
Dan Fandrich [Wed, 2 Jul 2014 19:40:39 +0000 (21:40 +0200)]
opts: fixed some CURLOPT references so they get turned into links

9 years agotool: call PR_Cleanup() on exit if NSPR is used
Kamil Dudka [Wed, 2 Jul 2014 14:34:48 +0000 (16:34 +0200)]
tool: call PR_Cleanup() on exit if NSPR is used

This prevents valgrind from reporting possibly lost memory that NSPR
uses for file descriptor cache and other globally allocated internal
data structures.

9 years agonss: make the fallback to SSLv3 work again
Kamil Dudka [Wed, 2 Jul 2014 15:49:37 +0000 (17:49 +0200)]
nss: make the fallback to SSLv3 work again

This feature was unintentionally disabled by commit ff92fcfb.

9 years agonss: do not abort on connection failure
Kamil Dudka [Wed, 2 Jul 2014 15:37:43 +0000 (17:37 +0200)]
nss: do not abort on connection failure

... due to calling SSL_VersionRangeGet() with NULL file descriptor

reported-by: upstream tests 305 and 404

9 years agoopts: Document the socket callback function parameters
Dan Fandrich [Tue, 1 Jul 2014 05:59:28 +0000 (07:59 +0200)]
opts: Document the socket callback function parameters

9 years agoopts: Fixed some typos
Steve Holme [Sat, 28 Jun 2014 11:40:06 +0000 (12:40 +0100)]
opts: Fixed some typos

9 years agocurl_easy_setopt.3: fixed the error code for an unsupported option
Dan Fandrich [Wed, 25 Jun 2014 20:30:36 +0000 (22:30 +0200)]
curl_easy_setopt.3: fixed the error code for an unsupported option

9 years agoopts: added some DEFAULT and RETURN VALUE sections
Dan Fandrich [Mon, 23 Jun 2014 22:00:34 +0000 (00:00 +0200)]
opts: added some DEFAULT and RETURN VALUE sections

9 years agolibcurl docs: man page edits
Daniel Stenberg [Sat, 21 Jun 2014 21:52:06 +0000 (23:52 +0200)]
libcurl docs: man page edits

mainly to improve how the web versions render

9 years agocurl_easy_setopt.3: fixed some typos
Dan Fandrich [Sat, 21 Jun 2014 18:43:04 +0000 (20:43 +0200)]
curl_easy_setopt.3: fixed some typos

9 years agolib man pages: update easy setopt option references
Daniel Stenberg [Sat, 21 Jun 2014 18:21:47 +0000 (20:21 +0200)]
lib man pages: update easy setopt option references

... by using the "\fIopt(3)\fP" syntax they will be linked properly when
the web version of the page is generated.

9 years agoopts: the CURLOPT_SSL_ENABLE_*PN options are enabled by default
Daniel Stenberg [Sat, 21 Jun 2014 18:03:35 +0000 (20:03 +0200)]
opts: the CURLOPT_SSL_ENABLE_*PN options are enabled by default

9 years agolib: documentation updates in README.hostip
Colin Hogben [Wed, 18 Jun 2014 09:04:22 +0000 (10:04 +0100)]
lib: documentation updates in README.hostip

c-ares now does support IPv6;
avoid implying threaded resolver is Windows-only;
two referenced source files were renamed in 7de2f92

9 years agocurl_easy_setopt.3: CURLOPT_POSTFIELDS is the exception
Daniel Stenberg [Sat, 21 Jun 2014 17:46:45 +0000 (19:46 +0200)]
curl_easy_setopt.3: CURLOPT_POSTFIELDS is the exception

... to the always-copy-char *-argument.

And fix some minor mistakes.

9 years agocurl_easy_setopt.3: refer to the individual man pages
Daniel Stenberg [Sat, 21 Jun 2014 13:45:50 +0000 (15:45 +0200)]
curl_easy_setopt.3: refer to the individual man pages

With all the new individual option man pages created, this now refers to
each separate one instead of duplicaing the info. Also makes this page
easier to overview.

9 years agoopts: fixed mancheck for out-of-tree builds
Dan Fandrich [Sat, 21 Jun 2014 09:22:04 +0000 (11:22 +0200)]
opts: fixed mancheck for out-of-tree builds

9 years agocurl_easy_setopt.3: shorten
Daniel Stenberg [Fri, 20 Jun 2014 22:03:45 +0000 (00:03 +0200)]
curl_easy_setopt.3: shorten

shorten descriptions, mostly refer to the separate descriptions

9 years agoCURLOPT_DNS_LOCAL_IP4.3: better short desc
Daniel Stenberg [Fri, 20 Jun 2014 12:26:56 +0000 (14:26 +0200)]
CURLOPT_DNS_LOCAL_IP4.3: better short desc

9 years agoopts: document CURLE_OUT_OF_MEMORY among other return values
Dan Fandrich [Fri, 20 Jun 2014 21:43:26 +0000 (23:43 +0200)]
opts: document CURLE_OUT_OF_MEMORY among other return values

9 years agoopts: fixed some typos
Dan Fandrich [Fri, 20 Jun 2014 21:04:39 +0000 (23:04 +0200)]
opts: fixed some typos

9 years agoopts: various corrections
Daniel Stenberg [Thu, 19 Jun 2014 23:10:34 +0000 (01:10 +0200)]
opts: various corrections

9 years agoopts: add the rest of the options
Daniel Stenberg [Thu, 19 Jun 2014 23:02:49 +0000 (01:02 +0200)]
opts: add the rest of the options

... and fixed mancheck to ignore obsolete options

9 years agoopts: the final bunch of options as man pages
Daniel Stenberg [Thu, 19 Jun 2014 22:58:18 +0000 (00:58 +0200)]
opts: the final bunch of options as man pages

Now all current options have their own man pages.

9 years agoopts: 37 additional man pages
Daniel Stenberg [Thu, 19 Jun 2014 15:59:00 +0000 (17:59 +0200)]
opts: 37 additional man pages

9 years agoCURLOPT_URL: move up the text from "Notes"
Daniel Stenberg [Thu, 19 Jun 2014 13:11:49 +0000 (15:11 +0200)]
CURLOPT_URL: move up the text from "Notes"

9 years agoROADMAP: removed, now ROADMAP.md
Daniel Stenberg [Thu, 19 Jun 2014 13:11:28 +0000 (15:11 +0200)]
ROADMAP: removed, now ROADMAP.md

9 years agoROADMAP.md: make it markdown formatted
Daniel Stenberg [Thu, 19 Jun 2014 12:16:14 +0000 (14:16 +0200)]
ROADMAP.md: make it markdown formatted

9 years agoROADMAP: initial commit of "curl the next few years"
Daniel Stenberg [Thu, 19 Jun 2014 12:08:12 +0000 (14:08 +0200)]
ROADMAP: initial commit of "curl the next few years"

To be further discussed, debated and edited

9 years agoopts: more man pages
Daniel Stenberg [Thu, 19 Jun 2014 11:53:13 +0000 (13:53 +0200)]
opts: more man pages

9 years agoCURLOPT_UNRESTRICTED_AUTH.3: added missing 'T'
Daniel Stenberg [Thu, 19 Jun 2014 06:40:51 +0000 (08:40 +0200)]
CURLOPT_UNRESTRICTED_AUTH.3: added missing 'T'

9 years agoopts: makefile now includes all current man pages
Daniel Stenberg [Wed, 18 Jun 2014 22:08:18 +0000 (00:08 +0200)]
opts: makefile now includes all current man pages

9 years agoopts: 11 more man pages
Daniel Stenberg [Wed, 18 Jun 2014 21:35:48 +0000 (23:35 +0200)]
opts: 11 more man pages

9 years agoopts: document CURLE_OUT_OF_MEMORY as RETURN VALUE
Dan Fandrich [Wed, 18 Jun 2014 21:27:24 +0000 (23:27 +0200)]
opts: document CURLE_OUT_OF_MEMORY as RETURN VALUE

9 years agoopts: fixed a couple of typos
Dan Fandrich [Wed, 18 Jun 2014 21:07:08 +0000 (23:07 +0200)]
opts: fixed a couple of typos

9 years agoOS400: make it compilable again. Make RPG binding up to date.
Patrick Monnerat [Wed, 18 Jun 2014 18:22:44 +0000 (20:22 +0200)]
OS400: make it compilable again. Make RPG binding up to date.

9 years agobuildconf: do not search tools in current directory.
Patrick Monnerat [Wed, 18 Jun 2014 13:41:06 +0000 (15:41 +0200)]
buildconf: do not search tools in current directory.

9 years agocurl.h: renamed CURLOPT_DEPRECATEDx to CURLOPT_OBSOLETEx
Dan Fandrich [Wed, 18 Jun 2014 12:56:13 +0000 (14:56 +0200)]
curl.h: renamed CURLOPT_DEPRECATEDx to CURLOPT_OBSOLETEx

This is consistent with the existing obsolete error code naming
convention.

9 years agoopts: 16 more man pages
Daniel Stenberg [Wed, 18 Jun 2014 12:38:24 +0000 (14:38 +0200)]
opts: 16 more man pages

9 years agoopts: more man pages
Daniel Stenberg [Wed, 18 Jun 2014 11:18:58 +0000 (13:18 +0200)]
opts: more man pages

9 years agoCURLOPT_READFUNCTION.3: add short desc
Daniel Stenberg [Wed, 18 Jun 2014 09:55:13 +0000 (11:55 +0200)]
CURLOPT_READFUNCTION.3: add short desc

9 years agoCURLOPT_LOW_SPEED_LIMIT.3: language
Daniel Stenberg [Wed, 18 Jun 2014 09:54:42 +0000 (11:54 +0200)]
CURLOPT_LOW_SPEED_LIMIT.3: language

9 years agoopts: 4 more man pages
Daniel Stenberg [Wed, 18 Jun 2014 09:45:22 +0000 (11:45 +0200)]
opts: 4 more man pages

9 years agoopts: add all existing man pages to the dist
Daniel Stenberg [Wed, 18 Jun 2014 08:18:00 +0000 (10:18 +0200)]
opts: add all existing man pages to the dist

9 years agolibcurl build: use correct dir when cd'ing to opts for pdf building
Daniel Stenberg [Wed, 18 Jun 2014 08:14:32 +0000 (10:14 +0200)]
libcurl build: use correct dir when cd'ing to opts for pdf building

9 years agotests: Use CURLOPT_READDATA instead of the obsolete CURLOPT_INFILE
Dan Fandrich [Tue, 17 Jun 2014 23:17:23 +0000 (01:17 +0200)]
tests: Use CURLOPT_READDATA instead of the obsolete CURLOPT_INFILE

9 years agoopts: fixed a few typos
Dan Fandrich [Tue, 17 Jun 2014 22:54:30 +0000 (00:54 +0200)]
opts: fixed a few typos

9 years agoopts: 29 more options as man pages
Daniel Stenberg [Tue, 17 Jun 2014 22:29:22 +0000 (00:29 +0200)]
opts: 29 more options as man pages

9 years agocurl.h: moved two really old deprecated symbols
Daniel Stenberg [Tue, 17 Jun 2014 21:36:29 +0000 (23:36 +0200)]
curl.h: moved two really old deprecated symbols

... from the CINIT() enum

9 years agoopts: 9 more options as separate man pages
Daniel Stenberg [Tue, 17 Jun 2014 16:04:40 +0000 (18:04 +0200)]
opts: 9 more options as separate man pages

9 years agoopts: 3 more options as man pages
Daniel Stenberg [Tue, 17 Jun 2014 14:48:16 +0000 (16:48 +0200)]
opts: 3 more options as man pages

9 years agoopts: 7 more setopt options as individual man pages
Daniel Stenberg [Tue, 17 Jun 2014 09:39:26 +0000 (11:39 +0200)]
opts: 7 more setopt options as individual man pages

9 years agoopts template: provide a filled in error code phrase
Daniel Stenberg [Tue, 17 Jun 2014 09:38:51 +0000 (11:38 +0200)]
opts template: provide a filled in error code phrase

9 years agoCURLOPT_SOCKOPTFUNCTION.3: clarify return code
Daniel Stenberg [Tue, 17 Jun 2014 08:10:13 +0000 (10:10 +0200)]
CURLOPT_SOCKOPTFUNCTION.3: clarify return code

9 years agocurl.h: reverse the enum/define setup for old symbols
Daniel Stenberg [Tue, 17 Jun 2014 08:02:41 +0000 (10:02 +0200)]
curl.h: reverse the enum/define setup for old symbols

We now provide the "real" names in the CINIT() macro setup for CURLOPT_*
symbols, and we provide backwards compatibility defines for the old
symbols as defines instead of vice versa.

This allows us to better use the CINIT() list to check for existing and
current option names.

9 years agoCURLOPT_WRITEDATA.3: move version info to AVAILABILITY
Daniel Stenberg [Tue, 17 Jun 2014 08:02:14 +0000 (10:02 +0200)]
CURLOPT_WRITEDATA.3: move version info to AVAILABILITY

9 years agoopts: 4 more options with stand-alone man pages
Daniel Stenberg [Tue, 17 Jun 2014 07:54:58 +0000 (09:54 +0200)]
opts: 4 more options with stand-alone man pages

9 years agoCURLOPT_READFUNCTION.3: see also the seekfunction
Daniel Stenberg [Tue, 17 Jun 2014 07:54:40 +0000 (09:54 +0200)]
CURLOPT_READFUNCTION.3: see also the seekfunction

9 years agoCURLOPT_IOCTLFUNCTION.3: fill in short desc
Daniel Stenberg [Tue, 17 Jun 2014 06:12:14 +0000 (08:12 +0200)]
CURLOPT_IOCTLFUNCTION.3: fill in short desc

9 years agoCURLOPT_READDATA.3: fixed typo
Dan Fandrich [Mon, 16 Jun 2014 22:46:32 +0000 (00:46 +0200)]
CURLOPT_READDATA.3: fixed typo

9 years agotool_metalink: Support polarssl as digest provider
Michał Górny [Sun, 15 Jun 2014 15:35:49 +0000 (17:35 +0200)]
tool_metalink: Support polarssl as digest provider

9 years agoopts: initial makefile
Daniel Stenberg [Mon, 16 Jun 2014 22:29:02 +0000 (00:29 +0200)]
opts: initial makefile

with a bonus first rough 'mancheck' target to see which man pages that
are still missing

9 years agoCURLOPT_IOCTLFUNCTION.3: initial man page
Daniel Stenberg [Mon, 16 Jun 2014 22:15:41 +0000 (00:15 +0200)]
CURLOPT_IOCTLFUNCTION.3: initial man page

9 years agoCURLOPT_WRITEFUNCTION: changed the order of some sentences
Daniel Stenberg [Mon, 16 Jun 2014 22:02:22 +0000 (00:02 +0200)]
CURLOPT_WRITEFUNCTION: changed the order of some sentences

First explain the data then describe what the callback should return.

9 years agoCURLOPT_WRITEFUNCTION.3: improved language
Daniel Stenberg [Mon, 16 Jun 2014 21:55:30 +0000 (23:55 +0200)]
CURLOPT_WRITEFUNCTION.3: improved language

Suggestions-by: Jeff Pohlmeyer
9 years agoopts docs: 3 more options in their own man pages
Daniel Stenberg [Mon, 16 Jun 2014 21:01:12 +0000 (23:01 +0200)]
opts docs: 3 more options in their own man pages

9 years agotemplate: a template for adding new option man pages
Daniel Stenberg [Mon, 16 Jun 2014 20:16:13 +0000 (22:16 +0200)]
template: a template for adding new option man pages

Inludes all the sections to consider.

9 years agoCURLOPT_WRITEFUNCTION: add RETURN VALUE and DEFAULT sections
Daniel Stenberg [Mon, 16 Jun 2014 20:01:08 +0000 (22:01 +0200)]
CURLOPT_WRITEFUNCTION: add RETURN VALUE and DEFAULT sections

9 years agocurlbuild: fix GCC build on SPARC systems without configure script
MAN-AT-ARMS [Mon, 16 Jun 2014 19:12:14 +0000 (15:12 -0400)]
curlbuild: fix GCC build on SPARC systems without configure script

9 years agoCURLOPT_WRITEFUNCTION: initial man page
Daniel Stenberg [Mon, 16 Jun 2014 18:27:37 +0000 (20:27 +0200)]
CURLOPT_WRITEFUNCTION: initial man page

9 years agoCURLOPT_WILDCARDMATCH: initial man page
Daniel Stenberg [Mon, 16 Jun 2014 18:27:28 +0000 (20:27 +0200)]
CURLOPT_WILDCARDMATCH: initial man page

9 years agoCURLOPT_VERBOSE: initial man page
Daniel Stenberg [Mon, 16 Jun 2014 18:27:18 +0000 (20:27 +0200)]
CURLOPT_VERBOSE: initial man page

9 years agoCURLOPT_NOSIGNAL: initial man page
Daniel Stenberg [Mon, 16 Jun 2014 18:27:07 +0000 (20:27 +0200)]
CURLOPT_NOSIGNAL: initial man page

9 years agoCURLOPT_NOPROGRESS: initial man page
Daniel Stenberg [Mon, 16 Jun 2014 18:26:53 +0000 (20:26 +0200)]
CURLOPT_NOPROGRESS: initial man page

9 years agoCURLOPT_HEADER: initial man page
Daniel Stenberg [Mon, 16 Jun 2014 18:26:32 +0000 (20:26 +0200)]
CURLOPT_HEADER: initial man page

9 years agosasl: Added back qop argument mistakenly removed in e95ca7ce
Dan Fandrich [Sun, 15 Jun 2014 10:38:11 +0000 (12:38 +0200)]
sasl: Added back qop argument mistakenly removed in e95ca7ce

This caused segfaults on tests 823 869 907.

9 years agotest1398: Added test to Makefile.am
Dan Fandrich [Sun, 15 Jun 2014 10:28:43 +0000 (12:28 +0200)]
test1398: Added test to Makefile.am

9 years agohttps: Fix build when http2 is disabled
Dan Fandrich [Sun, 15 Jun 2014 10:24:47 +0000 (12:24 +0200)]
https: Fix build when http2 is disabled

9 years agohttp2: better return code error checking
Daniel Stenberg [Fri, 13 Jun 2014 22:11:01 +0000 (00:11 +0200)]
http2: better return code error checking

9 years agoconncache: move the connection counter to the cache struct
Lindley French [Thu, 12 Jun 2014 18:36:41 +0000 (11:36 -0700)]
conncache: move the connection counter to the cache struct

The static connection counter caused a race condition. Moving the
connection id counter into conncache solves it, as well as simplifying
the related logic.

9 years agohttp2: avoid segfault when usint the plain-text http2
Daniel Stenberg [Thu, 12 Jun 2014 21:38:09 +0000 (23:38 +0200)]
http2: avoid segfault when usint the plain-text http2

This regression was introduced when *init was split into *init and
*setup...

9 years agoRELEASE-NOTES: Synced with 3aa1329e0a
Steve Holme [Wed, 11 Jun 2014 21:59:14 +0000 (22:59 +0100)]
RELEASE-NOTES: Synced with 3aa1329e0a

9 years agocurl_sasl: revert the goto for error bailout
Daniel Stenberg [Wed, 11 Jun 2014 21:32:10 +0000 (23:32 +0200)]
curl_sasl: revert the goto for error bailout

They were added because of an older code path that used allocations and
should not have been left in the code. With this change the logic goes
back to how it was.

9 years agoNTLM: set a fake entropy for debug builds with CURL_ENTROPY set
Daniel Stenberg [Thu, 20 Mar 2014 10:17:40 +0000 (11:17 +0100)]
NTLM: set a fake entropy for debug builds with CURL_ENTROPY set

Curl_rand() will return a dummy and repatable random value for this
case. Makes it possible to write test cases that verify output.

Also, fake timestamp with CURL_FORCETIME set.

Only when built debug enabled of course.

Curl_ssl_random() was not used anymore so it has been
removed. Curl_rand() is enough.

create_digest_md5_message: generate base64 instead of hex string

curl_sasl: also fix memory leaks in some OOM situations