]> granicus.if.org Git - curl/log
curl
8 years agotool_helpers.c: fix comment typo (#989)
Mark Hamilton [Sat, 3 Sep 2016 21:14:07 +0000 (14:14 -0700)]
tool_helpers.c: fix comment typo (#989)

8 years agolibtest/test.h: fix typo (#988)
Mark Hamilton [Sat, 3 Sep 2016 21:12:22 +0000 (14:12 -0700)]
libtest/test.h: fix typo (#988)

8 years agoCURLMOPT_PIPELINING.3: language
Daniel Stenberg [Thu, 1 Sep 2016 12:09:21 +0000 (14:09 +0200)]
CURLMOPT_PIPELINING.3: language

8 years agoCURLMOPT_PIPELINING.3: extended and clarified
Daniel Stenberg [Thu, 1 Sep 2016 12:07:28 +0000 (14:07 +0200)]
CURLMOPT_PIPELINING.3: extended and clarified

Especially in regards to the multiplexing part.

8 years agocurl_sspi.c: Updated function description comments
Steve Holme [Wed, 31 Aug 2016 10:57:28 +0000 (11:57 +0100)]
curl_sspi.c: Updated function description comments

* Added description to Curl_sspi_free_identity()
* Added parameter and return explanations to Curl_sspi_global_init()
* Added parameter explaination to Curl_sspi_global_cleanup()

8 years agoREADME: Corrected the supported Visual Studio versions
Steve Holme [Wed, 31 Aug 2016 10:34:50 +0000 (11:34 +0100)]
README: Corrected the supported Visual Studio versions

Missed from commit 8356022d17.

8 years agoKNOWN_BUGS: Move the Visual Studio project shortcomings from local README
Steve Holme [Wed, 31 Aug 2016 10:33:22 +0000 (11:33 +0100)]
KNOWN_BUGS: Move the Visual Studio project shortcomings from local README

8 years agoKNOWN_BUGS: Expand 6.4 to include Kerberos V5
Steve Holme [Wed, 31 Aug 2016 10:22:12 +0000 (11:22 +0100)]
KNOWN_BUGS: Expand 6.4 to include Kerberos V5

...and discuss a possible solution.

8 years agoconnect: fix #ifdefs for debug versions of conn/streamclose() macros
Daniel Stenberg [Tue, 30 Aug 2016 21:38:06 +0000 (23:38 +0200)]
connect: fix #ifdefs for debug versions of conn/streamclose() macros

CURLDEBUG is for the memory debugging

DEBUGBUILD is for the extra debug stuff

Pointed-out-by: Steve Holme
8 years agoKNOWN_BUGS: mention some cmake "support gaps"
Daniel Stenberg [Mon, 29 Aug 2016 21:01:49 +0000 (23:01 +0200)]
KNOWN_BUGS: mention some cmake "support gaps"

8 years agodarwinssl: add documentation stating that the --cainfo option is intended for backwar...
Nick Zitzmann [Sun, 28 Aug 2016 21:46:59 +0000 (16:46 -0500)]
darwinssl: add documentation stating that the --cainfo option is intended for backward compatibility only

In other news, I changed one other reference to "Mac OS X" in the documentation (that I previously wrote) to say "macOS" instead.

8 years agohttp2: return CURLE_HTTP2_STREAM for unexpected stream close
Daniel Stenberg [Sun, 28 Aug 2016 21:28:52 +0000 (23:28 +0200)]
http2: return CURLE_HTTP2_STREAM for unexpected stream close

Follow-up to c3e906e9cd0f, seems like a more appropriate error code

Suggested-by: Jay Satiro
8 years agohttp2: handle closed streams when uploading
Tatsuhiro Tsujikawa [Sun, 28 Aug 2016 14:44:03 +0000 (16:44 +0200)]
http2: handle closed streams when uploading

Fixes #986

8 years agohttp2: make sure stream errors don't needlessly close the connection
Daniel Stenberg [Thu, 11 Aug 2016 12:00:23 +0000 (14:00 +0200)]
http2: make sure stream errors don't needlessly close the connection

With HTTP/2 each transfer is made in an indivial logical stream over the
connection, making most previous errors that caused the connection to get
forced-closed now instead just kill the stream and not the connection.

Fixes #941

8 years agoCurl_verify_windows_version: minor edit to avoid compiler warnings
Daniel Stenberg [Sat, 27 Aug 2016 16:08:16 +0000 (18:08 +0200)]
Curl_verify_windows_version: minor edit to avoid compiler warnings

... instead of if() before the switch(), add a default to the switch so
that the compilers don't warn on "warning: enumeration value
'PLATFORM_DONT_CARE' not handled in switch" anymore.

8 years agoRELEASE-NOTES: Added missing fix from commit 15592143f
Steve Holme [Sat, 27 Aug 2016 10:10:17 +0000 (11:10 +0100)]
RELEASE-NOTES: Added missing fix from commit 15592143f

8 years agoschannel: Disable ALPN for Wine since it is causing problems
Jay Satiro [Fri, 26 Aug 2016 03:57:56 +0000 (23:57 -0400)]
schannel: Disable ALPN for Wine since it is causing problems

- Disable ALPN on Wine.

- Don't pass input secbuffer when ALPN is disabled.

When ALPN support was added a change was made to pass an input secbuffer
to initialize the context. When ALPN is enabled the buffer contains the
ALPN information, and when it's disabled the buffer is empty. In either
case this input buffer caused problems with Wine and connections would
not complete.

Bug: https://github.com/curl/curl/issues/983
Reported-by: Christian Fillion
8 years agonss: work around race condition in PK11_FindSlotByName()
Peter Wang [Fri, 26 Aug 2016 06:28:39 +0000 (16:28 +1000)]
nss: work around race condition in PK11_FindSlotByName()

Serialise the call to PK11_FindSlotByName() to avoid spurious errors in
a multi-threaded environment. The underlying cause is a race condition
in nssSlot_IsTokenPresent().

Bug: https://bugzilla.mozilla.org/1297397

Closes #985

8 years agonss: refuse previously loaded certificate from file
Kamil Dudka [Mon, 22 Aug 2016 08:24:35 +0000 (10:24 +0200)]
nss: refuse previously loaded certificate from file

... when we are not asked to use a certificate from file

8 years agoftp_done: remove dead code
Daniel Stenberg [Fri, 26 Aug 2016 07:34:41 +0000 (09:34 +0200)]
ftp_done: remove dead code

8 years agoTLS: random file/egd doesn't have to match for conn reuse
Daniel Stenberg [Fri, 26 Aug 2016 08:01:19 +0000 (10:01 +0200)]
TLS: random file/egd doesn't have to match for conn reuse

8 years agotest161: add comment for the exit code
Daniel Stenberg [Fri, 26 Aug 2016 06:59:48 +0000 (08:59 +0200)]
test161: add comment for the exit code

8 years agotest219: Add http as a required feature
Dan Fandrich [Fri, 26 Aug 2016 06:32:01 +0000 (08:32 +0200)]
test219: Add http as a required feature

8 years agoHTTP: stop parsing headers when switching to unknown protocols
Michael Kaufmann [Tue, 28 Jun 2016 08:57:30 +0000 (10:57 +0200)]
HTTP: stop parsing headers when switching to unknown protocols

- unknown protocols probably won't send more headers (e.g. WebSocket)
- improved comments and moved them to the correct case statements

Closes #899

8 years agoopenssl: make build with 1.1.0 again
Daniel Stenberg [Thu, 25 Aug 2016 10:27:31 +0000 (12:27 +0200)]
openssl: make build with 1.1.0 again

synced with OpenSSL git master commit cc06906707

8 years agoINTERNALS: fix title
Daniel Stenberg [Thu, 25 Aug 2016 09:00:28 +0000 (11:00 +0200)]
INTERNALS: fix title

8 years agoconfigure: detect zlib with our pkg-config macros
Daniel Stenberg [Wed, 24 Aug 2016 11:49:53 +0000 (13:49 +0200)]
configure: detect zlib with our pkg-config macros

... instead of relying on the pkg-config autoconf macros to be present.

Fixes #972 (again...)

8 years agohttp2: Remove incorrect comments
Jay Satiro [Thu, 25 Aug 2016 06:43:19 +0000 (02:43 -0400)]
http2: Remove incorrect comments

.. also remove same from scp

8 years agoftp: fix wrong poll on the secondary socket
Ales Novak [Tue, 23 Aug 2016 12:13:18 +0000 (14:13 +0200)]
ftp: fix wrong poll on the secondary socket

When we're uploading using FTP and the server issues a tiny pause
between opening the connection to the client's secondary socket, the
client's initial poll() times out, which leads to second poll() which
does not wait for POLLIN on the secondary socket. So that poll() also
has to time out, creating a long (200ms) pause.

This patch adds the correct flag to the secondary socket, making the
second poll() correctly wait for the connection there too.

Signed-off-by: Ales Novak <alnovak@suse.cz>
Closes #978

8 years agoRELEASE-NOTES: synced with 95ded2c56
Daniel Stenberg [Mon, 22 Aug 2016 12:48:13 +0000 (14:48 +0200)]
RELEASE-NOTES: synced with 95ded2c56

8 years agoconfigure: make it work without PKG_CHECK_MODULES
Daniel Stenberg [Sun, 21 Aug 2016 21:34:48 +0000 (23:34 +0200)]
configure: make it work without PKG_CHECK_MODULES

With commit c2f9b78 we added a new dependency on pkg-config for
developers which may be unwanted. This change make the configure script
still work as before if pkg-config isn't installed, it'll just use the
old zlib detection logic without pkg-config.

Reported-by: Marc Hörsken
Fixes #972

8 years agoRevert "KNOWN_BUGS: SOCKS proxy not working via IPv6"
Marc Hoersken [Sun, 21 Aug 2016 15:57:29 +0000 (17:57 +0200)]
Revert "KNOWN_BUGS: SOCKS proxy not working via IPv6"

This reverts commit 9cb1059f92286a6eb5d28c477fdd3f26aed1d554.

As discussed in #835 SOCKS5 supports IPv6 proxies and destinations.

8 years agowin: Basic support for Universal Windows Platform apps
Marco Deckel [Sun, 21 Aug 2016 11:44:33 +0000 (13:44 +0200)]
win: Basic support for Universal Windows Platform apps

Closes #820

8 years agosasl: Don't use GSSAPI authentication when domain name not specified
Steve Holme [Sun, 21 Aug 2016 10:56:23 +0000 (11:56 +0100)]
sasl: Don't use GSSAPI authentication when domain name not specified

Only choose the GSSAPI authentication mechanism when the user name
contains a Windows domain name or the user is a valid UPN.

Fixes #718

8 years agovauth: Added check for supported SSPI based authentication mechanisms
Steve Holme [Thu, 24 Mar 2016 19:03:58 +0000 (19:03 +0000)]
vauth: Added check for supported SSPI based authentication mechanisms

Completing commit 00417fd66c and 2708d4259b.

8 years agohttp.c: Remove duplicate (authp->avail & CURLAUTH_DIGEST) check
Steve Holme [Sun, 21 Aug 2016 09:25:45 +0000 (10:25 +0100)]
http.c: Remove duplicate (authp->avail & CURLAUTH_DIGEST) check

From commit 2708d4259b.

8 years agosocks.c: display the hostname returned by the SOCKS5 proxy server
Marc Hoersken [Sat, 20 Aug 2016 19:38:09 +0000 (21:38 +0200)]
socks.c: display the hostname returned by the SOCKS5 proxy server

Instead of displaying the requested hostname the one returned
by the SOCKS5 proxy server is used in case of connection error.
The requested hostname is displayed earlier in the connection sequence.

The upper-value of the port is moved to a temporary variable and
replaced with a 0-byte to make sure the hostname is 0-terminated.

8 years agourldata.h: Corrected comment for httpcode which is also populated by SMTP
Steve Holme [Sat, 20 Aug 2016 19:20:32 +0000 (20:20 +0100)]
urldata.h: Corrected comment for httpcode which is also populated by SMTP

As of 7.25.0 and commit 5430007222.

8 years agosocks.c: use Curl_printable_address in SOCKS5 connection sequence
Marc Hoersken [Sat, 20 Aug 2016 19:14:46 +0000 (21:14 +0200)]
socks.c: use Curl_printable_address in SOCKS5 connection sequence

Replace custom string formatting with Curl_printable_address.
Add additional debug and error output in case of failures.

8 years agosocks.c: align SOCKS4 connection sequence with SOCKS5
Marc Hoersken [Sat, 20 Aug 2016 19:12:34 +0000 (21:12 +0200)]
socks.c: align SOCKS4 connection sequence with SOCKS5

Calling sscanf is not required since the raw IPv4 address is
available and the protocol can be detected using ai_family.

8 years agohttp.c: Corrected indentation change from commit 2708d4259b
Steve Holme [Sat, 20 Aug 2016 18:34:54 +0000 (19:34 +0100)]
http.c: Corrected indentation change from commit 2708d4259b

Made by Visual Studio's auto-correct feature and missed by me in my own
code reviews!

8 years agohttp: Added calls to Curl_auth_is_<mechansism>_supported()
Steve Holme [Sun, 20 Mar 2016 12:18:23 +0000 (12:18 +0000)]
http: Added calls to Curl_auth_is_<mechansism>_supported()

Hooked up the HTTP authentication layer to query the new 'is mechanism
supported' functions when deciding what mechanism to use.

As per commit 00417fd66c existing functionality is maintained for now.

8 years agosocks.c: improve verbose output of SOCKS5 connection sequence
Marc Hoersken [Sat, 20 Aug 2016 18:07:10 +0000 (20:07 +0200)]
socks.c: improve verbose output of SOCKS5 connection sequence

8 years agoconfigure.ac: add missing quotes to PKG_CHECK_MODULES
Marc Hoersken [Sat, 20 Aug 2016 17:49:51 +0000 (19:49 +0200)]
configure.ac: add missing quotes to PKG_CHECK_MODULES

8 years agosasl: Added calls to Curl_auth_is_<mechansism>_supported()
Steve Holme [Sun, 20 Mar 2016 12:02:10 +0000 (12:02 +0000)]
sasl: Added calls to Curl_auth_is_<mechansism>_supported()

Hooked up the SASL authentication layer to query the new 'is mechanism
supported' functions when deciding what mechanism to use.

For now existing functionality is maintained.

8 years agospnego_sspi: fix memory leak in case *outlen is zero (#970)
Miroslav Franc [Fri, 19 Aug 2016 12:46:07 +0000 (14:46 +0200)]
spnego_sspi: fix memory leak in case *outlen is zero (#970)

8 years agoCURLMOPT_MAX_TOTAL_CONNECTIONS.3: mention it can also multiplex
Daniel Stenberg [Fri, 19 Aug 2016 07:40:40 +0000 (09:40 +0200)]
CURLMOPT_MAX_TOTAL_CONNECTIONS.3: mention it can also multiplex

8 years agovauth: Introduced Curl_auth_is_<mechansism>_supported() functions
Steve Holme [Sun, 20 Mar 2016 11:56:07 +0000 (11:56 +0000)]
vauth: Introduced Curl_auth_is_<mechansism>_supported() functions

As Windows SSPI authentication calls fail when a particular mechanism
isn't available, introduced these functions for DIGEST, NTLM, Kerberos 5
and Negotiate to allow both HTTP and SASL authentication the opportunity
to query support for a supported mechanism before selecting it.

For now each function returns TRUE to maintain compatability with the
existing code when called.

8 years agotest1144: verify HEAD with body-only response
Daniel Stenberg [Thu, 18 Aug 2016 09:44:45 +0000 (11:44 +0200)]
test1144: verify HEAD with body-only response

8 years agoRELEASE-PROCEDURE: Added some more future release dates
Steve Holme [Wed, 17 Aug 2016 22:25:04 +0000 (23:25 +0100)]
RELEASE-PROCEDURE: Added some more future release dates

...and removed some old ones

8 years agocurl: allow "pkcs11:" prefix for client certificates
David Woodhouse [Wed, 17 Aug 2016 09:30:21 +0000 (11:30 +0200)]
curl: allow "pkcs11:" prefix for client certificates

RFC7512 provides a standard method to reference certificates in PKCS#11
tokens, by means of a URI starting 'pkcs11:'.

We're working on fixing various applications so that whenever they would
have been able to use certificates from a file, users can simply insert
a PKCS#11 URI instead and expect it to work. This expectation is now a
part of the Fedora packaging guidelines, for example.

This doesn't work with cURL because of the way that the colon is used
to separate the certificate argument from the passphrase. So instead of

   curl -E 'pkcs11:manufacturer=piv_II;id=%01' …

I instead need to invoke cURL with the colon escaped, like this:

   curl -E 'pkcs11\:manufacturer=piv_II;id=%01' …

This is suboptimal because we want *consistency* — the URI should be
usable in place of a filename anywhere, without having strange
differences for different applications.

This patch therefore disables the processing in parse_cert_parameter()
when the string starts with 'pkcs11:'. It means you can't pass a
passphrase with an unescaped PKCS#11 URI, but there's no need to do so
because RFC7512 allows a PIN to be given as a 'pin-value' attribute in
the URI itself.

Also, if users are already using RFC7512 URIs with the colon escaped as
in the above example — even providing a passphrase for cURL to handling
instead of using a pin-value attribute, that will continue to work
because their string will start 'pkcs11\:' and won't match the check.

What *does* break with this patch is the extremely unlikely case that a
user has a file which is in the local directory and literally named
just "pkcs11", and they have a passphrase on it. If that ever happened,
the user would need to refer to it as './pkcs11:<passphrase>' instead.

8 years agonss: make the global variables static
Daniel Stenberg [Wed, 17 Aug 2016 08:50:06 +0000 (10:50 +0200)]
nss: make the global variables static

8 years agoopenssl: use regular malloc instead of OPENSSL_malloc
Daniel Stenberg [Fri, 12 Aug 2016 08:06:07 +0000 (10:06 +0200)]
openssl: use regular malloc instead of OPENSSL_malloc

This allows for better memmory debugging and torture tests.

8 years agoproxy: fix tests as follow-up to 93b0d907d5
Daniel Stenberg [Tue, 16 Aug 2016 08:14:48 +0000 (10:14 +0200)]
proxy: fix tests as follow-up to 93b0d907d5

This fixes tests that were added after 113f04e664b as the tests would
fail otherwise.

We bring back "Proxy-Connection: Keep-Alive" now unconditionally to fix
regressions with old and stupid proxies, but we could possibly switch to
using it only for CONNECT or only for NTLM in a future if we want to
gradually reduce it.

Fixes #954

Reported-by: János Fekete
8 years agoRevert "Proxy-Connection: stop sending this header by default"
Daniel Stenberg [Tue, 16 Aug 2016 06:36:04 +0000 (08:36 +0200)]
Revert "Proxy-Connection: stop sending this header by default"

This reverts commit 113f04e664b16b944e64498a73a4dab990fe9a68.

8 years agoCURLOPT_PROXY.3: unsupported schemes cause errors now
Daniel Stenberg [Mon, 15 Aug 2016 12:49:26 +0000 (14:49 +0200)]
CURLOPT_PROXY.3: unsupported schemes cause errors now

Follow-up to a96319ebb9 (document the new behavior)

8 years agotests/README: mention nghttpx for HTTP/2 tests
Daniel Stenberg [Mon, 15 Aug 2016 09:36:17 +0000 (11:36 +0200)]
tests/README: mention nghttpx for HTTP/2 tests

8 years agoREADME.md: add our CII Best Practices badge
Daniel Stenberg [Mon, 15 Aug 2016 09:15:01 +0000 (11:15 +0200)]
README.md: add our CII Best Practices badge

8 years agoproxy: polished the error message for unsupported schemes
Daniel Stenberg [Mon, 15 Aug 2016 09:11:46 +0000 (11:11 +0200)]
proxy: polished the error message for unsupported schemes

Follow up to a96319ebb93

8 years agotest219: verify unsupported scheme for proxies get rejected
Daniel Stenberg [Mon, 15 Aug 2016 09:09:59 +0000 (11:09 +0200)]
test219: verify unsupported scheme for proxies get rejected

8 years agoproxy: reject attempts to use unsupported proxy schemes
Daniel Stenberg [Mon, 15 Aug 2016 08:46:27 +0000 (10:46 +0200)]
proxy: reject attempts to use unsupported proxy schemes

I discovered some people have been using "https://example.com" style
strings as proxy and it "works" (curl doesn't complain) because curl
ignores unknown schemes and then assumes plain HTTP instead.

I think this misleads users into believing curl uses HTTPS to proxies
when it doesn't. Now curl rejects proxy strings using unsupported
schemes instead of just ignoring and defaulting to HTTP.

8 years agoRELEASE-NOTES: synced with b7ee5316c2fd5b
Daniel Stenberg [Mon, 15 Aug 2016 06:47:21 +0000 (08:47 +0200)]
RELEASE-NOTES: synced with b7ee5316c2fd5b

8 years agosocks.c: Correctly calculate position of port in response packet
Marc Hoersken [Sun, 14 Aug 2016 15:07:11 +0000 (17:07 +0200)]
socks.c: Correctly calculate position of port in response packet

Third commit to fix issue #944 regarding SOCKS5 error handling.

Reported-by: David Kalnischkies
8 years agosocks.c: Do not modify and invalidate calculated response length
Marc Hoersken [Sun, 14 Aug 2016 15:05:32 +0000 (17:05 +0200)]
socks.c: Do not modify and invalidate calculated response length

Second commit to fix issue #944 regarding SOCKS5 error handling.

Reported-by: David Kalnischkies
8 years agosocks.c: Move error output after reading the whole response packet
Marc Hoersken [Sun, 14 Aug 2016 15:01:13 +0000 (17:01 +0200)]
socks.c: Move error output after reading the whole response packet

First commit to fix issue #944 regarding SOCKS5 error handling.

Reported-by: David Kalnischkies
8 years agoMANUAL: Remove invalid link to LDAP documentation (#962)
Ronnie Mose [Sat, 13 Aug 2016 12:38:09 +0000 (14:38 +0200)]
MANUAL: Remove invalid link to LDAP documentation (#962)

The server developer.netscape.com does not resolve into any
ip address and can be removed.

8 years agoopenssl: accept subjectAltName iPAddress if no dNSName match
Jay Satiro [Fri, 12 Aug 2016 08:10:29 +0000 (04:10 -0400)]
openssl: accept subjectAltName iPAddress if no dNSName match

Undo change introduced in d4643d6 which caused iPAddress match to be
ignored if dNSName was present but did not match.

Also, if iPAddress is present but does not match, and dNSName is not
present, fail as no-match. Prior to this change in such a case the CN
would be checked for a match.

Bug: https://github.com/curl/curl/issues/959
Reported-by: wmsch@users.noreply.github.com
8 years agoconfigure.ac: add zlib search with pkg-config
Dambaev Alexander [Thu, 11 Aug 2016 15:49:48 +0000 (23:49 +0800)]
configure.ac: add zlib search with pkg-config

Closes #956

8 years agortsp: ignore whitespace in session id
Daniel Stenberg [Thu, 11 Aug 2016 09:37:00 +0000 (11:37 +0200)]
rtsp: ignore whitespace in session id

Follow-up to e577c43bb to fix test case 569 brekage: stop the parser at
whitespace as well.

Help-by: Erik Janssen
8 years agoHTTP: retry failed HEAD requests too
Daniel Stenberg [Thu, 11 Aug 2016 06:33:36 +0000 (08:33 +0200)]
HTTP: retry failed HEAD requests too

Mark's new document about HTTP Retries
(https://mnot.github.io/I-D/httpbis-retry/) made me check our code and I
spotted that we don't retry failed HEAD requests which seems totally
inconsistent and I can't see any reason for that separate treatment.

So, no separate treatment for HEAD starting now. A HTTP request sent
over a reused connection that gets cut off before a single byte is
received will be retried on a fresh connection.

Made-aware-by: Mark Nottingham
8 years agomk-ca-bundle.1: document -m, added in 1.26
Daniel Stenberg [Thu, 11 Aug 2016 06:21:33 +0000 (08:21 +0200)]
mk-ca-bundle.1: document -m, added in 1.26

8 years agoRELEASE-NOTES: synced with e577c43bb5
Daniel Stenberg [Wed, 10 Aug 2016 07:12:34 +0000 (09:12 +0200)]
RELEASE-NOTES: synced with e577c43bb5

8 years agortsp: accept any RTSP session id
Erik Janssen [Wed, 10 Aug 2016 06:58:10 +0000 (08:58 +0200)]
rtsp: accept any RTSP session id

Makes libcurl work in communication with gstreamer-based RTSP
servers. The original code validates the session id to be in accordance
with the RFC. I think it is better not to do that:

- For curl the actual content is a don't care.

- The clarity of the RFC is debatable, is $ allowed or only as \$, that
  is imho not clear

- Gstreamer seems to url-encode the session id but % is not allowed by
the RFC

- less code

With this patch curl will correctly handle real-life lines like:
Session: biTN4Kc.8%2B1w-AF.; timeout=60

Bug: https://curl.haxx.se/mail/lib-2016-08/0076.html

8 years agosymbols-in-versions: add CURL_STRICTER
Daniel Stenberg [Tue, 9 Aug 2016 19:34:47 +0000 (21:34 +0200)]
symbols-in-versions: add CURL_STRICTER

Added in 5fce88aa8c12564

8 years agowinbuild: Allow changing C compiler via environment variable CC (#952)
Simon Warta [Tue, 9 Aug 2016 19:27:36 +0000 (21:27 +0200)]
winbuild: Allow changing C compiler via environment variable CC (#952)

This makes it possible to use specific compilers or a cache.

Sample use for clcache:
set CC=clcache.bat
nmake /f Makefile.vc DEBUG=no MODE=static VC=14 GEN_PDB=no

8 years agoLICENSE-MIXING.md: switched to markdown
Daniel Stenberg [Tue, 9 Aug 2016 13:04:50 +0000 (15:04 +0200)]
LICENSE-MIXING.md: switched to markdown

8 years agodocs-make: have markdown files use .md
Daniel Stenberg [Tue, 9 Aug 2016 12:47:20 +0000 (14:47 +0200)]
docs-make: have markdown files use .md

8 years agocurl.h: make CURL_NO_OLDIES define CURL_STRICTER
Daniel Stenberg [Tue, 9 Aug 2016 12:46:51 +0000 (14:46 +0200)]
curl.h: make CURL_NO_OLDIES define CURL_STRICTER

8 years agoHISTORY.md: use markdown extension
Daniel Stenberg [Tue, 9 Aug 2016 10:05:43 +0000 (12:05 +0200)]
HISTORY.md: use markdown extension

8 years agoSSLCERTS.md: renamed to markdown extension
Daniel Stenberg [Tue, 9 Aug 2016 10:03:46 +0000 (12:03 +0200)]
SSLCERTS.md: renamed to markdown extension

8 years agoINTERNALS.md: use markdown extension for markdown content
Daniel Stenberg [Tue, 9 Aug 2016 10:01:47 +0000 (12:01 +0200)]
INTERNALS.md: use markdown extension for markdown content

8 years agoCONTRIBUTE.md: markdown extension
Daniel Stenberg [Tue, 9 Aug 2016 09:40:39 +0000 (11:40 +0200)]
CONTRIBUTE.md: markdown extension

8 years agoCONTRIBUTE: changed to markdown
Daniel Stenberg [Tue, 9 Aug 2016 09:39:58 +0000 (11:39 +0200)]
CONTRIBUTE: changed to markdown

8 years agoCONTRIBUTE: refreshed
Daniel Stenberg [Tue, 9 Aug 2016 08:53:42 +0000 (10:53 +0200)]
CONTRIBUTE: refreshed

8 years agoTODO: added an SSH section and two SFTP things to do
Daniel Stenberg [Tue, 9 Aug 2016 08:05:26 +0000 (10:05 +0200)]
TODO: added an SSH section and two SFTP things to do

8 years agoTODO: remove the 1.22 duplicated item
Daniel Stenberg [Tue, 9 Aug 2016 07:55:16 +0000 (09:55 +0200)]
TODO: remove the 1.22 duplicated item

8 years agoTODO: move "CURLOPT_MAIL_CLIENT" to SMTP section
Daniel Stenberg [Tue, 9 Aug 2016 07:53:06 +0000 (09:53 +0200)]
TODO: move "CURLOPT_MAIL_CLIENT" to SMTP section

8 years agoTODO: API for URL parsing/splitting
Daniel Stenberg [Tue, 9 Aug 2016 07:51:43 +0000 (09:51 +0200)]
TODO: API for URL parsing/splitting

8 years agoTODO: move QUIC to the HTTP section
Daniel Stenberg [Tue, 9 Aug 2016 07:43:52 +0000 (09:43 +0200)]
TODO: move QUIC to the HTTP section

8 years agowinbuild: Free name $(CC) in Makefile (#950)
Simon Warta [Tue, 9 Aug 2016 06:29:59 +0000 (08:29 +0200)]
winbuild: Free name $(CC) in Makefile (#950)

In the old line number 290, CC and CURL_CC had the same value. After
that, /DCURL_STATICLIB was added to CC but not CURL_CC (intended?).

This gets rid of the CC variable entirely. It is a first step to make it
possible to manualyl set a CC variable in order to be able to change the
compiler.

8 years agoTODO: Use huge HTTP/2 windows
Daniel Stenberg [Mon, 8 Aug 2016 21:46:11 +0000 (23:46 +0200)]
TODO: Use huge HTTP/2 windows

8 years agowinbuild: Avoid setting redundant CFLAGS to compile commands (#949)
Simon Warta [Mon, 8 Aug 2016 19:26:57 +0000 (21:26 +0200)]
winbuild: Avoid setting redundant CFLAGS to compile commands (#949)

$(CURL_CC) is always used with $(CURL_CFLAGS) appended, so before this,
all arguments in CURL_CFLAGS have been added twice.

8 years agocmake: Enable win32 threaded resolver by default
Jay Satiro [Mon, 8 Aug 2016 06:37:29 +0000 (02:37 -0400)]
cmake: Enable win32 threaded resolver by default

- Turn on USE_THREADS_WIN32 in Windows if ares isn't on

This change is similar to what we already do in the autotools build.

8 years agocmake: Enable win32 large file support by default
Jay Satiro [Mon, 8 Aug 2016 04:25:03 +0000 (00:25 -0400)]
cmake: Enable win32 large file support by default

All compilers used by cmake in Windows should support large files.

- Add test SIZEOF_OFF_T
- Remove outdated test SIZEOF_CURL_OFF_T
- Turn on USE_WIN32_LARGE_FILES in Windows
- Check for 'Largefile' during the features output

8 years agoTODO: added several ideas, removed SPDY
Daniel Stenberg [Sun, 7 Aug 2016 21:52:06 +0000 (23:52 +0200)]
TODO: added several ideas, removed SPDY

8 years agohttp2: always wait for readable socket
Daniel Stenberg [Thu, 4 Aug 2016 22:42:52 +0000 (00:42 +0200)]
http2: always wait for readable socket

Since the server can at any time send a HTTP/2 frame to us, we need to
wait for the socket to be readable during all transfers so that we can
act on incoming frames even when uploading etc.

Reminded-by: Tatsuhiro Tsujikawa
8 years agoRELEASE-NOTES: synced with 7b4bf37a44791
Daniel Stenberg [Thu, 4 Aug 2016 22:37:03 +0000 (00:37 +0200)]
RELEASE-NOTES: synced with 7b4bf37a44791

8 years agombedtls: set debug threshold to 4 (verbose) when MBEDTLS_DEBUG is defined
Thomas Glanzmann [Wed, 3 Aug 2016 06:20:16 +0000 (08:20 +0200)]
mbedtls: set debug threshold to 4 (verbose) when MBEDTLS_DEBUG is defined

In order to make MBEDTLS_DEBUG work, the debug threshold must be unequal
to 0.  This patch also adds a comment how mbedtls must be compiled in
order to make debugging work, and explains the possible debug levels.

8 years agoCURLOPT_TCP_NODELAY: now enabled by default
Daniel Stenberg [Thu, 30 Jun 2016 12:56:02 +0000 (14:56 +0200)]
CURLOPT_TCP_NODELAY: now enabled by default

After a few wasted hours hunting down the reason for slowness during a
TLS handshake that turned out to be because of TCP_NODELAY not being
set, I think we have enough motivation to toggle the default for this
option. We now enable TCP_NODELAY by default and allow applications to
switch it off.

This also makes --tcp-nodelay unnecessary, but --no-tcp-nodelay can be
used to disable it.

Thanks-to: Tim Rühsen
Bug: https://curl.haxx.se/mail/lib-2016-06/0143.html

8 years agoTFTP: Fix upload problem with piped input
Serj Kalichev [Tue, 2 Aug 2016 22:29:09 +0000 (00:29 +0200)]
TFTP: Fix upload problem with piped input

When input stream for curl is stdin and input stream is not a file but
generated by a script then curl can truncate data transfer to arbitrary
size since a partial packet is treated as end of transfer by TFTP.

Fixes #857