]> granicus.if.org Git - curl/log
curl
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.

8 years agodocs/curl.1: generate from the cmdline-opts script
Daniel Stenberg [Wed, 16 Nov 2016 14:43:16 +0000 (15:43 +0100)]
docs/curl.1: generate from the cmdline-opts script

8 years agovtls: source indentation fix
Daniel Stenberg [Sun, 22 Jan 2017 11:00:28 +0000 (12:00 +0100)]
vtls: source indentation fix

8 years agocontri*.sh: cut off parentheses from names too
Daniel Stenberg [Fri, 20 Jan 2017 16:10:08 +0000 (17:10 +0100)]
contri*.sh: cut off parentheses from names too

8 years agoRELEASE-NOTES: synced with 01ab7c30bba6f
Daniel Stenberg [Fri, 20 Jan 2017 15:56:05 +0000 (16:56 +0100)]
RELEASE-NOTES: synced with 01ab7c30bba6f

8 years agovtls: fix PolarSSL non-blocking handling
Daniel Stenberg [Fri, 20 Jan 2017 09:46:05 +0000 (10:46 +0100)]
vtls: fix PolarSSL non-blocking handling

A regression brought in cb4e2be

Reported-by: Michael Kaufmann
Bug: https://github.com/curl/curl/issues/1174#issuecomment-274018791

8 years agovtls: fix mbedtls multi non blocking handshake.
Antoine Aubert [Fri, 20 Jan 2017 07:10:28 +0000 (08:10 +0100)]
vtls: fix mbedtls multi non blocking handshake.

When using multi, mbedtls handshake is in non blocking mode.  vtls must
set wait for read/write flags for the socket.

Closes #1223

8 years agoCURLOPT_BUFFERSIZE: support enlarging receive buffer
Richy Kim [Tue, 20 Dec 2016 10:48:15 +0000 (05:48 -0500)]
CURLOPT_BUFFERSIZE: support enlarging receive buffer

Replace use of fixed macro BUFSIZE to define the size of the receive
buffer.  Reappropriate CURLOPT_BUFFERSIZE to include enlarging receive
buffer size.  Upon setting, resize buffer if larger than the current
default size up to a MAX_BUFSIZE (512KB). This can benefit protocols
like SFTP.

Closes #1222

8 years agosws: use SOCKERRNO, not errno
Daniel Stenberg [Thu, 19 Jan 2017 22:03:59 +0000 (23:03 +0100)]
sws: use SOCKERRNO, not errno

Reported-by: Gisle Vanem
8 years agoKNOWN_BUGS: HTTP/2 server push enabled when no pushes can be accepted
Michael Kaufmann [Thu, 19 Jan 2017 19:56:25 +0000 (20:56 +0100)]
KNOWN_BUGS: HTTP/2 server push enabled when no pushes can be accepted

This has been implemented with commit 9ad034e.

8 years ago*.rc: escape non-ASCII/non-UTF-8 character for clarity
Viktor Szakats [Thu, 19 Jan 2017 11:35:48 +0000 (11:35 +0000)]
*.rc: escape non-ASCII/non-UTF-8 character for clarity

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

8 years agodocs: non-blocking SSL handshake is now supported with NSS
Kamil Dudka [Thu, 19 Jan 2017 11:12:26 +0000 (12:12 +0100)]
docs: non-blocking SSL handshake is now supported with NSS

Implemented since curl-7_36_0-130-g8868a22

Reported-by: Fahim Chandurwala
8 years agoCURLOPT_CONNECT_TO: Fix compile warnings
Michael Kaufmann [Wed, 18 Jan 2017 12:01:37 +0000 (13:01 +0100)]
CURLOPT_CONNECT_TO: Fix compile warnings

Fix compile warnings that appeared only when curl has been configured
with '--disable-verbose'.

