]> granicus.if.org Git - curl/log
curl
7 years agoconfigure: fix for --enable-pthreads
Jay Satiro [Wed, 1 Mar 2017 08:11:36 +0000 (03:11 -0500)]
configure: fix for --enable-pthreads

Better handle options conflicts that can occur if --enable-pthreads.

Bug: https://github.com/curl/curl/pull/1295
Reported-by: Marc-Antoine Perennou
7 years agodarwinssl: Warn that disabling host verify also disables SNI
JDepooter [Thu, 2 Feb 2017 21:40:16 +0000 (13:40 -0800)]
darwinssl: Warn that disabling host verify also disables SNI

In DarwinSSL the SSLSetPeerDomainName function is used to enable both
sending SNI and verifying the host. When host verification is disabled
the function cannot be called, therefore SNI is disabled as well.

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

7 years agowarnless: suppress compiler warning
Marcel Raad [Tue, 28 Feb 2017 08:08:00 +0000 (09:08 +0100)]
warnless: suppress compiler warning

If size_t is 32 bits, MSVC warns:
warning C4310: cast truncates constant value
The warning is harmless as CURL_MASK_SCOFFT gets
truncated to the maximum value of size_t.

7 years agotests: enable HTTP/2 tests to run with non-default port numbers
Dan Fandrich [Mon, 27 Feb 2017 21:32:07 +0000 (22:32 +0100)]
tests: enable HTTP/2 tests to run with non-default port numbers

7 years agodigest_sspi: fix compilation warning
Marcel Raad [Mon, 27 Feb 2017 12:05:22 +0000 (13:05 +0100)]
digest_sspi: fix compilation warning

MSVC complains:
warning C4701: potentially uninitialized local variable 'output_token_len' used

7 years agocyassl: get library version string at runtime
Jay Satiro [Sun, 26 Feb 2017 23:49:39 +0000 (18:49 -0500)]
cyassl: get library version string at runtime

wolfSSL >= 3.6.0 supports getting its library version string at runtime.

7 years agotest1139: allow for the possibility that the man page is not rebuilt
Dan Fandrich [Sun, 26 Feb 2017 20:30:31 +0000 (21:30 +0100)]
test1139: allow for the possibility that the man page is not rebuilt

This is likely to be the case when building from a tar ball release
package which includes a prebuilt man page. In that case, test the
packaged man page instead. This only makes a difference when building
out-of-tree (in-tree, the location in both cases is identical).

7 years agourl: fix unix-socket support for proxy-disabled builds
Isaac Boukris [Fri, 24 Feb 2017 09:28:08 +0000 (11:28 +0200)]
url: fix unix-socket support for proxy-disabled builds

Prior to this change if curl was built with Unix Socket support
(--enable-unix-sockets) and without Proxy support (--disable-proxy) then
unix socket options would erroneously be ignored.

Regression introduced in:
0b8d682f81ee9acb763dd4c9ad805fe08d1227c0

Bug: https://github.com/curl/curl/issues/1274
Reported-by: mccormickt12@users.noreply.github.com
Closes https://github.com/curl/curl/pull/1289

7 years agogopher: fixed detection of an error condition from Curl_urldecode
Dan Fandrich [Sat, 25 Feb 2017 23:10:30 +0000 (00:10 +0100)]
gopher: fixed detection of an error condition from Curl_urldecode

7 years agoftp: fixed a NULL pointer dereference on OOM
Dan Fandrich [Sat, 25 Feb 2017 21:55:46 +0000 (22:55 +0100)]
ftp: fixed a NULL pointer dereference on OOM

7 years agodocs: de-duplicate file lists in the Makefiles
Peter Wu [Sat, 25 Feb 2017 14:08:41 +0000 (15:08 +0100)]
docs: de-duplicate file lists in the Makefiles

Make use of macro substitution of suffix patterns to remove duplication
of manual names. This approach is portable according to
http://pubs.opengroup.org/onlinepubs/009695399/utilities/make.html

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

7 years agoftp: removed an erroneous free in an OOM path
Dan Fandrich [Sat, 25 Feb 2017 20:47:27 +0000 (21:47 +0100)]
ftp: removed an erroneous free in an OOM path

7 years agoproxy: fixed a memory leak on OOM
Dan Fandrich [Sat, 25 Feb 2017 20:36:39 +0000 (21:36 +0100)]
proxy: fixed a memory leak on OOM

