]> granicus.if.org Git - curl/log
curl
7 years agofail-early.d: fix typos
Jay Satiro [Sat, 1 Apr 2017 02:36:46 +0000 (22:36 -0400)]
fail-early.d: fix typos

7 years agodocs: Explain --fail-early does not imply --fail
Jay Satiro [Fri, 31 Mar 2017 19:59:07 +0000 (15:59 -0400)]
docs: Explain --fail-early does not imply --fail

Closes https://github.com/curl/curl/pull/1375

7 years agotelnet: (win32) fix read callback return variable
Daniel Stenberg [Fri, 31 Mar 2017 12:20:13 +0000 (14:20 +0200)]
telnet: (win32) fix read callback return variable

telnet.c(1427,21): warning: comparison of constant 268435456 with
expression of type 'CURLcode' is always false

telnet.c(1433,21): warning: comparison of constant 268435457 with
expression of type 'CURLcode' is always false

Reviewed-by: Jay Satiro
Reported-by: Gisle Vanem
Bug: https://github.com/curl/curl/issues/1225#issuecomment-290340890

Closes #1374

7 years agoCTestConfig.cmake: removed, unused
Daniel Stenberg [Fri, 31 Mar 2017 11:42:06 +0000 (13:42 +0200)]
CTestConfig.cmake: removed, unused

7 years agolibcurl.def: removed, unused
Daniel Stenberg [Thu, 30 Mar 2017 22:09:11 +0000 (00:09 +0200)]
libcurl.def: removed, unused

7 years agodocs/index.html: removed, was not shipped anyway
Daniel Stenberg [Thu, 30 Mar 2017 21:58:29 +0000 (23:58 +0200)]
docs/index.html: removed, was not shipped anyway

7 years agodist: add missing files to the tarball
Daniel Stenberg [Thu, 30 Mar 2017 21:56:55 +0000 (23:56 +0200)]
dist: add missing files to the tarball

7 years agocmake: fix build with cmake 2.8.12.2
Peter Wu [Thu, 30 Mar 2017 12:27:51 +0000 (14:27 +0200)]
cmake: fix build with cmake 2.8.12.2

For some reason, CMake 2.8.12.2 did not expand the list argument in a
single DEPENDS argument. Remove the quotes, so it gets expanded into
multiple arguments for add_custom_command and add_custom_target.

Fixes https://github.com/curl/curl/issues/1370
Closes #1372

7 years agossh: fix narrowing conversion warning
Marcel Raad [Thu, 30 Mar 2017 16:41:50 +0000 (18:41 +0200)]
ssh: fix narrowing conversion warning

'left' is used as time_t but declared as long.
MinGW complains:
error: conversion to 'long int' from 'time_t {aka long long int}' may alter
its value [-Werror=conversion]
Changed the declaration to time_t.

7 years agohttp2: silence unused parameter warnings
Marcel Raad [Thu, 30 Mar 2017 16:13:20 +0000 (18:13 +0200)]
http2: silence unused parameter warnings

In release mode, MinGW complains:
error: unused parameter 'lib_error_code' [-Werror=unused-parameter]

7 years agocurl: fix callback functions to match prototype
Hanno Böck [Thu, 30 Mar 2017 12:59:14 +0000 (14:59 +0200)]
curl: fix callback functions to match prototype

The function tool_debug_cb doesn't match curl_debug_callback in curl.h
(unsigned vs. signed char* for 3rd param).

Bug: https://curl.haxx.se/mail/lib-2017-03/0120.html

7 years agogcc7: fix ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
Alexis La Goutte [Thu, 30 Mar 2017 12:14:53 +0000 (14:14 +0200)]
gcc7: fix ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]

Closes #1371

7 years agoschannel: fix unused variable warning
Marcel Raad [Thu, 30 Mar 2017 08:35:46 +0000 (10:35 +0200)]
schannel: fix unused variable warning

If CURL_DISABLE_VERBOSE_STRINGS is defined, hostname is not used in
schannel_connect_step3.

7 years agoconnect: fix unreferenced parameter warning
Marcel Raad [Thu, 30 Mar 2017 08:14:34 +0000 (10:14 +0200)]
connect: fix unreferenced parameter warning

