]> granicus.if.org Git - curl/log
curl
8 years agonroff-scan.pl: verify that references are made with \fI
Daniel Stenberg [Mon, 2 May 2016 07:09:16 +0000 (09:09 +0200)]
nroff-scan.pl: verify that references are made with \fI

8 years agodocs: unified man page references to use \fI
Daniel Stenberg [Mon, 2 May 2016 07:09:36 +0000 (09:09 +0200)]
docs: unified man page references to use \fI

8 years agoTODO: 17.14 --fail without --location should treat 3xx as a failure
Daniel Stenberg [Mon, 2 May 2016 06:36:54 +0000 (08:36 +0200)]
TODO: 17.14 --fail without --location should treat 3xx as a failure

Closes #727

8 years agoRELEASE-NOTES: synced with 7987f5cb14d
Daniel Stenberg [Sun, 1 May 2016 21:44:02 +0000 (23:44 +0200)]
RELEASE-NOTES: synced with 7987f5cb14d

8 years agoCURLOPT_ACCEPT_ENCODING.3: Follow-up clarification
Isaac Boukris [Sat, 23 Apr 2016 12:52:04 +0000 (15:52 +0300)]
CURLOPT_ACCEPT_ENCODING.3: Follow-up clarification

Mention possible content-length mismatch with sum of bytes reported
by write callbacks when auto decoding is enabled.

See #785

8 years agotest1140: run nroff-scan to verify man pages
Daniel Stenberg [Sun, 1 May 2016 21:07:35 +0000 (23:07 +0200)]
test1140: run nroff-scan to verify man pages

8 years agonroff-scan.pl: verify the .BR references as well
Daniel Stenberg [Sun, 1 May 2016 21:07:06 +0000 (23:07 +0200)]
nroff-scan.pl: verify the .BR references as well

8 years agoCURLOPT_CONV_TO_NETWORK_FUNCTION.3: fix bad man page reference
Daniel Stenberg [Sun, 1 May 2016 21:06:43 +0000 (23:06 +0200)]
CURLOPT_CONV_TO_NETWORK_FUNCTION.3: fix bad man page reference

8 years agoCURLOPT_BUFFERSIZE.3: fix reference to CURLOPT_MAX_RECV_SPEED_LARGE
Daniel Stenberg [Sun, 1 May 2016 21:06:15 +0000 (23:06 +0200)]
CURLOPT_BUFFERSIZE.3: fix reference to CURLOPT_MAX_RECV_SPEED_LARGE

8 years agocurl_easy_pause.3: fix man page reference
Daniel Stenberg [Sun, 1 May 2016 21:05:55 +0000 (23:05 +0200)]
curl_easy_pause.3: fix man page reference

8 years agotool_cb_hdr: Fix --remote-header-name with schemeless URL
Jay Satiro [Sun, 1 May 2016 20:07:04 +0000 (16:07 -0400)]
tool_cb_hdr: Fix --remote-header-name with schemeless URL

- Move the existing scheme check from tool_operate.

In the case of --remote-header-name we want to parse Content-disposition
for a filename, but only if the scheme is http or https. A recent
adjustment 0dc4d8e was made to account for schemeless URLs however it's
not 100% accurate. To remedy that I've moved the scheme check to the
header callback, since at that point the library has already determined
the scheme.

Bug: https://github.com/curl/curl/issues/760
Reported-by: Kai Noda
8 years agotls: make setting pinnedkey option fail if not supported
Daniel Stenberg [Sun, 1 May 2016 15:05:38 +0000 (17:05 +0200)]
tls: make setting pinnedkey option fail if not supported

to make it obvious to users trying to use the feature with TLS backends
not supporting it.

Discussed in #781
Reported-by: Travis Burtrum
8 years agonroff-scan.pl: verifies nroff pages
Daniel Stenberg [Sun, 1 May 2016 14:41:35 +0000 (16:41 +0200)]
nroff-scan.pl: verifies nroff pages