7 years agotests: use consistent environment variables for setting charset
Dan Fandrich [Thu, 23 Feb 2017 20:47:17 +0000 (21:47 +0100)]
tests: use consistent environment variables for setting charset

The character set in POSIX is set by the locale defined by (in
decreasing order of precedence) the LC_ALL, LC_CTYPE and LANG
environment variables (CHARSET was used by libidn but not libidn2).
LC_ALL is cleared to ensure that LC_CTYPE takes effect, but LC_ALL is
not used to set the locale to ensure that other parts of the locale
aren't overridden.  Since there doesn't seem to be a cross-platform way
of specifying a UTF-8 locale, and not all systems may support UTF-8, a
<precheck> is used to skip the test if UTF-8 can't be verified to be
available.  Test 1035 was also converted to UTF-8 for consistency, as
the actual character set used there is irrelevant to the test.

This patch uses a different UTF-8 locale than the last attempt, namely
en_US.UTF-8. This one has been verified on 7 different Linux and BSD
distributions and is more complete and usable than the locale UTF-8 (on
at least some systems).

7 years agotest557: explicitly use the C locale so the numeric output is as expected
Dan Fandrich [Sat, 25 Feb 2017 11:03:46 +0000 (12:03 +0100)]
test557: explicitly use the C locale so the numeric output is as expected

7 years agocmake: Replace invalid UTF-8 byte sequence
Simon Warta [Mon, 20 Feb 2017 22:07:58 +0000 (23:07 +0100)]
cmake: Replace invalid UTF-8 byte sequence

- Change the encoding of the regex temp placeholder token to UTF-8.

Prior to this change the file contained special chars in a different
encoding than ASCII or UTF-8 making text editors and Python complain
when reading the file.

Closes https://github.com/curl/curl/pull/1271
Closes https://github.com/curl/curl/pull/1275

7 years agobump: work on the next release
Daniel Stenberg [Fri, 24 Feb 2017 22:48:05 +0000 (23:48 +0100)]
bump: work on the next release

7 years agorelease: 7.53.1 curl-7_53_1
Daniel Stenberg [Thu, 23 Feb 2017 22:16:07 +0000 (23:16 +0100)]
release: 7.53.1

7 years agoRevert "tests: use consistent environment variables for setting charset"
Daniel Stenberg [Fri, 24 Feb 2017 07:41:36 +0000 (08:41 +0100)]
Revert "tests: use consistent environment variables for setting charset"

This reverts commit ecd1d020abdae3c3ce3643ddab3106501e62e7c0.

That commit caused test failures on my Debian Linux machine for all
changed test cases. We need to reconsider how that should get done.

7 years agotests: use consistent environment variables for setting charset
Dan Fandrich [Thu, 23 Feb 2017 20:47:17 +0000 (21:47 +0100)]
tests: use consistent environment variables for setting charset

Character set in POSIX is set by the locale defined (in decreasing order
of precedence) by the LC_ALL, LC_CTYPE and LANG environment variables (I
believe CHARSET is only historic). LC_ALL is cleared to ensure that
LC_CTYPE takes effect, but LC_ALL is not used to set the locale to
ensure that other parts of the locale aren't overriden, if set.  Since
there doesn't seem to be a cross-platform way of specifying a UTF-8
locale, and not all systems may support UTF-8, a <precheck> is used
(where relevant) to skip the test if UTF-8 isn't in use.  Test 1035 was
also converted to UTF-8 for consistency, as the actual character set
used there is irrelevant to the test.

7 years agourl: Default the CA proxy bundle location to CURL_CA_BUNDLE
Jay Satiro [Thu, 23 Feb 2017 22:06:11 +0000 (17:06 -0500)]
url: Default the CA proxy bundle location to CURL_CA_BUNDLE

If the compile-time CURL_CA_BUNDLE location is defined use it as the
default value for the proxy CA bundle location, which is the same as
what we already do for the regular CA bundle location.

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

7 years agorand: added missing #ifdef HAVE_FCNTL_H around fcntl.h header
Sergii Pylypenko [Thu, 23 Feb 2017 20:07:04 +0000 (22:07 +0200)]
rand: added missing #ifdef HAVE_FCNTL_H around fcntl.h header

Closes #1285