When CURL_DISABLE_VERBOSE_STRINGS is defined, the reason parameter in
Curl_conncontrol is not used as the infof macro expands to nothing.

7 years agoselect: use correct SIZEOF_ constant
Marcel Raad [Mon, 27 Mar 2017 23:37:31 +0000 (01:37 +0200)]
select: use correct SIZEOF_ constant

At least under Windows, there is no SIZEOF_LONG, so it evaluates to 0 even
though sizeof(int) == sizeof(long). This should probably have been
CURL_SIZEOF_LONG, but the type of timeout_ms changed from long to time_t
anyway.
This triggered MSVC warning C4668 about implicitly replacing undefined
macros with '0'.

Closes https://github.com/curl/curl/pull/1362

7 years agocmake: add cmake file in docs/libcurl/opts/ to dist
Daniel Stenberg [Thu, 30 Mar 2017 06:16:56 +0000 (08:16 +0200)]
cmake: add cmake file in docs/libcurl/opts/ to dist

7 years agocmake: add more missing files to the dist
Daniel Stenberg [Thu, 30 Mar 2017 06:12:37 +0000 (08:12 +0200)]
cmake: add more missing files to the dist

7 years agodocs/Makefile.am: include CMakeLists.txt in the dist tarball
Daniel Stenberg [Wed, 29 Mar 2017 22:36:04 +0000 (00:36 +0200)]
docs/Makefile.am: include CMakeLists.txt in the dist tarball

7 years agoNTLM: check for features with #ifdef instead of #if
Marcel Raad [Wed, 29 Mar 2017 11:16:25 +0000 (13:16 +0200)]
NTLM: check for features with #ifdef instead of #if

Feature defines are normally checked with #ifdef instead of #if in the rest of
the codebase. Additionally, some compilers warn when a macro is implicitly
evaluated to 0 because it is not defined, which was the case here.

Ref: https://github.com/curl/curl/pull/1362#discussion_r108605101
Closes https://github.com/curl/curl/pull/1367

7 years agocurl: fix callback argument inconsistency
Hanno Böck [Wed, 29 Mar 2017 08:02:34 +0000 (10:02 +0200)]
curl: fix callback argument inconsistency

As you can see the callback definition uses a char* for the first
argument, while the function uses a void*.

URL: https://curl.haxx.se/mail/lib-2017-03/0116.html

7 years agoRELEASE-NOTES: synced with 556c51a2df
Daniel Stenberg [Wed, 29 Mar 2017 07:50:23 +0000 (09:50 +0200)]
RELEASE-NOTES: synced with 556c51a2df

7 years agoKNOWN_BUGS: typo
madblobfish [Tue, 28 Mar 2017 07:45:12 +0000 (09:45 +0200)]
KNOWN_BUGS: typo

Closes #1364

7 years agomake: use the variable MAKE for recursive calls
Maksim Stsepanenka [Tue, 28 Mar 2017 22:20:32 +0000 (01:20 +0300)]
make: use the variable MAKE for recursive calls

Closes #1366

7 years agoconncache: make hashkey avoid malloc
Daniel Stenberg [Tue, 28 Mar 2017 17:18:24 +0000 (19:18 +0200)]
conncache: make hashkey avoid malloc

... to make it much faster. Idea developed with primepie on IRC.

Closes #1365

7 years agohttp: do not treat FTPS over CONNECT as HTTPS
Kamil Dudka [Tue, 28 Mar 2017 13:50:59 +0000 (15:50 +0200)]
http: do not treat FTPS over CONNECT as HTTPS

If we use FTPS over CONNECT, the TLS handshake for the FTPS control
connection needs to be initiated in the SENDPROTOCONNECT state, not
the WAITPROXYCONNECT state.  Otherwise, if the TLS handshake completed
without blocking, the information about the completed TLS handshake
would be saved to a wrong flag.  Consequently, the TLS handshake would
be initiated in the SENDPROTOCONNECT state once again on the same
connection, resulting in a failure of the TLS handshake.  I was able to
observe the failure with the NSS backend if curl ran through valgrind.

Note that this commit partially reverts curl-7_21_6-52-ge34131d.

7 years agopause: handle mixed types of data when paused
Daniel Stenberg [Mon, 27 Mar 2017 10:14:57 +0000 (12:14 +0200)]
pause: handle mixed types of data when paused