... not used by any test yet but can be used stand-alone.

8 years agoopts: fix broken/bad references
Daniel Stenberg [Sun, 1 May 2016 14:41:04 +0000 (16:41 +0200)]
opts: fix broken/bad references

8 years agodocs: fix bugs in CURLOPT_HTTP_VERSION.3 and CURLOPT_PIPEWAIT.3
Michael Kaufmann [Sun, 1 May 2016 11:22:16 +0000 (13:22 +0200)]
docs: fix bugs in CURLOPT_HTTP_VERSION.3 and CURLOPT_PIPEWAIT.3

Closes #786

8 years agoCURLOPT_ACCEPT_ENCODING.3: clarified
Daniel Stenberg [Sun, 1 May 2016 11:29:11 +0000 (13:29 +0200)]
CURLOPT_ACCEPT_ENCODING.3: clarified

As discussed in #785

8 years agocurl.1: --mail-rcpt can be used multiple times
Daniel Stenberg [Fri, 29 Apr 2016 22:15:44 +0000 (00:15 +0200)]
curl.1: --mail-rcpt can be used multiple times

Reported-by: mgendre
Closes #784

8 years agotests: Use 'pathhelp' for paths conversions in secureserver.pl
Karlson2k [Mon, 22 Feb 2016 07:06:53 +0000 (10:06 +0300)]
tests: Use 'pathhelp' for paths conversions in secureserver.pl

Closes #675

8 years agotests: Use 'pathhelp' for paths conversions in sshserver.pl
Karlson2k [Sun, 21 Feb 2016 20:17:57 +0000 (23:17 +0300)]
tests: Use 'pathhelp' for paths conversions in sshserver.pl

8 years agotests: Use 'pathhelp' for current path in runtests.pl
Karlson2k [Tue, 15 Mar 2016 21:14:47 +0000 (00:14 +0300)]
tests: Use 'pathhelp' for current path in runtests.pl

8 years agotests: pathhelp.pm to process paths on Msys/Cygwin
Karlson2k [Tue, 15 Mar 2016 20:07:19 +0000 (23:07 +0300)]
tests: pathhelp.pm to process paths on Msys/Cygwin

8 years agolib: include curl_printf.h as one of the last headers
Daniel Stenberg [Fri, 29 Apr 2016 13:46:40 +0000 (15:46 +0200)]
lib: include curl_printf.h as one of the last headers

curl_printf.h defines printf to curl_mprintf, etc. This can cause
problems with external headers which may use
__attribute__((format(printf, ...))) markers etc.

To avoid that they cause problems with system includes, we include
curl_printf.h after any system headers. That makes the three last
headers to always be, and we keep them in this order:

 curl_printf.h
 curl_memory.h
 memdebug.h

None of them include system headers, they all do funny #defines.

Reported-by: David Benjamin
Fixes #743

8 years agomemdebug.h: remove inclusion of other headers
Daniel Stenberg [Fri, 29 Apr 2016 13:33:46 +0000 (15:33 +0200)]
memdebug.h: remove inclusion of other headers

Mostly because they're not needed, because memdebug.h is always included
last of all headers so the others already included the correct ones.

But also, starting now we don't want this to accidentally include any
system headers, as the header included _before_ this header may add
defines and other fun stuff that we won't want used in system includes.

8 years agocurl -J: make it work even without http:// scheme on URL
Jay Satiro [Fri, 29 Apr 2016 13:24:10 +0000 (15:24 +0200)]
curl -J: make it work even without http:// scheme on URL

It does open up a miniscule risk that one of the other protocols that
libcurl could use would send back a Content-Disposition header and then
curl would act on it even if not HTTP.

A future mitigation for this risk would be to allow the callback to ask
libcurl which protocol is being used.

Verified with test 1312

Closes #760

8 years agomanpage-scan.pl: also verify the command line option docs
Daniel Stenberg [Thu, 28 Apr 2016 21:52:37 +0000 (23:52 +0200)]
manpage-scan.pl: also verify the command line option docs