8 years agousercertinmem.c: improve the short description
Daniel Stenberg [Wed, 18 Jan 2017 07:09:09 +0000 (08:09 +0100)]
usercertinmem.c: improve the short description

8 years agoparseurl: move back buffer to function scope
Daniel Stenberg [Tue, 17 Jan 2017 23:01:03 +0000 (00:01 +0100)]
parseurl: move back buffer to function scope

Regression since 1d4202ad, which moved the buffer into a more narrow
scope, but the data in that buffer was used outside of that more narrow
scope.

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

8 years agoopenssl: Fix random generation
Jay Satiro [Tue, 17 Jan 2017 07:53:29 +0000 (02:53 -0500)]
openssl: Fix random generation

- Fix logic error in Curl_ossl_random.

Broken a few days ago in 807698d.

8 years agoTODO: share OpenSSL contexts
Daniel Stenberg [Tue, 17 Jan 2017 06:58:27 +0000 (07:58 +0100)]
TODO: share OpenSSL contexts

By supporting this, subsequent connects would load a lot less data from
disk.

Closes #1110

8 years agobump: next release will be 7.53.0
Daniel Stenberg [Mon, 16 Jan 2017 07:34:15 +0000 (08:34 +0100)]
bump: next release will be 7.53.0

8 years agonss: use the correct lock in nss_find_slot_by_name()
Kamil Dudka [Sun, 15 Jan 2017 12:10:43 +0000 (13:10 +0100)]
nss: use the correct lock in nss_find_slot_by_name()

8 years agohttp2: disable server push if not requested
Alessandro Ghedini [Sat, 10 Dec 2016 13:54:59 +0000 (13:54 +0000)]
http2: disable server push if not requested

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

8 years agodocs: improved language in README.md HISTORY.md CONTRIBUTE.md
railsnewbie257 [Sat, 14 Jan 2017 12:01:06 +0000 (06:01 -0600)]
docs: improved language in README.md HISTORY.md CONTRIBUTE.md

Closes #1211

8 years agohttp: print correct HTTP string in verbose output when using HTTP/2
Alessandro Ghedini [Fri, 13 Jan 2017 22:28:41 +0000 (22:28 +0000)]
http: print correct HTTP string in verbose output when using HTTP/2

Before:
```
 % src/curl https://sigsegv.ninja/ -v --http2
...
> GET / HTTP/1.1
> Host: sigsegv.ninja
> User-Agent: curl/7.52.2-DEV
> Accept: */*
>
...
```

After:
```
 % src/curl https://sigsegv.ninja/ -v --http2
...
> GET / HTTP/2
> Host: sigsegv.ninja
> User-Agent: curl/7.52.2-DEV
> Accept: */*
>
```

8 years agoTODO: send only part of --data
Daniel Stenberg [Sat, 14 Jan 2017 11:49:12 +0000 (12:49 +0100)]
TODO: send only part of --data

Closes #1200

8 years agoTODO: implemened "--fail-fast to exit on first transfer fail"
Daniel Stenberg [Sat, 14 Jan 2017 11:42:53 +0000 (12:42 +0100)]
TODO: implemened "--fail-fast to exit on first transfer fail"

Even though it is called --fail-early

8 years agoTODO: Chunked transfer multipart formpost
Daniel Stenberg [Sat, 14 Jan 2017 11:41:29 +0000 (12:41 +0100)]
TODO: Chunked transfer multipart formpost

Closes #1139

8 years agoTODO: Improve formpost API, not just add an easy argument
Daniel Stenberg [Sat, 14 Jan 2017 11:34:53 +0000 (12:34 +0100)]
TODO: Improve formpost API, not just add an easy argument

8 years agoaddrinfo: fix compiler warning on offsetof() use
Daniel Stenberg [Fri, 13 Jan 2017 22:58:22 +0000 (23:58 +0100)]
addrinfo: fix compiler warning on offsetof() use