When receiving chunked encoded data with trailers, and the write
callback returns PAUSE, there might be both body and header to store to
resend on unpause. Previously libcurl returned error for that case.

Added test case 1540 to verify.

Reported-by: Stephen Toub
Fixes #1354
Closes #1357

7 years agohttp: Fix proxy connection reuse with basic-auth
Isaac Boukris [Thu, 23 Mar 2017 19:28:28 +0000 (21:28 +0200)]
http: Fix proxy connection reuse with basic-auth

When using basic-auth, connections and proxy connections
can be re-used with different Authorization headers since
it does not authenticate the connection (like NTLM does).

For instance, the below command should re-use the proxy
connection, but it currently doesn't:
curl -v -U alice:a -x http://localhost:8181 http://localhost/
  --next -U bob:b -x http://localhost:8181 http://localhost/

This is a regression since refactoring of ConnectionExists()
as part of: cb4e2be7c6d42ca0780f8e0a747cecf9ba45f151

Fix the above by removing the username and password compare
when re-using proxy connection at proxy_info_matches().

However, this fix brings back another bug would make curl
to re-print the old proxy-authorization header of previous
proxy basic-auth connection because it wasn't cleared.

For instance, in the below command the second request should
fail if the proxy requires authentication, but would succeed
after the above fix (and before aforementioned commit):
curl -v -U alice:a -x http://localhost:8181 http://localhost/
  --next -x http://localhost:8181 http://localhost/

Fix this by clearing conn->allocptr.proxyuserpwd after use
unconditionally, same as we do for conn->allocptr.userpwd.

Also fix test 540 to not expect digest auth header to be
resent when connection is reused.

Signed-off-by: Isaac Boukris <iboukris@gmail.com>
Closes https://github.com/curl/curl/pull/1350

7 years agoopenssl: exclude DSA code when OPENSSL_NO_DSA is defined
Jay Satiro [Tue, 28 Mar 2017 06:56:00 +0000 (02:56 -0400)]
openssl: exclude DSA code when OPENSSL_NO_DSA is defined

- Fix compile errors that occur in openssl.c when OpenSSL lib was
  built without DSA support.

Bug: https://github.com/curl/curl/issues/1361
Reported-by: neheb@users.noreply.github.com
7 years agoexamples/fopen: checksrc compliance
Jay Satiro [Tue, 28 Mar 2017 06:55:14 +0000 (02:55 -0400)]
examples/fopen: checksrc compliance

7 years agoschannel: fix variable shadowing warning
Marcel Raad [Mon, 27 Mar 2017 23:16:12 +0000 (01:16 +0200)]
schannel: fix variable shadowing warning

No need to redeclare the variable.

7 years agomulti: fix MinGW-w64 compiler warnings
Marcel Raad [Mon, 27 Mar 2017 20:50:59 +0000 (22:50 +0200)]
multi: fix MinGW-w64 compiler warnings

error: conversion to 'long int' from 'time_t {aka long long int}' may alter
its value [-Werror=conversion]

7 years ago.gitattributes: turn off CRLF for *.am
Marcel Raad [Tue, 21 Mar 2017 22:20:03 +0000 (23:20 +0100)]
.gitattributes: turn off CRLF for *.am

If Makefile.am uses CRLF, buildconf in a Windows checkout fails with:
".ibtoolize: error: AC_CONFIG_MACRO_DIRS([m4]) conflicts with
ACLOCAL_AMFLAGS=-I m4"

7 years agospelling fixes
klemens [Sun, 26 Mar 2017 15:02:22 +0000 (17:02 +0200)]
spelling fixes

Closes #1356

7 years agocurl: check for end of input in writeout backslash handling
Daniel Stenberg [Fri, 24 Mar 2017 09:14:21 +0000 (10:14 +0100)]
curl: check for end of input in writeout backslash handling

Reported-by: Brian Carpenter
Added test 1442 to verify

7 years agotests/README: make "Run" section foolproof
Marcel Raad [Thu, 23 Mar 2017 22:15:26 +0000 (23:15 +0100)]
tests/README: make "Run" section foolproof

curl must be built before building the tests.

Closes https://github.com/curl/curl/pull/1352