This script now also scans src/tool_getparam.c, docs/curl.1 and
src/tool_help.c and will warn if any of them lists a command line option
not mentioned in one of the other places.

8 years agocurl: show the long option version of -q in the -h list
Daniel Stenberg [Thu, 28 Apr 2016 21:50:52 +0000 (23:50 +0200)]
curl: show the long option version of -q in the -h list

8 years agocurl: remove "--socks" as "--socks5" turned 8
Daniel Stenberg [Thu, 28 Apr 2016 21:47:03 +0000 (23:47 +0200)]
curl: remove "--socks" as "--socks5" turned 8

In commit 2e42b0a2524 (Jan 2008) we made the option "--socks" deprecated
and it has not been documented since. The more explicit socks options
(like --socks4 or --socks5) should be used.

8 years agocurl.1: document the deprecated --ftp-ssl option
Daniel Stenberg [Thu, 28 Apr 2016 21:46:31 +0000 (23:46 +0200)]
curl.1: document the deprecated --ftp-ssl option

8 years agocurl: remove --http-request
Daniel Stenberg [Thu, 28 Apr 2016 21:38:28 +0000 (23:38 +0200)]
curl: remove --http-request

It was mentioned as deprecated already in commit ae1912cb0d4 from
1999. It has not been documented in this millennium.

8 years agocurl: mention --ntlm-wb in -h list
Daniel Stenberg [Thu, 28 Apr 2016 21:33:27 +0000 (23:33 +0200)]
curl: mention --ntlm-wb in -h list

8 years agocurl: -h output lacked --proxy-header
Daniel Stenberg [Thu, 28 Apr 2016 21:31:53 +0000 (23:31 +0200)]
curl: -h output lacked --proxy-header

8 years agocurl.1: document --ntlm-wb
Daniel Stenberg [Thu, 28 Apr 2016 21:26:52 +0000 (23:26 +0200)]
curl.1: document --ntlm-wb

8 years agocurl.1: document the long format of -q: --disable
Daniel Stenberg [Thu, 28 Apr 2016 21:23:44 +0000 (23:23 +0200)]
curl.1: document the long format of -q: --disable

8 years agocurl.1: mention the deprecated --krb4 option
Daniel Stenberg [Thu, 28 Apr 2016 21:23:17 +0000 (23:23 +0200)]
curl.1: mention the deprecated --krb4 option

8 years agocurl.1: document --ftp-ssl-reqd
Daniel Stenberg [Thu, 28 Apr 2016 21:18:28 +0000 (23:18 +0200)]
curl.1: document --ftp-ssl-reqd

Even if deprecated, document it so that people will find it as old
scripts may still use it.

8 years agocurl: use --telnet-option as documented
Daniel Stenberg [Thu, 28 Apr 2016 21:13:55 +0000 (23:13 +0200)]
curl: use --telnet-option as documented

The code said "telnet-options" but no documentation ever said so. It
worked fine since the code is fine with a unique match of the first
part.

8 years agogetparam: remove support for --ftpport
Daniel Stenberg [Thu, 28 Apr 2016 21:08:42 +0000 (23:08 +0200)]
getparam: remove support for --ftpport

It has been deprecated and undocumented since commit ad5ead8bed7 (Dec
2003). --ftp-port is the proper long option name.

8 years agocurl: make --disable work as long form of -q
Daniel Stenberg [Thu, 28 Apr 2016 20:32:05 +0000 (22:32 +0200)]
curl: make --disable work as long form of -q

To make the aliases list reflect reality.

8 years agoaliases: remove trailing space from capath string
Daniel Stenberg [Thu, 28 Apr 2016 20:28:37 +0000 (22:28 +0200)]
aliases: remove trailing space from capath string

8 years agocmdline parse: only single letter options have single-letter strings
Daniel Stenberg [Thu, 28 Apr 2016 20:24:10 +0000 (22:24 +0200)]
cmdline parse: only single letter options have single-letter strings