7 years agoTODO: "OPTIONS *"
Daniel Stenberg [Thu, 23 Feb 2017 15:58:21 +0000 (16:58 +0100)]
TODO: "OPTIONS *"

Closes #1280

7 years agoRELEASE-NOTES: synced with 443e5b03a7d441
Daniel Stenberg [Thu, 23 Feb 2017 10:21:44 +0000 (11:21 +0100)]
RELEASE-NOTES: synced with 443e5b03a7d441

7 years agoTHANKS-filter: shachaf
Daniel Stenberg [Thu, 23 Feb 2017 10:21:19 +0000 (11:21 +0100)]
THANKS-filter: shachaf

7 years agotests: Set CHARSET & LANG to UTF-8 in 1035, 2046 and 2047
İsmail Dönmez [Thu, 23 Feb 2017 09:24:42 +0000 (10:24 +0100)]
tests: Set CHARSET & LANG to UTF-8 in 1035, 2046 and 2047

Closes #1283
Fixes #1277

7 years agobump: 7.53.1 coming up
Daniel Stenberg [Thu, 23 Feb 2017 09:47:10 +0000 (10:47 +0100)]
bump: 7.53.1 coming up

synced with df665f4df0f7a352

7 years agoformdata: check for EOF when reading from stdin
Daniel Stenberg [Thu, 23 Feb 2017 09:41:20 +0000 (10:41 +0100)]
formdata: check for EOF when reading from stdin

Reported-by: shachaf@users.noreply.github.com
Fixes #1281

7 years agodocs: gitignore curl.1
Jay Satiro [Wed, 22 Feb 2017 19:08:29 +0000 (14:08 -0500)]
docs: gitignore curl.1

curl.1 is generated by the cmdline-opts script since 4c49b83.

7 years agoTODO: HTTP Digest using SHA-256
Daniel Stenberg [Wed, 22 Feb 2017 13:16:45 +0000 (14:16 +0100)]
TODO: HTTP Digest using SHA-256

7 years agoTODO: brotli is deployed widely now
Daniel Stenberg [Wed, 22 Feb 2017 09:59:47 +0000 (10:59 +0100)]
TODO: brotli is deployed widely now

7 years agourldata: include curl_sspi.h when Windows SSPI is enabled
Viktor Szakats [Wed, 22 Feb 2017 04:01:37 +0000 (23:01 -0500)]
urldata: include curl_sspi.h when Windows SSPI is enabled

f77dabe broke builds in Windows using Windows SSPI but not Windows SSL.

Bug: https://github.com/curl/curl/issues/1276
Reported-by: jveazey@users.noreply.github.com
7 years agourl: Improve CURLOPT_PROXY_CAPATH error handling
Jay Satiro [Wed, 22 Feb 2017 03:21:17 +0000 (22:21 -0500)]
url: Improve CURLOPT_PROXY_CAPATH error handling

- Change CURLOPT_PROXY_CAPATH to return CURLE_NOT_BUILT_IN if the option
  is not supported, which is the same as what we already do for
  CURLOPT_CAPATH.

- Change the curl tool to handle CURLOPT_PROXY_CAPATH error
  CURLE_NOT_BUILT_IN as a warning instead of as an error, which is the
  same as what we already do for CURLOPT_CAPATH.

- Fix CAPATH docs to show that CURLE_NOT_BUILT_IN is returned when the
  respective CAPATH option is not supported by the SSL library.

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

7 years agocyassl: fix typo
Jay Satiro [Tue, 21 Feb 2017 22:00:17 +0000 (17:00 -0500)]
cyassl: fix typo

7 years agorelease: 7.53.0 curl-7_53_0
Daniel Stenberg [Tue, 21 Feb 2017 08:18:18 +0000 (09:18 +0100)]
release: 7.53.0

7 years agocookie: fix declaration of 'dup' shadows a global declaration
Daniel Stenberg [Tue, 21 Feb 2017 16:44:02 +0000 (17:44 +0100)]
cookie: fix declaration of 'dup' shadows a global declaration

7 years agoTLS: make SSL_VERIFYSTATUS work again
Daniel Stenberg [Sun, 22 Jan 2017 17:11:55 +0000 (18:11 +0100)]
TLS: make SSL_VERIFYSTATUS work again

The CURLOPT_SSL_VERIFYSTATUS option was not properly handled by libcurl
and thus even if the status couldn't be verified, the connection would
be allowed and the user would not be told about the failed verification.