7 years agoopenssl: fix comparison between signed and unsigned integer expressions
Daniel Stenberg [Thu, 23 Mar 2017 22:04:38 +0000 (23:04 +0100)]
openssl: fix comparison between signed and unsigned integer expressions

7 years agoasiohiper: make sure socket is open in event_cb
Edward Kimmel [Wed, 8 Mar 2017 18:11:41 +0000 (13:11 -0500)]
asiohiper: make sure socket is open in event_cb

Send curl_socket_t to event_cb and make sure it hasn't been closed yet.

Closes https://github.com/curl/curl/pull/1318

7 years agoopenssl: made the error table static const
Dan Fandrich [Thu, 23 Mar 2017 21:50:58 +0000 (22:50 +0100)]
openssl: made the error table static const

7 years agoopenssl: fall back on SSL_ERROR_* string when no error detail
Jay Satiro [Wed, 22 Mar 2017 18:39:41 +0000 (14:39 -0400)]
openssl: fall back on SSL_ERROR_* string when no error detail

- If SSL_get_error is called but no extended error detail is available
  then show that SSL_ERROR_* as a string.

Prior to this change there was some inconsistency in that case: the
SSL_ERROR_* code may or may not have been shown, or may have been shown
as unknown even if it was known.

Ref: https://github.com/curl/curl/issues/1300

Closes https://github.com/curl/curl/pull/1348

7 years agomkhelp: disable compression if the perl gzip module is unavailable
Dan Fandrich [Thu, 23 Mar 2017 20:11:41 +0000 (21:11 +0100)]
mkhelp: disable compression if the perl gzip module is unavailable

This is nowadays included with the base perl distribution, but wasn't
prior to about perl 5.14

7 years agotests/README: mention nroff for --manual tests
Anders Roxell [Tue, 21 Mar 2017 18:45:36 +0000 (19:45 +0100)]
tests/README: mention nroff for --manual tests

Signed-off-by: Anders Roxell <anders.roxell@gmail.com>
Closes #1342

7 years agoCURLINFO_PRIMARY_IP.3: add example
Daniel Stenberg [Wed, 22 Mar 2017 10:28:33 +0000 (11:28 +0100)]
CURLINFO_PRIMARY_IP.3: add example

7 years agotravis: run tests-nonflaky instead of tests-full
Daniel Stenberg [Wed, 22 Mar 2017 09:55:10 +0000 (10:55 +0100)]
travis: run tests-nonflaky instead of tests-full

7 years agomake: introduce 'test-nonflaky' target
Daniel Stenberg [Wed, 22 Mar 2017 09:48:20 +0000 (10:48 +0100)]
make: introduce 'test-nonflaky' target

Running this in the root build dir will invoke the test suite to only
run tests not marked as 'flaky'.

7 years agotest2033: flaky
Daniel Stenberg [Wed, 22 Mar 2017 07:55:02 +0000 (08:55 +0100)]
test2033: flaky

7 years agombedtls: add support for CURLOPT_SSL_CTX_FUNCTION
Ales Mlakar [Tue, 21 Feb 2017 12:15:56 +0000 (13:15 +0100)]
mbedtls: add support for CURLOPT_SSL_CTX_FUNCTION

Ref: https://curl.haxx.se/mail/lib-2017-02/0097.html

Closes https://github.com/curl/curl/pull/1272

7 years agocmake: add support for building HTML and PDF docs
Peter Wu [Sat, 25 Feb 2017 17:14:57 +0000 (18:14 +0100)]
cmake: add support for building HTML and PDF docs

Note that for some reason there is this warning (that also exists with
autotools, added since curl-7_15_1-94-ga718cb05f):

    docs/libcurl/curl_multi_socket_all.3:1: can't open `man3/curl_multi_socket.3': No such file or directory

Additionally, adjust the roffit --mandir option to support creating
links when doing out-of-tree builds.

Ref: https://github.com/curl/curl/pull/1288

7 years agocmake: build manual pages (including curl.1)
Peter Wu [Sat, 25 Feb 2017 13:40:24 +0000 (14:40 +0100)]
cmake: build manual pages (including curl.1)

Also make Perl mandatory to allow building the docs.

While CMakeLists.txt could probably read the list of manual pages from
Makefile.am, actually putting those in CMakeLists.txt is cleaner so that
is what is done here.