... moved around options so that parsing the code to find all
single-letter options easier.

8 years agoCURLINFO_TLS_SSL_PTR.3: Clarify SSL pointer availability
Jay Satiro [Thu, 28 Apr 2016 20:48:38 +0000 (16:48 -0400)]
CURLINFO_TLS_SSL_PTR.3: Clarify SSL pointer availability

Bug: https://curl.haxx.se/mail/lib-2016-04/0126.html
Reported-by: Bru Rom
8 years agocurl_easy_getinfo.3: remove superfluous blank lines
Daniel Stenberg [Thu, 28 Apr 2016 14:31:37 +0000 (16:31 +0200)]
curl_easy_getinfo.3: remove superfluous blank lines

8 years agotest1139: verifies libcurl option man page presence
Daniel Stenberg [Thu, 28 Apr 2016 14:27:51 +0000 (16:27 +0200)]
test1139: verifies libcurl option man page presence

- checks that each option has its own man page present

- checks that each option is mentioned in its corresponding index man
  page

8 years agocurl_easy_getinfo.3: added missing mention of CURLINFO_TLS_SESSION
Daniel Stenberg [Thu, 28 Apr 2016 14:26:42 +0000 (16:26 +0200)]
curl_easy_getinfo.3: added missing mention of CURLINFO_TLS_SESSION

... although it is deprecated.

8 years agombedtls: Fix session resume
Jay Satiro [Thu, 28 Apr 2016 06:57:12 +0000 (02:57 -0400)]
mbedtls: Fix session resume

This also fixes PolarSSL session resume.

Prior to this change the TLS session information wasn't properly
saved and restored for PolarSSL and mbedTLS.

Bug: https://curl.haxx.se/mail/lib-2016-01/0070.html
Reported-by: Thomas Glanzmann
Bug: https://curl.haxx.se/mail/lib-2016-04/0095.html
Reported-by: Moti Avrahami
8 years agoRELEASE-NOTES: synced with f4298fcc6d2
Daniel Stenberg [Wed, 27 Apr 2016 13:31:38 +0000 (15:31 +0200)]
RELEASE-NOTES: synced with f4298fcc6d2

8 years agoopts: Fix some syntax errors in example code fragments
Michael Kaufmann [Tue, 26 Apr 2016 21:51:50 +0000 (23:51 +0200)]
opts: Fix some syntax errors in example code fragments

Fixes #779

8 years agoopenssl: avoid BN_print a NULL bignum
Daniel Stenberg [Tue, 26 Apr 2016 21:55:31 +0000 (23:55 +0200)]
openssl: avoid BN_print a NULL bignum

OpenSSL 1.1.0-pre seems to return NULL(?) for a whole lot of those
numbers so make sure the function handles this.

Reported-by: Linus Nordberg
8 years agoCONNECT_ONLY: don't close connection on GSS 401/407 reponses
Marcel Raad [Mon, 15 Feb 2016 07:58:36 +0000 (08:58 +0100)]
CONNECT_ONLY: don't close connection on GSS 401/407 reponses

Previously, connections were closed immediately before the user had a
chance to extract the socket when the proxy required Negotiate
authentication.

This regression was brought in with the security fix in commit
79b9d5f1a42578f

Closes #655

8 years agoCURLINFO_TLS_SESSION.3: clarify TLS library support before 7.48.0
Daniel Stenberg [Tue, 26 Apr 2016 13:17:07 +0000 (15:17 +0200)]
CURLINFO_TLS_SESSION.3: clarify TLS library support before 7.48.0

8 years agombedtls.c: silly spellfix of a comment
Daniel Stenberg [Mon, 25 Apr 2016 22:28:40 +0000 (00:28 +0200)]
mbedtls.c: silly spellfix of a comment

8 years agoKNOWN_BUGS: 1.10 Strips trailing dot from host name
Daniel Stenberg [Mon, 25 Apr 2016 22:07:40 +0000 (00:07 +0200)]
KNOWN_BUGS: 1.10 Strips trailing dot from host name