curl_addrinfo.c:519:20: error: conversion to ‘curl_socklen_t {aka
unsigned int}’ from ‘long unsigned int’ may alter its value
[-Werror=conversion]

Follow-up to 1d786faee1046f

8 years agoTHANKS-filter: Jiri Malak
Daniel Stenberg [Fri, 13 Jan 2017 16:29:01 +0000 (17:29 +0100)]
THANKS-filter: Jiri Malak

8 years agoRELEASE-NOTES: synced with a7c73ae309c
Daniel Stenberg [Fri, 13 Jan 2017 16:28:49 +0000 (17:28 +0100)]
RELEASE-NOTES: synced with a7c73ae309c

8 years agounix_socket: add support for abstract unix domain socket
Isaac Boukris [Sun, 8 Jan 2017 22:51:08 +0000 (00:51 +0200)]
unix_socket: add support for abstract unix domain socket

In addition to unix domain sockets, Linux also supports an
abstract namespace which is independent of the filesystem.

In order to support it, add new CURLOPT_ABSTRACT_UNIX_SOCKET
option which uses the same storage as CURLOPT_UNIX_SOCKET_PATH
internally, along with a flag to specify abstract socket.

On non-supporting platforms, the abstract address will be
interpreted as an empty string and fail gracefully.

Also add new --abstract-unix-socket tool parameter.

Signed-off-by: Isaac Boukris <iboukris@gmail.com>
Reported-by: Chungtsun Li (typeless)
Reviewed-by: Daniel Stenberg
Reviewed-by: Peter Wu
Closes #1197
Fixes #1061

8 years agowrite-out.d: 'time_total' is not always shown with ms precision
Daniel Stenberg [Fri, 13 Jan 2017 15:23:16 +0000 (16:23 +0100)]
write-out.d: 'time_total' is not always shown with ms precision

We have higher resolution since 7.52.0

8 years agonext.d: --trace and --trace-ascii are also global
Daniel Stenberg [Fri, 13 Jan 2017 14:34:01 +0000 (15:34 +0100)]
next.d: --trace and --trace-ascii are also global

8 years agocurl: reset the easy handle at --next
Isaac Boukris [Fri, 13 Jan 2017 13:07:52 +0000 (14:07 +0100)]
curl: reset the easy handle at --next

So that only "global" options (verbose mostly) survive into the next
transfer, and the others have to be set again unless default is fine.

8 years agodocs: Add note about libcurl copying strings to CURLOPT_* manpages
Frank Gevaerts [Wed, 21 Dec 2016 13:48:35 +0000 (14:48 +0100)]
docs: Add note about libcurl copying strings to CURLOPT_* manpages

Closes #1169

8 years agoCURLOPT_PREQUOTE.3: takes a struct curl_slist*, not a char*
Frank Gevaerts [Wed, 21 Dec 2016 13:28:02 +0000 (14:28 +0100)]
CURLOPT_PREQUOTE.3: takes a struct curl_slist*, not a char*

8 years agoIDN: Use TR46 non-transitional
Daniel Stenberg [Fri, 13 Jan 2017 13:49:11 +0000 (14:49 +0100)]
IDN: Use TR46 non-transitional

Assisted-by: Tim Rühsen
8 years agoIDN: revert use of the transitional option
Daniel Stenberg [Fri, 13 Jan 2017 13:31:40 +0000 (14:31 +0100)]
IDN: revert use of the transitional option

It made the german ß get converted to ss, IDNA2003 style, and we can't
have that for the .de TLD - a primary reason for our switch to IDNA2008.

Test 165 verifies.

8 years agoIDN: Fix compile time detection of linidn2 TR46
Tim Rühsen [Fri, 13 Jan 2017 10:50:01 +0000 (11:50 +0100)]
IDN: Fix compile time detection of linidn2 TR46

Follow-up to f30cbcac1

Closes #1207