Regression since cb4e2be7c6d42ca

CVE-2017-2629
Bug: https://curl.haxx.se/docs/adv_20170222.html

Reported-by: Marcus Hoffmann
7 years agodigest_sspi: Handle 'stale=TRUE' directive in HTTP digest
Jay Satiro [Tue, 26 Jul 2016 05:46:23 +0000 (01:46 -0400)]
digest_sspi: Handle 'stale=TRUE' directive in HTTP digest

- If the server has provided another challenge use it as the replacement
  input token if stale=TRUE. Otherwise previous credentials have failed
  so return CURLE_LOGIN_DENIED.

Prior to this change the stale directive was ignored and if another
challenge was received it would cause error CURLE_BAD_CONTENT_ENCODING.

Ref: https://tools.ietf.org/html/rfc2617#page-10

Bug: https://github.com/curl/curl/issues/928
Reported-by: tarek112@users.noreply.github.com
7 years agosmb: use getpid replacement for windows UWP builds
Daniel Stenberg [Mon, 20 Feb 2017 09:27:51 +0000 (10:27 +0100)]
smb: use getpid replacement for windows UWP builds

Source: https://github.com/Microsoft/vcpkg/blob/7676b8780db1e1e591c4fc7eba4f96f73c428cb4/ports/curl/0002_fix_uwp.patch

7 years agoTODO: CURLOPT_RESOLVE for any port number
Daniel Stenberg [Mon, 20 Feb 2017 08:14:05 +0000 (09:14 +0100)]
TODO: CURLOPT_RESOLVE for any port number

Closes #1264

7 years agoRELEASE-NOTES: synced with af30f1152d43dcdb
Daniel Stenberg [Mon, 20 Feb 2017 07:11:17 +0000 (08:11 +0100)]
RELEASE-NOTES: synced with af30f1152d43dcdb

7 years agosftp: improved checks for create dir failures
Jean Gressmann [Sun, 19 Feb 2017 10:02:15 +0000 (11:02 +0100)]
sftp: improved checks for create dir failures

Since negative values are errors and not only -1. This makes SFTP upload
with --create-dirs work (again).

Closes #1269

7 years agodigest_sspi: Fix nonce-count generation in HTTP digest
Max Khon [Mon, 6 Feb 2017 17:40:51 +0000 (23:40 +0600)]
digest_sspi: Fix nonce-count generation in HTTP digest

- on the first invocation: keep security context returned by
  InitializeSecurityContext()

- on subsequent invocations: use MakeSignature() instead of
  InitializeSecurityContext() to generate HTTP digest response

Bug: https://github.com/curl/curl/issues/870
Reported-by: Andreas Roth
Closes https://github.com/curl/curl/pull/1251

7 years agoexamples/multi-uv: checksrc compliance
Jay Satiro [Mon, 20 Feb 2017 05:52:16 +0000 (00:52 -0500)]
examples/multi-uv: checksrc compliance

7 years agostring formatting: fix 4 printf-style format strings
Michael Kaufmann [Sun, 19 Feb 2017 13:10:54 +0000 (14:10 +0100)]
string formatting: fix 4 printf-style format strings

7 years agotests: removed the obsolete name parameter
Dan Fandrich [Sat, 18 Feb 2017 21:18:17 +0000 (22:18 +0100)]
tests: removed the obsolete name parameter

7 years agospeed caps: update the timeouts if the speed is too low/high
Michael Kaufmann [Sun, 29 Jan 2017 16:14:05 +0000 (17:14 +0100)]
speed caps: update the timeouts if the speed is too low/high

Follow-up to 4b86113

Fixes https://github.com/curl/curl/issues/793
Fixes https://github.com/curl/curl/issues/942

7 years agodocs: fix timeout handling in multi-uv example
Michael Kaufmann [Sun, 29 Jan 2017 16:06:49 +0000 (17:06 +0100)]
docs: fix timeout handling in multi-uv example

7 years agoproxy: fix hostname resolution and IDN conversion
Michael Kaufmann [Sat, 18 Feb 2017 12:56:56 +0000 (13:56 +0100)]
proxy: fix hostname resolution and IDN conversion

Properly resolve, convert and log the proxy host names.
Support the "--connect-to" feature for SOCKS proxies and for passive FTP
data transfers.