Fixes #1230
Ref: https://github.com/curl/curl/pull/1288

7 years agodocs: split file lists into Makefile.inc
Peter Wu [Sat, 25 Feb 2017 22:38:25 +0000 (23:38 +0100)]
docs: split file lists into Makefile.inc

For easier sharing with CMake. The contents were reformatted to use
two-space indent and expanded tabs (matching lib/Makefile.common).

Ref: https://github.com/curl/curl/pull/1288

7 years agoexamples: comment typos in http2 examples
Daniel Stenberg [Tue, 21 Mar 2017 11:55:46 +0000 (12:55 +0100)]
examples: comment typos in http2 examples

7 years agoRELEASE-NOTES: typo
Daniel Stenberg [Tue, 21 Mar 2017 11:39:18 +0000 (12:39 +0100)]
RELEASE-NOTES: typo

7 years agoRELEASE-NOTES: synced with 6e0f26c8a8c28df
Daniel Stenberg [Tue, 21 Mar 2017 11:37:11 +0000 (12:37 +0100)]
RELEASE-NOTES: synced with 6e0f26c8a8c28df

7 years agomulti: fix streamclose() crash in debug mode
Daniel Stenberg [Tue, 21 Mar 2017 09:09:11 +0000 (10:09 +0100)]
multi: fix streamclose() crash in debug mode

The code would refer to the wrong data pointer. Only debug builds do
this - for verbosity.

Reported-by: zelinchen@users.noreply.github.com
Fixes #1329

7 years agoCONTRIBUTE: mention referring to github issues in commit msgs
Daniel Stenberg [Mon, 20 Mar 2017 23:41:56 +0000 (00:41 +0100)]
CONTRIBUTE: mention referring to github issues in commit msgs

7 years agoruntests.pl: fixed display of the Gopher IPv6 port number
Dan Fandrich [Mon, 20 Mar 2017 22:37:57 +0000 (23:37 +0100)]
runtests.pl: fixed display of the Gopher IPv6 port number

7 years agotests: fixed the documented test server port numbers
Dan Fandrich [Mon, 20 Mar 2017 22:33:41 +0000 (23:33 +0100)]
tests: fixed the documented test server port numbers

7 years agotest714/5: added HTTP as a required feature
Dan Fandrich [Mon, 20 Mar 2017 21:24:32 +0000 (22:24 +0100)]
test714/5: added HTTP as a required feature

These tests use an HTTP proxy so require that curl be built with HTTP
support.

7 years agotests: strip more options from non-HTTP --libcurl tests
Dan Fandrich [Mon, 20 Mar 2017 20:39:27 +0000 (21:39 +0100)]
tests: strip more options from non-HTTP --libcurl tests

The CURLOPT_USERAGENT and CURLOPT_MAXREDIRS options are only set if HTTP
support is available, so ignore them in tests where HTTP is not
guaranteed.

7 years agodarwinssl: fix typo in variable name
Palo Markovic [Sat, 18 Mar 2017 11:37:51 +0000 (00:37 +1300)]
darwinssl: fix typo in variable name

Broken a week ago in 6448f98.

Closes https://github.com/curl/curl/pull/1337

7 years agotool_operate: Fix showing HTTPS-Proxy options on CURLE_SSL_CACERT
Jay Satiro [Thu, 16 Mar 2017 22:23:31 +0000 (18:23 -0400)]
tool_operate: Fix showing HTTPS-Proxy options on CURLE_SSL_CACERT

- Show the HTTPS-proxy options on CURLE_SSL_CACERT if libcurl was built
  with HTTPS-proxy support.

Prior to this change those options were shown only if an HTTPS-proxy was
specified by --proxy, but that did not take into account environment
variables such as http_proxy, https_proxy, etc. Follow-up to e1187c4.

Bug: https://github.com/curl/curl/issues/1331
Reported-by: Nehal J Wani
7 years agoCURLINFO_LOCAL_PORT.3: fix typo
Jay Satiro [Thu, 16 Mar 2017 22:18:49 +0000 (18:18 -0400)]
CURLINFO_LOCAL_PORT.3: fix typo

7 years agoCURLINFO_LOCAL_PORT.3: added example
Daniel Stenberg [Thu, 16 Mar 2017 22:05:22 +0000 (23:05 +0100)]
CURLINFO_LOCAL_PORT.3: added example