8 years agourl: --noproxy option overrides NO_PROXY environment variable
ERAMOTO Masaya [Mon, 19 Dec 2016 07:27:24 +0000 (16:27 +0900)]
url: --noproxy option overrides NO_PROXY environment variable

Under condition using http_proxy env var, noproxy list was the
combination of --noproxy option and NO_PROXY env var previously. Since
this commit, --noproxy option overrides NO_PROXY environment variable
even if use http_proxy env var.

Closes #1140

8 years agourl: Refactor detect_proxy()
ERAMOTO Masaya [Fri, 16 Dec 2016 12:26:18 +0000 (21:26 +0900)]
url: Refactor detect_proxy()

If defined CURL_DISABLE_HTTP, detect_proxy() returned NULL. If not
defined CURL_DISABLE_HTTP, detect_proxy() checked noproxy list.

Thus refactor to set proxy to NULL instead of calling detect_proxy() if
define CURL_DISABLE_HTTP, and refactor to call detect_proxy() if not
define CURL_DISABLE_HTTP and the host is not in the noproxy list.

8 years agourl: Fix NO_PROXY env var to work properly with --proxy option.
ERAMOTO Masaya [Fri, 25 Nov 2016 04:26:51 +0000 (13:26 +0900)]
url: Fix NO_PROXY env var to work properly with --proxy option.

The combination of --noproxy option and http_proxy env var works well
both for proxied hosts and non-proxied hosts.

However, when combining NO_PROXY env var with --proxy option,
non-proxied hosts are not reachable while proxied host is OK.

This patch allows us to access non-proxied hosts even if using NO_PROXY
env var with --proxy option.

8 years agoIDN: Use TR46 'transitional' for toASCII translations
Tim Rühsen [Fri, 13 Jan 2017 08:36:33 +0000 (09:36 +0100)]
IDN: Use TR46 'transitional' for toASCII translations

References: http://unicode.org/faq/idn.html
            http://unicode.org/reports/tr46

Closes #1206

8 years agodocs: FAQ MAIL-ETIQUETTE language fixes
railsnewbie257 [Thu, 12 Jan 2017 05:48:22 +0000 (23:48 -0600)]
docs: FAQ MAIL-ETIQUETTE language fixes

Closes #1194

8 years agognutls: check for alpn and ocsp in configure
Marcus Hoffmann [Wed, 11 Jan 2017 13:42:41 +0000 (14:42 +0100)]
gnutls: check for alpn and ocsp in configure

Check for presence of gnutls_alpn_* and gnutls_ocsp_* functions during
configure instead of relying on the version number.  GnuTLS has options
to turn these features off and we ca just work with with such builds
like we work with older versions.

Signed-off-by: Marcus Hoffmann <m.hoffmann@cartelsol.com>
Closes #1204

8 years agourl: Fix parsing for when 'file' is the default protocol
Jay Satiro [Sun, 13 Nov 2016 20:27:57 +0000 (15:27 -0500)]
url: Fix parsing for when 'file' is the default protocol

Follow-up to 3463408.

Prior to 3463408 file:// hostnames were silently stripped.

Prior to this commit it did not work when a schemeless url was used with
file as the default protocol.

Ref: https://curl.haxx.se/mail/lib-2016-11/0081.html
Closes https://github.com/curl/curl/pull/1124

Also fix for drive letters:

- Support --proto-default file c:/foo/bar.txt

- Support file://c:/foo/bar.txt

- Fail when a file:// drive letter is detected and not MSDOS/Windows.

Bug: https://github.com/curl/curl/issues/1187
Reported-by: Anatol Belski
Assisted-by: Anatol Belski
8 years agorand: make it work without TLS backing
Daniel Stenberg [Thu, 12 Jan 2017 16:41:26 +0000 (17:41 +0100)]
rand: make it work without TLS backing

Regression introduced in commit f682156a4fc6c4

Reported-by: John Kohl
Bug: https://curl.haxx.se/mail/lib-2017-01/0055.html