Follow-up to cb4e2be

Reported-by: Jay Satiro
Fixes https://github.com/curl/curl/issues/1248

7 years agohttp: fix missing 'Content-Length: 0' while negotiating auth
Isaac Boukris [Fri, 3 Feb 2017 12:30:26 +0000 (14:30 +0200)]
http: fix missing 'Content-Length: 0' while negotiating auth

- While negotiating auth during PUT/POST if a user-specified
  Content-Length header is set send 'Content-Length: 0'.

This is what we do already in HTTPREQ_POST_FORM and what we did in the
HTTPREQ_POST case (regression since afd288b).

Prior to this change no Content-Length header would be sent in such a
case.

Bug: https://curl.haxx.se/mail/lib-2017-02/0006.html
Reported-by: Dominik Hölzl
Closes https://github.com/curl/curl/pull/1242

7 years agowinbuild: add note on auto-detection of MACHINE in Makefile.vc
Simon Warta [Thu, 16 Feb 2017 16:27:03 +0000 (17:27 +0100)]
winbuild: add note on auto-detection of MACHINE in Makefile.vc

Closes #1265

7 years agoRELEASE-PROCEDURE: update the upcoming release calendar
Daniel Stenberg [Thu, 16 Feb 2017 06:44:39 +0000 (07:44 +0100)]
RELEASE-PROCEDURE: update the upcoming release calendar

7 years agoTODO: consider file name from the redirected URL with -O ?
Daniel Stenberg [Wed, 15 Feb 2017 14:12:32 +0000 (15:12 +0100)]
TODO: consider file name from the redirected URL with -O ?

It isn't easily solved, but with some thinking someone could probably
come up with a working approach?

Closes #1241

7 years agotool_urlglob: Allow a glob range with the same start and stop
Jay Satiro [Wed, 15 Feb 2017 07:31:09 +0000 (02:31 -0500)]
tool_urlglob: Allow a glob range with the same start and stop

For example allow ranges like [1-1] and [a-a] etc.

Regression since 5ca96cb.

Bug: https://github.com/curl/curl/issues/1238
Reported-by: R. Dennis Steed
7 years agoaxtls: adapt to API changes
Daniel Stenberg [Fri, 20 Jan 2017 00:00:51 +0000 (01:00 +0100)]
axtls: adapt to API changes

Builds with axTLS 2.1.2. This then also breaks compatibility with axTLS
< 2.1.0 (the older API)

... and fix the session_id mixup brought in 04b4ee549

Fixes #1220

7 years agoRELEASE-NOTES: synced with 690935390c29c
Daniel Stenberg [Tue, 14 Feb 2017 22:19:04 +0000 (23:19 +0100)]
RELEASE-NOTES: synced with 690935390c29c

7 years agocurl: fix typo in time condition warning message
Nick Draffen [Tue, 14 Feb 2017 21:20:51 +0000 (22:20 +0100)]
curl: fix typo in time condition warning message

The warning message had a typo. The argument long form is --time-cond
not --timecond

Closes #1263

7 years agosmb: code indent
Daniel Stenberg [Tue, 14 Feb 2017 14:10:31 +0000 (15:10 +0100)]
smb: code indent

7 years agoconfigure: Allow disabling pthreads, fall back on Win32 threads
Jay Satiro [Sun, 12 Feb 2017 19:50:56 +0000 (14:50 -0500)]
configure: Allow disabling pthreads, fall back on Win32 threads

When the threaded resolver option is specified for configure the default
thread library is pthreads. This change makes it possible to
--disable-pthreads and then configure can fall back on Win32 threads for
native Windows builds.

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

7 years agohttp2: fix memory-leak when denying push streams
Daniel Stenberg [Mon, 13 Feb 2017 09:35:18 +0000 (10:35 +0100)]
http2: fix memory-leak when denying push streams

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

7 years agotool_operate: Show HTTPS-Proxy options on CURLE_SSL_CACERT
Jay Satiro [Sat, 11 Feb 2017 21:35:47 +0000 (16:35 -0500)]
tool_operate: Show HTTPS-Proxy options on CURLE_SSL_CACERT

When CURLE_SSL_CACERT occurs the tool shows a lengthy error message to
the user explaining possible solutions such as --cacert and --insecure.

This change appends to that message similar options --proxy-cacert and
--proxy-insecure when there's a specified HTTPS proxy.