Closes #716

8 years agotest1322: verify stripping of trailing dot from host name
Daniel Stenberg [Mon, 25 Apr 2016 21:51:33 +0000 (23:51 +0200)]
test1322: verify stripping of trailing dot from host name

While being debated (in #716) and a violation of RFC 7230 section 5.4,
this test verifies that the existing functionality works as intended. It
strips the dot from the host name and uses the host without dot
throughout the internals.

8 years agomulti: accidentally used resolved host name instead of proxy
Daniel Stenberg [Sat, 23 Apr 2016 20:46:15 +0000 (22:46 +0200)]
multi: accidentally used resolved host name instead of proxy

Regression introduced in 09b5a998

Bug: https://curl.haxx.se/mail/lib-2016-04/0084.html
Reported-by: BoBo
8 years agosymbols-in-versions: added new CURLSSLBACKEND_ symbols
Daniel Stenberg [Mon, 25 Apr 2016 21:15:00 +0000 (23:15 +0200)]
symbols-in-versions: added new CURLSSLBACKEND_ symbols

8 years agotest148: fixed after the --ftp-create-dirs retry change
Daniel Stenberg [Mon, 25 Apr 2016 21:10:13 +0000 (23:10 +0200)]
test148: fixed after the --ftp-create-dirs retry change

follow-up commit to 3c1e84f569 as it made curl try a little harder

8 years agocurl.h: clarify curl_sslbackend for openssl clones and renames
Daniel Stenberg [Mon, 25 Apr 2016 09:35:12 +0000 (11:35 +0200)]
curl.h: clarify curl_sslbackend for openssl clones and renames

8 years agourl.c: fixed DEBUGASSERT() for WinSock workaround
Karlson2k [Mon, 25 Apr 2016 09:12:26 +0000 (12:12 +0300)]
url.c: fixed DEBUGASSERT() for WinSock workaround

If buffer is allocated, but nothing is received during prereceive
stage, than number of processed bytes must be zero.

Closes #778

8 years agoKNOWN_BUGS: --interface for ipv6 binds to unusable IP address
Daniel Stenberg [Mon, 25 Apr 2016 09:20:23 +0000 (11:20 +0200)]
KNOWN_BUGS: --interface for ipv6 binds to unusable IP address

Closes #686 for now.

8 years agoTODO: 1.17 Add support for IRIs
Daniel Stenberg [Sun, 24 Apr 2016 21:51:34 +0000 (23:51 +0200)]
TODO: 1.17 Add support for IRIs

Adding support for IRIs is a mouthful, but is probably interesting at
least for areas and countries where the use of such "URLs" are growing
popularity.

Closes #776

8 years agoTHANKS-filter: Travis Burtrum
Daniel Stenberg [Sun, 24 Apr 2016 10:46:41 +0000 (12:46 +0200)]
THANKS-filter: Travis Burtrum

8 years agolib1517: checksrc compliance
Daniel Stenberg [Sun, 24 Apr 2016 10:27:22 +0000 (12:27 +0200)]
lib1517: checksrc compliance

8 years agoPolarSSL: Implement public key pinning
moparisthebest [Fri, 22 Apr 2016 01:21:45 +0000 (21:21 -0400)]
PolarSSL: Implement public key pinning

8 years agoos400: upgrade ILE/RPG binding
Patrick Monnerat [Fri, 22 Apr 2016 14:50:30 +0000 (16:50 +0200)]
os400: upgrade ILE/RPG binding

8 years agocurl.h: CURLOPT_CONNECT_TO sets a struct slist *, not a string
Patrick Monnerat [Fri, 22 Apr 2016 14:49:02 +0000 (16:49 +0200)]
curl.h: CURLOPT_CONNECT_TO sets a struct slist *, not a string

8 years agocontributors.sh: make --releasenotes implied
Daniel Stenberg [Fri, 22 Apr 2016 13:53:42 +0000 (15:53 +0200)]
contributors.sh: make --releasenotes implied

It got too annoying to type =)