7 years agoSSLCERTS.md: mention HTTPS proxies and their separate options
Daniel Stenberg [Thu, 16 Mar 2017 22:00:24 +0000 (23:00 +0100)]
SSLCERTS.md: mention HTTPS proxies and their separate options

7 years agoBINDINGS: a Delphi binding
Daniel Stenberg [Wed, 15 Mar 2017 12:47:53 +0000 (13:47 +0100)]
BINDINGS: a Delphi binding

7 years agoKNOWN_BUGS: remove libidn related issue
Daniel Stenberg [Tue, 14 Mar 2017 20:13:10 +0000 (21:13 +0100)]
KNOWN_BUGS: remove libidn related issue

... as we no longer use libidn

7 years agobuild: removed redundant DEPENDENCIES from makefiles
Dan Fandrich [Tue, 14 Mar 2017 11:13:03 +0000 (12:13 +0100)]
build: removed redundant DEPENDENCIES from makefiles

7 years agoImprove code readbility
Sylvestre Ledru [Fri, 10 Mar 2017 13:28:37 +0000 (14:28 +0100)]
Improve code readbility

... by removing the else branch after a return, break or continue.

Closes #1310

7 years agowinbuild: add basic support for OpenSSL 1.1.x
Anatol Belski [Fri, 10 Mar 2017 16:04:45 +0000 (17:04 +0100)]
winbuild: add basic support for OpenSSL 1.1.x

- Auto-detect OpenSSL 1.1 libs

Closes https://github.com/curl/curl/pull/1322

7 years agoRELEASE-NOTES: synced with c25e0761d0fc49c4
Daniel Stenberg [Mon, 13 Mar 2017 14:55:53 +0000 (15:55 +0100)]
RELEASE-NOTES: synced with c25e0761d0fc49c4

7 years agomake: regenerate docs/curl.1 by runinng make in docs
Daniel Stenberg [Mon, 13 Mar 2017 07:01:27 +0000 (08:01 +0100)]
make: regenerate docs/curl.1 by runinng make in docs

... previously, docs/ was only a dist subdir, now also a build subdir.

Reported-by: Dan Fandrich
Bug: https://curl.haxx.se/mail/lib-2017-03/0017.html

7 years agotest1440/1: depend on well-defined file: behaviour
Dan Fandrich [Sun, 12 Mar 2017 22:23:31 +0000 (23:23 +0100)]
test1440/1: depend on well-defined file: behaviour

Depend on the known behaviour of URLs for nonexistent files rather than
the undefined behaviour of URLs for directories (which fails on Windows).
The test isn't about file: URLs at all, so the URL used doesn't really
matter.

7 years agotests: clear the SSL_CERT_FILE variable on --libcurl tests
Dan Fandrich [Sun, 12 Mar 2017 21:33:56 +0000 (22:33 +0100)]
tests: clear the SSL_CERT_FILE variable on --libcurl tests

Otherwise, the contents will end up in the output and fail the
verification.

7 years agotest1287: added verbose logs keyword
Dan Fandrich [Sun, 12 Mar 2017 19:32:46 +0000 (20:32 +0100)]
test1287: added verbose logs keyword

7 years agotool_writeout: fixed a buffer read overrun on --write-out
Dan Fandrich [Sat, 11 Mar 2017 09:59:34 +0000 (10:59 +0100)]
tool_writeout: fixed a buffer read overrun on --write-out

If a % ended the statement, the string's trailing NUL would be skipped
and memory past the end of the buffer would be accessed and potentially
displayed as part of the --write-out output. Added tests 1440 and 1441
to check for this kind of condition.

Reported-by: Brian Carpenter
7 years agourl: add option CURLOPT_SUPPRESS_CONNECT_HEADERS
Desmond O. Chang [Thu, 28 Apr 2016 09:33:25 +0000 (17:33 +0800)]
url: add option CURLOPT_SUPPRESS_CONNECT_HEADERS

- Add new option CURLOPT_SUPPRESS_CONNECT_HEADERS to allow suppressing
  proxy CONNECT response headers from the user callback functions
  CURLOPT_HEADERFUNCTION and CURLOPT_WRITEFUNCTION.