Closes https://github.com/curl/curl/issues/1258

7 years agocmdline-opts/page-footer: ftp.sunet.se is no longer an FTP mirror
Daniel Stenberg [Fri, 10 Feb 2017 15:21:18 +0000 (16:21 +0100)]
cmdline-opts/page-footer: ftp.sunet.se is no longer an FTP mirror

7 years agoURL: only accept ";options" in SMTP/POP3/IMAP URL schemes
Daniel Stenberg [Fri, 10 Feb 2017 09:50:19 +0000 (10:50 +0100)]
URL: only accept ";options" in SMTP/POP3/IMAP URL schemes

Fixes #1252

7 years agocmdline-opts/socks*: Mention --preproxy in --socks* opts
Jay Satiro [Thu, 9 Feb 2017 23:26:16 +0000 (18:26 -0500)]
cmdline-opts/socks*: Mention --preproxy in --socks* opts

- Document in --socks* opts they're still mutually exclusive of --proxy.

Partial revert of 423a93c; I had misinterpreted the SOCKS proxy +
HTTP/HTTPS proxy combination.

- Document in --socks* opts that --preproxy can be used to specify a
  SOCKS proxy at the same time --proxy is used with an HTTP/HTTPS proxy.

7 years agoCURLOPT_SSL_VERIFYPEER.3: also the https proxy version
Daniel Stenberg [Thu, 9 Feb 2017 22:22:57 +0000 (23:22 +0100)]
CURLOPT_SSL_VERIFYPEER.3: also the https proxy version

7 years agonss: make FTPS work with --proxytunnel
Kamil Dudka [Thu, 9 Feb 2017 15:21:52 +0000 (16:21 +0100)]
nss: make FTPS work with --proxytunnel

If the NSS code was in the middle of a non-blocking handshake and it
was asked to finish the handshake in blocking mode, it unexpectedly
continued in the non-blocking mode, which caused a FTPS connection
over CONNECT to fail with "(81) Socket not ready for send/recv".

Bug: https://bugzilla.redhat.com/1420327

7 years agoexamples/multithread.c: link to our multi-thread docs
Daniel Stenberg [Thu, 9 Feb 2017 15:16:21 +0000 (16:16 +0100)]
examples/multithread.c: link to our multi-thread docs

... instead of the OpenSSL mutex page.

7 years agohttp_proxy: avoid freeing static memory
Daniel Stenberg [Thu, 9 Feb 2017 09:13:28 +0000 (10:13 +0100)]
http_proxy: avoid freeing static memory

Follow up to 7fe81ec298e0: make sure 'host' is either NULL or malloced.

7 years agohttp_proxy: Fix tiny memory leak upon edge case connecting to proxy
Cameron MacMinn [Wed, 8 Feb 2017 18:14:36 +0000 (11:14 -0700)]
http_proxy: Fix tiny memory leak upon edge case connecting to proxy

Fixes #1255

8 years agopolarssl, mbedtls: Fix detection of pending data
Michael Kaufmann [Wed, 8 Feb 2017 21:09:31 +0000 (22:09 +0100)]
polarssl, mbedtls: Fix detection of pending data

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

8 years agotest1139: Added the --manual keyword since the manual is required
Dan Fandrich [Tue, 7 Feb 2017 17:49:01 +0000 (18:49 +0100)]
test1139: Added the --manual keyword since the manual is required

8 years agoRELEASE-NOTES: synced with 102454459dd688c
Daniel Stenberg [Tue, 7 Feb 2017 09:44:04 +0000 (10:44 +0100)]
RELEASE-NOTES: synced with 102454459dd688c

8 years agoTHANKS-filter: polish some recent contributors
Daniel Stenberg [Tue, 7 Feb 2017 09:43:25 +0000 (10:43 +0100)]
THANKS-filter: polish some recent contributors

8 years agohttp2: reset push header counter fixes crash
Daniel Stenberg [Tue, 7 Feb 2017 08:17:55 +0000 (09:17 +0100)]
http2: reset push header counter fixes crash

When removing an easy handler from a multi before it completed its
transfer, and it had pushed streams, it would segfault due to the pushed
counted not being cleared.

Fixed-by: zelinchen@users.noreply.github.com
Fixes #1249