8 years agoRELEASE-NOTES: synced with 3c1e84f5693d8093
Daniel Stenberg [Fri, 22 Apr 2016 13:46:34 +0000 (15:46 +0200)]
RELEASE-NOTES: synced with 3c1e84f5693d8093

8 years agocurl: make --ftp-create-dirs retry on failure
Daniel Stenberg [Fri, 22 Apr 2016 13:25:13 +0000 (15:25 +0200)]
curl: make --ftp-create-dirs retry on failure

The underlying libcurl option used for this feature is
CURLOPT_FTP_CREATE_MISSING_DIRS which has the ability to retry the dir
creation, but it was never set to do that by the command line tool.

Now it does.

Bug: https://curl.haxx.se/mail/archive-2016-04/0021.html
Reported-by: John Wanghui
Help-by: Leif W
8 years agowinbuild: add mbedtls support
Henrik Gaßmann [Thu, 21 Apr 2016 21:23:49 +0000 (23:23 +0200)]
winbuild: add mbedtls support

Add WITH_MBEDTLS option. Make WITH_SSL, WITH_MBEDTLS and ENABLE_WINSSL
options mutual exclusive.

Closes #606

8 years agoKNOWN_BUGS: fixed "5.6 Improper use of Autoconf cache variables"
Daniel Stenberg [Thu, 21 Apr 2016 21:14:13 +0000 (23:14 +0200)]
KNOWN_BUGS: fixed "5.6 Improper use of Autoconf cache variables"

As of commit d9f3b365a3

8 years agoconfigure: ac_cv_ -> curl_cv_ for write-only vars
Irfan Adilovic [Sun, 17 Apr 2016 20:05:15 +0000 (22:05 +0200)]
configure: ac_cv_ -> curl_cv_ for write-only vars

These configure vars are modified in a curl-specific way but never
evaluated or loaded from cache, even though they are designated as
_cv_. We could either implement proper AC_CACHE_CHECKs for them, or
remove them completely.

Fixes #603 as ac_cv_func_gethostbyname is no longer clobbered, and
AC_CHECK_FUNC(gethostbyname...) will no longer spuriously succeed after
the first configure run with caching.

`ac_cv_func_strcasecmp` is curious, see #770.

`eval "ac_cv_func_$func=yes"` can still cause problems as it works in
tandem with AC_CHECK_FUNCS and then potentially modifies its result. It
would be best to rewrite this test to use a new CURL_CHECK_FUNCS macro,
which works the same as AC_CHECK_FUNCS but relies on caching the values
of curl_cv_func_* variables, without modifiying ac_cv_func_*.

8 years agoconfigure: ac_cv_ -> curl_cv_ for r/w vars
Irfan Adilovic [Sun, 17 Apr 2016 19:58:15 +0000 (21:58 +0200)]
configure: ac_cv_ -> curl_cv_ for r/w vars

These configure vars are modified in a curl-specific way and modified by
the configure process, but are never loaded from cache, even though they
are designated as _cv_. We should implement proper AC_CACHE_CHECKs for
them eventually.

8 years agoconfigure: ac_cv_func_clock_gettime -> curl_...
Irfan Adilovic [Sun, 17 Apr 2016 15:01:13 +0000 (17:01 +0200)]
configure: ac_cv_func_clock_gettime -> curl_...

This variable must not be cached in its current form, as any cached
information will prevent the next configure run from determining the
correct LIBS needed for the function. Thus, rename prefix `ac_cv_` to
just `curl_`.

8 years agoconfigure: ac_cv_ -> curl_cv_ for all cached vars
Irfan Adilovic [Fri, 15 Apr 2016 14:37:20 +0000 (16:37 +0200)]
configure: ac_cv_ -> curl_cv_ for all cached vars

This was automated by:

sed -b -i -f <(ack -A1 AC_CACHE_CHECK | \
               ack -o 'ac_cv_.*?\b' | \
               sort -u | xargs -n1 bash -c \
                    'echo "s/$0/curl_cv_${0#ac_cv_}/g"') \
    $(git ls-files)

This only changed the prefix for 16 variables actually checked with
AC_CACHE_CHECK.

8 years agoopenssl: builds with OpenSSL 1.1.0-pre5
Daniel Stenberg [Thu, 21 Apr 2016 08:24:23 +0000 (10:24 +0200)]
openssl: builds with OpenSSL 1.1.0-pre5

The RSA, DSA and DH structs are now opaque and require use of new APIs

Fixes #763

8 years agourl.c: Prefer we don't use explicit NULLs in conditions
Steve Holme [Wed, 20 Apr 2016 17:07:05 +0000 (18:07 +0100)]
url.c: Prefer we don't use explicit NULLs in conditions

Fixed commit fa5fa65a30 to not use NULLs in if condition.

8 years agoNTLM: check for NULL pointer before deferencing
Isaac Boukris [Sat, 16 Apr 2016 08:49:09 +0000 (11:49 +0300)]
NTLM: check for NULL pointer before deferencing

At ConnectionExists, both check->proxyuser and check->proxypasswd
could be NULL, so make sure to check first.

Fixes #765

8 years agotests: added test1517
Karlson2k [Thu, 17 Mar 2016 17:04:20 +0000 (20:04 +0300)]
tests: added test1517

... for checking ability to receive full HTTP response when POST request
is used with slow read callback function.

This test checks for bug #657 and verifies the work-around from
72d5e144fbc6.

Closes #720

8 years agosendf.c: added ability to call recv() before send() as workaround
Karlson2k [Fri, 19 Feb 2016 19:38:20 +0000 (22:38 +0300)]
sendf.c: added ability to call recv() before send() as workaround

WinSock destroys recv() buffer if send() is failed. As result - server
response may be lost if server sent it while curl is still sending
request. This behavior noticeable on HTTP server short replies if
libcurl use several send() for request (usually for POST request).
To workaround this problem, libcurl use recv() before every send() and
keeps received data in intermediate buffer for further processing.

Fixes: #657
Closes: #668
8 years agoconnect: make sure that rc is initialized in singleipconnect()
Kamil Dudka [Tue, 19 Apr 2016 07:38:44 +0000 (09:38 +0200)]
connect: make sure that rc is initialized in singleipconnect()

This commit fixes a Clang warning introduced in curl-7_48_0-190-g8f72b13:

Error: CLANG_WARNING:
lib/connect.c:1120:11: warning: The right operand of '==' is a garbage value
1118|       }
1119|
1120|->     if(-1 == rc)
1121|         error = SOCKERRNO;
1122|     }

8 years agomake/checksrc: use $srcdir, not $top_srcdir
Daniel Stenberg [Tue, 19 Apr 2016 06:48:36 +0000 (08:48 +0200)]
make/checksrc: use $srcdir, not $top_srcdir

8 years agosrc/checksrc.whitelist: removed
Daniel Stenberg [Tue, 19 Apr 2016 06:43:13 +0000 (08:43 +0200)]
src/checksrc.whitelist: removed

8 years agotool_operate: switch to inline checksrc ignore
Daniel Stenberg [Tue, 19 Apr 2016 06:42:55 +0000 (08:42 +0200)]
tool_operate: switch to inline checksrc ignore

8 years agolib/checksrc.whitelist: not needed anymore
Daniel Stenberg [Tue, 19 Apr 2016 06:30:43 +0000 (08:30 +0200)]
lib/checksrc.whitelist: not needed anymore

... as checksrc now skips comments

8 years agovtls.h: remove a space before semicolon
Daniel Stenberg [Tue, 19 Apr 2016 06:41:15 +0000 (08:41 +0200)]
vtls.h: remove a space before semicolon