8 years agoSTARTTLS: Don't print response character in denied messages
Jay Satiro [Thu, 12 Jan 2017 07:22:41 +0000 (02:22 -0500)]
STARTTLS: Don't print response character in denied messages

Both IMAP and POP3 response characters are used internally, but when
appended to the STARTTLS denial message likely could confuse the user.

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

8 years agosmtp: Fix STARTTLS denied error message
Jay Satiro [Thu, 12 Jan 2017 07:06:03 +0000 (02:06 -0500)]
smtp: Fix STARTTLS denied error message

- Format the numeric denial code as an integer instead of a character.

8 years agohttp2_send: avoid unsigned integer wrap around
Daniel Stenberg [Wed, 11 Jan 2017 11:15:37 +0000 (12:15 +0100)]
http2_send: avoid unsigned integer wrap around

... when checking for a too large request.

8 years agocmake: Fix passing _WINSOCKAPI_ macro to compiler
Jiri Malak [Mon, 9 Jan 2017 20:39:25 +0000 (21:39 +0100)]
cmake: Fix passing _WINSOCKAPI_ macro to compiler

Define _WINSOCKAPI_ blank rather than to 1 in order to match the value
used by Microsoft's winsock header files.

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

8 years agosws: retry send() on EWOULDBLOCK
Daniel Stenberg [Sun, 8 Jan 2017 16:50:07 +0000 (17:50 +0100)]
sws: retry send() on EWOULDBLOCK

Fixes spurious test 1060 and 1061 failures on OpenBSD, Solaris and more.

Bug: https://curl.haxx.se/mail/lib-2017-01/0009.html
Reported-by: Christian Weisgerber
8 years agoRELEASE-NOTES: synced with a41e8592d6b3e58
Daniel Stenberg [Mon, 9 Jan 2017 13:54:48 +0000 (14:54 +0100)]
RELEASE-NOTES: synced with a41e8592d6b3e58

8 years agoexamples: make the C++ examples follow our code style too
Daniel Stenberg [Sun, 8 Jan 2017 15:38:54 +0000 (16:38 +0100)]
examples: make the C++ examples follow our code style too

At least mostly, not counting // comments.

8 years agoasiohiper: improved socket handling
Aulddays [Sat, 7 Jan 2017 14:32:55 +0000 (22:32 +0800)]
asiohiper: improved socket handling

libcurl requires CURLMOPT_SOCKETFUNCTION to KEEP watching socket events
and notify back. Modify event_cb() to continue watching events when
fired.

Fixes #1191
Closes #1192
Fixed-by: Mingliang Zhu
8 years agolib506: fix build for Open Watcom
Jiří Malák [Sun, 8 Jan 2017 12:39:06 +0000 (13:39 +0100)]
lib506: fix build for Open Watcom

Rename symbol lock to locks to not clash with OW CRTL function name.

Closes #1196

8 years agoROADMAP: 2017 cleanup
Daniel Stenberg [Sat, 7 Jan 2017 22:45:48 +0000 (23:45 +0100)]
ROADMAP: 2017 cleanup

Removed items already fixed, clarified a few others.

8 years agoCOPYING: update the generic copyright year range
Daniel Stenberg [Sat, 7 Jan 2017 19:25:43 +0000 (20:25 +0100)]
COPYING: update the generic copyright year range

8 years agodocs/silent: mention --show-error in --silent description
Daniel Stenberg [Sat, 7 Jan 2017 19:23:31 +0000 (20:23 +0100)]
docs/silent: mention --show-error in --silent description

Reported in #1190
Reported-by: Dan Jacobson
8 years agodocs/page-header: mention how to disable the progress meter
Daniel Stenberg [Sat, 7 Jan 2017 19:21:57 +0000 (20:21 +0100)]
docs/page-header: mention how to disable the progress meter

curl.1 is regenerated

Fixes #1190