8 years agotransfer: only retry nobody-requests for HTTP
Markus Westerlind [Fri, 3 Feb 2017 14:58:41 +0000 (15:58 +0100)]
transfer: only retry nobody-requests for HTTP

Using sftp to delete a file with CURLOPT_NOBODY set with a reused
connection would fail as curl expected to get some data. Thus it would
retry the command again which fails as the file has already been
deleted.

Fixes #1243

8 years agotelnet: Fix typos
Daniel Gustafsson [Tue, 7 Feb 2017 07:35:49 +0000 (02:35 -0500)]
telnet: Fix typos

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

8 years agotest552: Fix typos
Daniel Gustafsson [Sun, 5 Feb 2017 09:35:54 +0000 (10:35 +0100)]
test552: Fix typos

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

8 years agodarwinssl: Avoid parsing certificates when not in verbose mode
Daniel Gustafsson [Sun, 5 Feb 2017 09:26:07 +0000 (10:26 +0100)]
darwinssl: Avoid parsing certificates when not in verbose mode

The information extracted from the server certificates in step 3 is only
used when in verbose mode, and there is no error handling or validation
performed as that has already been done. Only run the certificate
information extraction when in verbose mode and libcurl was built with
verbose strings.

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

8 years agoschannel: Remove incorrect SNI disabled message
JDepooter [Thu, 2 Feb 2017 21:40:16 +0000 (13:40 -0800)]
schannel: Remove incorrect SNI disabled message

- Remove the SNI disabled when host verification disabled message
  since that is incorrect.

- Show a message for legacy versions of Windows <= XP that connections
  may fail since those versions of WinSSL lack SNI, algorithms, etc.

Bug: https://github.com/curl/curl/pull/1240

8 years agoCHANGES: spell fix, use correct path to script
Daniel Stenberg [Tue, 7 Feb 2017 07:22:37 +0000 (08:22 +0100)]
CHANGES: spell fix, use correct path to script

8 years agoCHANGES.0: removed
Daniel Stenberg [Tue, 7 Feb 2017 07:20:10 +0000 (08:20 +0100)]
CHANGES.0: removed

This is the previously manually edited changelog, not touched since Aug
2015. Still present in git for those who wants it.

8 years agocmdline-opts: Fixed build and test in out of source tree builds
Dan Fandrich [Mon, 6 Feb 2017 21:47:41 +0000 (22:47 +0100)]
cmdline-opts: Fixed build and test in out of source tree builds

8 years agouse *.sourceforge.io and misc URL updates
Viktor Szakats [Mon, 6 Feb 2017 19:21:05 +0000 (19:21 +0000)]
use *.sourceforge.io and misc URL updates

Ref: https://sourceforge.net/blog/introducing-https-for-project-websites/
Closes: https://github.com/curl/curl/pull/1247
8 years agodocs: Add more HTTPS proxy documentation
Jay Satiro [Mon, 6 Feb 2017 08:13:42 +0000 (03:13 -0500)]
docs: Add more HTTPS proxy documentation

- Document HTTPS proxy type.

- Document --write-out %{proxy_ssl_verify_result}.

- Document SOCKS proxy + HTTP/HTTPS proxy combination.

HTTPS proxy support was added in 7.52.0 for OpenSSL, GnuTLS and NSS.

Ref: https://github.com/curl/curl/commit/cb4e2be

8 years agoOS400: Fix symbols
Jay Satiro [Wed, 1 Feb 2017 23:28:29 +0000 (18:28 -0500)]
OS400: Fix symbols

- s/CURLOPT_SOCKS_PROXY/CURLOPT_PRE_PROXY
  Follow-up to 7907a2b and 845522c.

- Fix incorrect id for CURLOPT_PROXY_PINNEDPUBLICKEY.

- Add id for CURLOPT_ABSTRACT_UNIX_SOCKET.

Bug: https://github.com/curl/curl/issues/1237
Reported-by: jonrumsey@users.noreply.github.com
8 years agocmake: Support curl --xattr when built with cmake
Sean Burford [Tue, 19 Jul 2016 00:27:20 +0000 (10:27 +1000)]
cmake: Support curl --xattr when built with cmake

- Test for and set HAVE_FSETXATTR when support for extended file
  attributes is present.

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

8 years agoopenssl: Don't use certificate after transferring ownership
Adam Langley [Wed, 1 Feb 2017 00:05:33 +0000 (16:05 -0800)]
openssl: Don't use certificate after transferring ownership