- Add new tool option --suppress-connect-headers to expose
  CURLOPT_SUPPRESS_CONNECT_HEADERS and allow suppressing proxy CONNECT
  response headers from --dump-header and --include.

Assisted-by: Jay Satiro
Assisted-by: CarloCannas@users.noreply.github.com
Closes https://github.com/curl/curl/pull/783

7 years agohttp_proxy: Ignore TE and CL in CONNECT 2xx responses
Jay Satiro [Sat, 11 Mar 2017 23:21:31 +0000 (18:21 -0500)]
http_proxy: Ignore TE and CL in CONNECT 2xx responses

A client MUST ignore any Content-Length or Transfer-Encoding header
fields received in a successful response to CONNECT.
"Successful" described as: 2xx (Successful). RFC 7231 4.3.6

Prior to this change such a case would cause an error.

In some ways this bug appears to be a regression since c50b878. Prior to
that libcurl may have appeared to function correctly in such cases by
acting on those headers instead of causing an error. But that behavior
was also incorrect.

Bug: https://github.com/curl/curl/issues/1317
Reported-by: mkzero@users.noreply.github.com
7 years agombedtls: fix typo in variable name
Thomas Glanzmann [Sat, 11 Mar 2017 21:09:38 +0000 (16:09 -0500)]
mbedtls: fix typo in variable name

Broken a few days ago in 6448f98.

Bug: https://curl.haxx.se/mail/lib-2017-03/0015.html

7 years agotests: fix the authretry tests
Michael Kaufmann [Sat, 11 Mar 2017 19:06:56 +0000 (20:06 +0100)]
tests: fix the authretry tests

Do not call curl_easy_reset() between the requests, because the
auth state must be preserved for these tests.

Follow-up to 0afbcfd

7 years agoproxy: skip SSL initialization for closed connections
Michael Kaufmann [Fri, 10 Mar 2017 22:57:09 +0000 (23:57 +0100)]
proxy: skip SSL initialization for closed connections

This prevents a "Descriptor is not a socket" error for WinSSL.

Reported-by: Antony74@users.noreply.github.com
Reviewed-by: Jay Satiro
Fixes https://github.com/curl/curl/issues/1239

7 years agocurl_easy_reset: Also reset the authentication state
Michael Kaufmann [Sat, 11 Mar 2017 17:22:30 +0000 (18:22 +0100)]
curl_easy_reset: Also reset the authentication state

Follow-up to 5278462
See https://github.com/curl/curl/issues/1095

7 years agoauthneg: clear auth.multi flag at http_done
Isaac Boukris [Thu, 26 Jan 2017 22:42:28 +0000 (00:42 +0200)]
authneg: clear auth.multi flag at http_done

This flag is meant for the current request based on authentication
state, once the request is done we can clear the flag.

Also change auth.multi to auth.multipass for better readability.

Fixes https://github.com/curl/curl/issues/1095
Closes https://github.com/curl/curl/pull/1326

Signed-off-by: Isaac Boukris <iboukris@gmail.com>
Reported-by: Michael Kaufmann
7 years agourl: don't compile detect_proxy if HTTP support is disabled
Dan Fandrich [Sat, 11 Mar 2017 17:01:54 +0000 (18:01 +0100)]
url: don't compile detect_proxy if HTTP support is disabled

7 years agocmdline-opts: fixed a few typos
Dan Fandrich [Sat, 11 Mar 2017 10:44:06 +0000 (11:44 +0100)]
cmdline-opts: fixed a few typos

7 years agoREADME.md: add coverity and travis badges
Daniel Stenberg [Fri, 10 Mar 2017 13:50:29 +0000 (14:50 +0100)]
README.md: add coverity and travis badges

7 years agoISSUE_TEMPLATE: for bugs, ask questions on the mailing list
Daniel Stenberg [Fri, 10 Mar 2017 09:32:01 +0000 (10:32 +0100)]
ISSUE_TEMPLATE: for bugs, ask questions on the mailing list

and try to add the top comment within an HTML comment in the hope
that it might get hidden if the text is kept

7 years agoopenssl: add two /* FALLTHROUGH */ to satisfy coverity
Daniel Stenberg [Fri, 10 Mar 2017 07:46:54 +0000 (08:46 +0100)]
openssl: add two /* FALLTHROUGH */ to satisfy coverity