... that the new checksrc detected

8 years agodarwinssl: removed commented out code
Daniel Stenberg [Tue, 19 Apr 2016 06:32:14 +0000 (08:32 +0200)]
darwinssl: removed commented out code

8 years agohttp_chunks: removed checksrc disable
Daniel Stenberg [Tue, 19 Apr 2016 06:31:33 +0000 (08:31 +0200)]
http_chunks: removed checksrc disable

... since checksrc now skips comments

8 years agoimap: inlined checksrc disable instead of whitelist edit
Daniel Stenberg [Tue, 19 Apr 2016 06:31:11 +0000 (08:31 +0200)]
imap: inlined checksrc disable instead of whitelist edit

8 years agochecksrc: taught to skip comments
Daniel Stenberg [Tue, 19 Apr 2016 06:30:13 +0000 (08:30 +0200)]
checksrc: taught to skip comments

... but output non-stripped version of the line, even if that then can
make the script identify the wrong position in the line at
times. Showing the line stripped (ie without comments) is just too
surprising.

8 years agoopts/Makefile.am: list all docs file one by one
Daniel Stenberg [Tue, 19 Apr 2016 05:59:35 +0000 (07:59 +0200)]
opts/Makefile.am: list all docs file one by one

... to make it easier to add lines in patches that won't just break all
other patches trying to add lines too.

8 years agocurl_easy_setopt.3: mention CURLOPT_TCP_FASTOPEN
Daniel Stenberg [Mon, 18 Apr 2016 22:48:56 +0000 (00:48 +0200)]
curl_easy_setopt.3: mention CURLOPT_TCP_FASTOPEN

8 years agoRELEASE-NOTES: synced with 03de4e4b219
Daniel Stenberg [Mon, 18 Apr 2016 22:39:27 +0000 (00:39 +0200)]
RELEASE-NOTES: synced with 03de4e4b219

(since we just merged two major features)

8 years agoconnect: implement TCP Fast Open for Linux
Alessandro Ghedini [Sun, 3 Apr 2016 12:08:28 +0000 (13:08 +0100)]
connect: implement TCP Fast Open for Linux

Closes #660

8 years agotool: add --tcp-fastopen option
Alessandro Ghedini [Tue, 16 Feb 2016 12:21:34 +0000 (12:21 +0000)]
tool: add --tcp-fastopen option

8 years agoconnect: implement TCP Fast Open for OS X
Alessandro Ghedini [Tue, 16 Feb 2016 12:21:22 +0000 (12:21 +0000)]
connect: implement TCP Fast Open for OS X

8 years agourl: add CURLOPT_TCP_FASTOPEN option
Alessandro Ghedini [Tue, 16 Feb 2016 12:21:03 +0000 (12:21 +0000)]
url: add CURLOPT_TCP_FASTOPEN option

8 years agochecksrc: pass on -D so the whitelists are found correctly
Daniel Stenberg [Mon, 18 Apr 2016 18:10:52 +0000 (20:10 +0200)]
checksrc: pass on -D so the whitelists are found correctly

8 years agoconfigure: remove check for libresolve
Daniel Stenberg [Mon, 18 Apr 2016 13:53:24 +0000 (15:53 +0200)]
configure: remove check for libresolve

'strncasecmp' was once provided by libresolv (no trailing e) for SunOS,
but this check is broken and most likely adds nothing useful. Removing
now.

Reported-by: Irfan Adilovic
Discussed in #770

8 years agoscripts/make: use $(EXEEXT) for executables
Daniel Stenberg [Mon, 18 Apr 2016 13:50:57 +0000 (15:50 +0200)]
scripts/make: use $(EXEEXT) for executables

Reported-by: bodop
Fixes #771

8 years agoincludes: avoid duplicate memory callback typdefs even harder
Daniel Stenberg [Mon, 18 Apr 2016 13:04:17 +0000 (15:04 +0200)]
includes: avoid duplicate memory callback typdefs even harder