SSL_CTX_add_extra_chain_cert takes ownership of the given certificate
while, despite the similar name, SSL_CTX_add_client_CA does not. Thus
it's best to call SSL_CTX_add_client_CA before
SSL_CTX_add_extra_chain_cert, while the code still has ownership of the
argument.

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

8 years agombedtls: implement CTR-DRBG and HAVEGE random generators
Antoine Aubert [Fri, 27 Jan 2017 07:39:28 +0000 (08:39 +0100)]
mbedtls: implement CTR-DRBG and HAVEGE random generators

closes #1227

8 years agodocs: we no longer ship HTML versions of man pages
Daniel Stenberg [Sun, 29 Jan 2017 10:10:34 +0000 (11:10 +0100)]
docs: we no longer ship HTML versions of man pages

... refer to the web site for the web versions.

8 years agodocs: proofread README.netware README.win32
railsnewbie257 [Sat, 28 Jan 2017 14:29:28 +0000 (08:29 -0600)]
docs: proofread README.netware README.win32

Closes #1231

8 years agoRELEASE-NOTES; synced with ab08d82648
Daniel Stenberg [Sat, 28 Jan 2017 22:58:13 +0000 (23:58 +0100)]
RELEASE-NOTES; synced with ab08d82648

8 years agombedtls: disable TLS session tickets
Michael Kaufmann [Sat, 28 Jan 2017 19:14:54 +0000 (20:14 +0100)]
mbedtls: disable TLS session tickets

SSL session reuse with TLS session tickets is not supported yet.
Use SSL session IDs instead.

See https://github.com/curl/curl/issues/1109

8 years agognutls: disable TLS session tickets
Michael Kaufmann [Sat, 28 Jan 2017 19:06:31 +0000 (20:06 +0100)]
gnutls: disable TLS session tickets

SSL session reuse with TLS session tickets is not supported yet.
Use SSL session IDs instead.

Fixes https://github.com/curl/curl/issues/1109

8 years agopolarssl: fix hangs
Michael Kaufmann [Sat, 28 Jan 2017 18:45:52 +0000 (19:45 +0100)]
polarssl: fix hangs

This bugfix is similar to commit c111178bd4.

8 years agocookies: do not assume a valid domain has a dot
Daniel Stenberg [Fri, 27 Jan 2017 11:59:12 +0000 (12:59 +0100)]
cookies: do not assume a valid domain has a dot

This repairs cookies for localhost.

Non-PSL builds will now only accept "localhost" without dots, while PSL
builds okeys everything not listed as PSL.

Added test 1258 to verify.

This was a regression brought in a76825a5efa6b4

8 years agoTODO: remove "Support TLS v1.3"
Daniel Stenberg [Fri, 27 Jan 2017 09:00:33 +0000 (10:00 +0100)]
TODO: remove "Support TLS v1.3"

Support is trickling in already.

8 years agoINTERNALS.md: language improvements
railsnewbie257 [Tue, 24 Jan 2017 15:14:59 +0000 (09:14 -0600)]
INTERNALS.md: language improvements

Closes #1226

8 years agotelnet: fix windows compiler warnings
Daniel Stenberg [Tue, 24 Jan 2017 07:45:25 +0000 (08:45 +0100)]
telnet: fix windows compiler warnings

Thumbs-up-by: Jay Satiro
Closes #1225

8 years agoVC: remove the makefile.vc6 build infra
Daniel Stenberg [Mon, 9 Jan 2017 23:29:14 +0000 (00:29 +0100)]
VC: remove the makefile.vc6 build infra

The winbuild/ build files is now the single MSVC makefile build choice.

Closes #1215

8 years agocmdline-opts/gen.pl: Open input files in CRLF mode
Jay Satiro [Mon, 16 Jan 2017 23:26:08 +0000 (18:26 -0500)]
cmdline-opts/gen.pl: Open input files in CRLF mode

On Windows it's possible to have input files with CRLF line endings and
a perl that defaults to LF line endings (eg msysgit). Currently that
results in generator output of mixed line endings of CR, LF and CRLF.

This change fixes that issue in the most succinct way by opening the
files in :crlf text mode even when the perl being used does not default
to that mode. (On operating systems that don't have a separate text mode
it's essentially a no-op.) The output continues to be in the perl's
native line ending.