CID 1402159 and 1402158

7 years agotests: disabled 1903 now
Daniel Stenberg [Thu, 9 Mar 2017 22:55:30 +0000 (23:55 +0100)]
tests: disabled 1903 now

Test 1903 is doing HTTP pipelining, and that is a timing and ordering
sensitive operation and this fails far too often on the Travis CI
leading to people more or less ignoring test failures there. Not good.

The end of pipelning is probably coming sooner rather than later
anyway...

7 years agotls-max.d: added to the makefile
Dan Fandrich [Thu, 9 Mar 2017 22:08:06 +0000 (23:08 +0100)]
tls-max.d: added to the makefile

7 years agobuild: fixed making man page in out-of-tree tarball builds
Dan Fandrich [Thu, 9 Mar 2017 21:45:40 +0000 (22:45 +0100)]
build: fixed making man page in out-of-tree tarball builds

The man page taken from the release package is found in a different
location than if it's built from source. It must be referenced as $< in
the rule to get its correct location in the VPATH.

7 years agomkhelp: simplified the gzip code
Dan Fandrich [Thu, 9 Mar 2017 21:15:54 +0000 (22:15 +0100)]
mkhelp: simplified the gzip code

This eliminates the need for an external gzip program, which wasn't
working with Busybox's gzip, anyway. It now compresses using perl's
IO::Compress::Gzip

7 years agopolarssl: fixed compile errors introduced in 6448f98c
Dan Fandrich [Thu, 9 Mar 2017 08:06:13 +0000 (09:06 +0100)]
polarssl: fixed compile errors introduced in 6448f98c

7 years agobump: next release will be known as 7.54.0
Daniel Stenberg [Wed, 8 Mar 2017 22:43:24 +0000 (23:43 +0100)]
bump: next release will be known as 7.54.0

...due to the newly added CURL_SSLVERSION_MAX_* functionality

7 years agoopenssl: unbreak the build after 6448f98c1857de
Daniel Stenberg [Wed, 8 Mar 2017 22:38:26 +0000 (23:38 +0100)]
openssl: unbreak the build after 6448f98c1857de

Verified with OpenSSL 1.1.0e and OpenSSL master (1.1.1)

7 years agovtls: add options to specify range of enabled TLS versions
Jozef Kralik [Tue, 13 Dec 2016 20:10:00 +0000 (21:10 +0100)]
vtls: add options to specify range of enabled TLS versions

This commit introduces the CURL_SSLVERSION_MAX_* constants as well as
the --tls-max option of the curl tool.

Closes https://github.com/curl/curl/pull/1166

7 years agoRELEASE-NOTES: synced with 6888a670aa01
Daniel Stenberg [Wed, 8 Mar 2017 09:55:06 +0000 (10:55 +0100)]
RELEASE-NOTES: synced with 6888a670aa01

7 years agoMANPAGE: clarify the dash situation in meta data
Daniel Stenberg [Wed, 8 Mar 2017 08:20:36 +0000 (09:20 +0100)]
MANPAGE: clarify the dash situation in meta data

7 years agoinsecure.d: clarify that this is for server connections
Daniel Stenberg [Wed, 8 Mar 2017 08:15:53 +0000 (09:15 +0100)]
insecure.d: clarify that this is for server connections

Assisted-by: Ray Satiro
Bug: https://curl.haxx.se/mail/lib-2017-03/0002.html

7 years agotest1260: added http as a required feature
Dan Fandrich [Wed, 8 Mar 2017 08:06:56 +0000 (09:06 +0100)]
test1260: added http as a required feature

7 years agomaketgz: Run updatemanpages.pl to update man pages
Steve Brokenshire [Fri, 7 Oct 2016 08:36:18 +0000 (09:36 +0100)]
maketgz: Run updatemanpages.pl to update man pages

maketgz now runs scripts/updatemanpages.pl to update the man pages .TH
section to use the current date and curl/libcurl version.

(TODO Section 3.1)

Closes #1058

7 years agogitignore: Ignore man page dist files
Steve Brokenshire [Sun, 26 Feb 2017 21:50:06 +0000 (21:50 +0000)]
gitignore: Ignore man page dist files

Ignore man page dist files generated by scripts/updatemanpages.pl