]> git.ipfire.org Git - thirdparty/curl.git/log
thirdparty/curl.git
10 years agocookies: first n/v pair in Set-Cookie: is the cookie, then parameters
Daniel Stenberg [Thu, 10 Mar 2016 10:20:56 +0000 (11:20 +0100)] 
cookies: first n/v pair in Set-Cookie: is the cookie, then parameters

RFC 6265 section 4.1.1 spells out that the first name/value pair in the
header is the actual cookie name and content, while the following are
the parameters.

libcurl previously had a more liberal approach which causes significant
problems when introducing new cookie parameters, like the suggested new
cookie priority draft.

The previous logic read all n/v pairs from left-to-right and the first
name used that wassn't a known parameter name would be used as the
cookie name, thus accepting "Set-Cookie: Max-Age=2; person=daniel" to be
a cookie named 'person' while an RFC 6265 compliant parser should
consider that to be a cookie named 'Max-Age' with an (unknown) parameter
'person'.

Fixes #709

10 years agokrb5: improved type handling to avoid clang compiler warnings
Daniel Stenberg [Thu, 10 Mar 2016 09:40:10 +0000 (10:40 +0100)] 
krb5: improved type handling to avoid clang compiler warnings

10 years agourl.c: fix clang warning: no newline at end of file
Daniel Stenberg [Thu, 10 Mar 2016 08:36:49 +0000 (09:36 +0100)] 
url.c: fix clang warning: no newline at end of file

10 years agocurl_multi_wait: never return -1 in 'numfds'
Daniel Stenberg [Wed, 9 Mar 2016 09:57:42 +0000 (10:57 +0100)] 
curl_multi_wait: never return -1 in 'numfds'

Such a return value isn't documented but could still happen, and the
curl tool code checks for it. It would happen when the underlying
Curl_poll() function returns an error. Starting now we mask that error
as a user of curl_multi_wait() would have no way to handle it anyway.

Reported-by: Jay Satiro
Closes #707

10 years agoHTTP2.md: add CURL_HTTP_VERSION_2TLS and updated alt-svc link
Daniel Stenberg [Wed, 9 Mar 2016 10:09:39 +0000 (11:09 +0100)] 
HTTP2.md: add CURL_HTTP_VERSION_2TLS and updated alt-svc link

10 years agocurl_multi_wait.3: add example
Daniel Stenberg [Wed, 9 Mar 2016 07:35:17 +0000 (08:35 +0100)] 
curl_multi_wait.3: add example

10 years agoimap/pop3/smtp: Fixed connections upgraded with TLS are not reused
Steve Holme [Sat, 5 Mar 2016 20:10:11 +0000 (20:10 +0000)] 
imap/pop3/smtp: Fixed connections upgraded with TLS are not reused

Regression since commit 710f14edba.

Bug: https://github.com/curl/curl/issues/422
Reported-by: Justin Ehlert
10 years agoopt-docs: fix heading macros
Jay Satiro [Tue, 8 Mar 2016 18:23:35 +0000 (13:23 -0500)] 
opt-docs: fix heading macros

..SH should be .SH

Bug: https://github.com/curl/curl/issues/705
Reported-by: Eric S. Raymond
10 years agocookie: do not refuse cookies for localhost
Tim Rühsen [Wed, 2 Mar 2016 10:07:16 +0000 (11:07 +0100)] 
cookie: do not refuse cookies for localhost

Closes #658

10 years agoftp_done: clear tunnel_state when secondary socket closes
Daniel Stenberg [Mon, 7 Mar 2016 23:07:14 +0000 (00:07 +0100)] 
ftp_done: clear tunnel_state when secondary socket closes

Introducing a function for closing the secondary connection to make this
bug less likely to happen again.

Reported-by: daboul
Closes #701

10 years agoopenssl: use the correct OpenSSL/BoringSSL/LibreSSL in messages
Gisle Vanem [Tue, 8 Mar 2016 13:19:01 +0000 (14:19 +0100)] 
openssl: use the correct OpenSSL/BoringSSL/LibreSSL in messages

10 years agoHTTP2.md: HTTP/2 by default for curl's HTTPS connections
Daniel Stenberg [Tue, 8 Mar 2016 07:15:47 +0000 (08:15 +0100)] 
HTTP2.md: HTTP/2 by default for curl's HTTPS connections

10 years agopipeline: Sanity check pipeline pointer before accessing it.
Anders Bakken [Mon, 7 Mar 2016 19:38:26 +0000 (11:38 -0800)] 
pipeline: Sanity check pipeline pointer before accessing it.

I got a crash with this stack:

curl/lib/url.c:2873 (Curl_removeHandleFromPipeline)
curl/lib/url.c:2919 (Curl_getoff_all_pipelines)
curl/lib/multi.c:561 (curl_multi_remove_handle)
curl/lib/url.c:415 (Curl_close)
curl/lib/easy.c:859 (curl_easy_cleanup)

Closes #704

10 years agoHTTP2.md: mention the disable ALPN and NPN options
Daniel Stenberg [Mon, 7 Mar 2016 23:02:52 +0000 (00:02 +0100)] 
HTTP2.md: mention the disable ALPN and NPN options

10 years agoTODO: 17.12 keep running, read instructions from pipe/socket
Daniel Stenberg [Mon, 7 Mar 2016 22:21:50 +0000 (23:21 +0100)] 
TODO: 17.12 keep running, read instructions from pipe/socket

And delete trailing whitespace
And rename section 17 to "command line tool" from "client"

Closes #702

10 years agoREADME.md: linkified
Daniel Stenberg [Mon, 7 Mar 2016 10:09:56 +0000 (11:09 +0100)] 
README.md: linkified

It also makes it less readable as plain text, so let's keep this
primarily for github use.

Removed the top ascii art logo, as it looks weird when markdownified.

10 years agoREADME.md: markdown version of README
Daniel Stenberg [Mon, 7 Mar 2016 10:03:55 +0000 (11:03 +0100)] 
README.md: markdown version of README

Attempt to make it look more appealing on github

10 years agomprintf: update trio project link
Jay Satiro [Mon, 7 Mar 2016 03:57:47 +0000 (22:57 -0500)] 
mprintf: update trio project link

10 years agoCURLOPT_ACCEPTTIMEOUT_MS.3: added example
Daniel Stenberg [Sun, 6 Mar 2016 22:33:18 +0000 (23:33 +0100)] 
CURLOPT_ACCEPTTIMEOUT_MS.3: added example

10 years agoCURLOPT_ACCEPT_ENCODING.3: added example
Daniel Stenberg [Sun, 6 Mar 2016 22:30:42 +0000 (23:30 +0100)] 
CURLOPT_ACCEPT_ENCODING.3: added example

10 years agoCURLOPT_APPEND.3: added example
Daniel Stenberg [Sun, 6 Mar 2016 22:28:35 +0000 (23:28 +0100)] 
CURLOPT_APPEND.3: added example

10 years agoCURLOPT_NOPROGRESS.3: added example, conform to stardard style
Daniel Stenberg [Sun, 6 Mar 2016 22:14:02 +0000 (23:14 +0100)] 
CURLOPT_NOPROGRESS.3: added example, conform to stardard style

10 years agobuild-openssl/checksrc.bat: Fixed prepend vs append of Perl path
Steve Holme [Sun, 6 Mar 2016 20:02:58 +0000 (20:02 +0000)] 
build-openssl/checksrc.bat: Fixed prepend vs append of Perl path

Fixed inconsistency from commit 1eae114065 and 0ad6c72227 of the order
in which Perl was added to the PATH.

10 years agoopts: added two examples
Daniel Stenberg [Sun, 6 Mar 2016 16:42:37 +0000 (17:42 +0100)] 
opts: added two examples

10 years agoCURLOPT_SSL_CTX_FUNCTION.3: use .NF for example
Daniel Stenberg [Sun, 6 Mar 2016 16:20:16 +0000 (17:20 +0100)] 
CURLOPT_SSL_CTX_FUNCTION.3: use .NF for example

10 years agoCURLOPT_SSL_CTX_FUNCTION.3: added example
Daniel Stenberg [Sun, 6 Mar 2016 15:58:34 +0000 (16:58 +0100)] 
CURLOPT_SSL_CTX_FUNCTION.3: added example

and removed erroneous reference to test case lib509

10 years agocurlx.c: use more curl style code
Daniel Stenberg [Sun, 6 Mar 2016 15:54:58 +0000 (16:54 +0100)] 
curlx.c: use more curl style code

10 years agotest46: change cookie expiry date
Daniel Stenberg [Sun, 6 Mar 2016 15:22:49 +0000 (16:22 +0100)] 
test46: change cookie expiry date

Since two of the cookies would now otherwise expire and cause the test
to fail after commit 20de9b4f09

Discussed in #697

10 years agomakefile.m32: add missing libs for static -winssl-ssh2 builds
Viktor Szakats [Wed, 2 Mar 2016 02:25:22 +0000 (03:25 +0100)] 
makefile.m32: add missing libs for static -winssl-ssh2 builds

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

10 years agombedtls: fix user-specified SSL protocol version
Jay Satiro [Sun, 6 Mar 2016 02:35:16 +0000 (21:35 -0500)] 
mbedtls: fix user-specified SSL protocol version

Prior to this change when a single protocol CURL_SSLVERSION_ was
specified by the user that version was set only as the minimum version
but not as the maximum version as well.

10 years ago.gitignore: Added *.VC.opendb and *.vcxproj.user files for VC14
Steve Holme [Sat, 5 Mar 2016 21:49:09 +0000 (21:49 +0000)] 
.gitignore: Added *.VC.opendb and *.vcxproj.user files for VC14

10 years agobuild-openssl.bat: Fixed cannot find perl if installed but not in path
Steve Holme [Sat, 5 Mar 2016 21:04:43 +0000 (21:04 +0000)] 
build-openssl.bat: Fixed cannot find perl if installed but not in path

10 years agochecksrc.bat: Fixed cannot find perl if installed but not in path
Steve Holme [Sat, 5 Mar 2016 21:03:40 +0000 (21:03 +0000)] 
checksrc.bat: Fixed cannot find perl if installed but not in path

10 years agomakefile.m32: fix to allow -ssh2-winssl combination
Viktor Szakats [Wed, 2 Mar 2016 02:00:37 +0000 (03:00 +0100)] 
makefile.m32: fix to allow -ssh2-winssl combination

In makefile.m32, option -ssh2 (libssh2) automatically implied -ssl
(OpenSSL) option, with no way to override it with -winssl. Since both
libssh2 and curl support using Windows's built-in SSL backend, modify
the logic to allow that combination.

10 years agocookie: Don't expire session cookies in remove_expired
Jay Satiro [Sat, 5 Mar 2016 18:35:17 +0000 (13:35 -0500)] 
cookie: Don't expire session cookies in remove_expired

Prior to this change cookies with an expiry date that failed parsing
and were converted to session cookies could be purged in remove_expired.

Bug: https://github.com/curl/curl/issues/697
Reported-by: Seth Mos
10 years agocookie: remove redundant check
Daniel Stenberg [Thu, 3 Mar 2016 20:14:36 +0000 (21:14 +0100)] 
cookie: remove redundant check

... as it was already checked previously within the function.

Reported-by: Dmitry-Me
Closes #695

10 years agourl: if Curl_done is premature then pipeline not in use
Anders Bakken [Tue, 1 Mar 2016 22:52:38 +0000 (14:52 -0800)] 
url: if Curl_done is premature then pipeline not in use

Prevent a crash if 2 (or more) requests are made to the same host and
pipelining is enabled and the connection does not complete.

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

10 years agomakefile.m32: allow to pass .dll/.exe-specific LDFLAGS
Viktor Szakats [Tue, 1 Mar 2016 19:50:13 +0000 (20:50 +0100)] 
makefile.m32: allow to pass .dll/.exe-specific LDFLAGS

using envvars `CURL_LDFLAG_EXTRAS_DLL` and
`CURL_LDFLAG_EXTRAS_EXE` respectively. This
is useful f.e. to pass ASLR-related extra
options, that are required to make this
feature work when using the mingw toolchain.

Ref: https://github.com/curl/curl/pull/670#issuecomment-190863985

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

10 years agoformpost: fix memory leaks in AddFormData error branches
Daniel Stenberg [Mon, 29 Feb 2016 19:32:08 +0000 (20:32 +0100)] 
formpost: fix memory leaks in AddFormData error branches

Reported-by: Dmitry-Me
Fixes #688

10 years agogetinfo: Fix syntax error when mbedTLS
Jay Satiro [Sun, 28 Feb 2016 21:05:38 +0000 (16:05 -0500)] 
getinfo: Fix syntax error when mbedTLS

The assignment of the mbedTLS TLS session info in the parent commit was
incorrect. Change the assignment to a pointer to the session structure.

10 years agogetinfo: Add support for mbedTLS TLS session info
Jay Satiro [Sun, 28 Feb 2016 00:01:00 +0000 (19:01 -0500)] 
getinfo: Add support for mbedTLS TLS session info

.. and preprocessor check TLS session info is defined for all backends.

10 years agoROADMAP: clarify on the TLS proxy, mention HTTP cookies to work on
Daniel Stenberg [Fri, 26 Feb 2016 12:02:34 +0000 (13:02 +0100)] 
ROADMAP: clarify on the TLS proxy, mention HTTP cookies to work on

10 years agofile: try reading from files with no size
Daniel Stenberg [Thu, 25 Feb 2016 22:45:17 +0000 (23:45 +0100)] 
file: try reading from files with no size

Some systems have special files that report as 0 bytes big, but still
contain data that can be read (for example /proc/cpuinfo on
Linux). Starting now, a zero byte size is considered "unknown" size and
will be read as far as possible anyway.

Reported-by: Jesse Tan
Closes #681

10 years agoconfigure: warn on invalid ca bundle or path
Jay Satiro [Thu, 25 Feb 2016 06:55:38 +0000 (01:55 -0500)] 
configure: warn on invalid ca bundle or path

- Warn if --with-ca-bundle file does not exist.

- Warn if --with-ca-path directory does not contain certificates.

- Improve help messages for both.

Example configure output:

  ca cert bundle:   /some/file   (warning: certs not found)
  ca cert path:     /some/dir   (warning: certs not found)

Bug: https://github.com/curl/curl/issues/404
Reported-by: Jeffrey Walton
10 years agoCurl_read: check for activated HTTP/1 pipelining, not only requested
Daniel Stenberg [Wed, 24 Feb 2016 12:47:57 +0000 (13:47 +0100)] 
Curl_read: check for activated HTTP/1 pipelining, not only requested

... as when pipelining is used, we read things into a unified buffer and
we don't do that with HTTP/2. This could then easily make programs that
set CURLMOPT_PIPELINING = CURLPIPE_HTTP1|CURLPIPE_MULTIPLEX to get data
intermixed or plain broken between HTTP/2 streams.

Reported-by: Anders Bakken
10 years agoos400: Fix ILE/RPG definition of CURLOPT_TFTP_NO_OPTIONS
Patrick Monnerat [Wed, 24 Feb 2016 12:19:10 +0000 (13:19 +0100)] 
os400: Fix ILE/RPG definition of CURLOPT_TFTP_NO_OPTIONS

10 years agogetinfo: CURLINFO_TLS_SSL_PTR supersedes CURLINFO_TLS_SESSION
Jay Satiro [Wed, 24 Feb 2016 00:03:03 +0000 (19:03 -0500)] 
getinfo: CURLINFO_TLS_SSL_PTR supersedes CURLINFO_TLS_SESSION

The two options are almost the same, except in the case of OpenSSL:

CURLINFO_TLS_SESSION OpenSSL session internals is SSL_CTX *.

CURLINFO_TLS_SSL_PTR OpenSSL session internals is SSL *.

For backwards compatibility we couldn't modify CURLINFO_TLS_SESSION to
return an SSL pointer for OpenSSL.

Also, add support for the 'internals' member to point to SSL object for
the other backends axTLS, PolarSSL, Secure Channel, Secure Transport and
wolfSSL.

Bug: https://github.com/curl/curl/issues/234
Reported-by: dkjjr89@users.noreply.github.com
Bug: https://curl.haxx.se/mail/lib-2015-09/0127.html
Reported-by: Michael König
10 years agomulti_remove_handle: keep the timeout list until after disconnect
Daniel Stenberg [Tue, 23 Feb 2016 12:05:41 +0000 (13:05 +0100)] 
multi_remove_handle: keep the timeout list until after disconnect

The internal Curl_done() function uses Curl_expire() at times and that
uses the timeout list. Better clean up the list once we're done using
it. This caused a segfault.

Reported-by: 蔡文凱
Bug: https://curl.haxx.se/mail/lib-2016-02/0097.html

10 years agotests/sshserver.pl: use RSA instead of DSA for host auth
Kamil Dudka [Tue, 23 Feb 2016 09:31:52 +0000 (10:31 +0100)] 
tests/sshserver.pl: use RSA instead of DSA for host auth

DSA is no longer supported by OpenSSH 7.0, which causes all SCP/SFTP
test cases to be skipped.  Using RSA for host authentication works with
both old and new versions of OpenSSH.

Reported-by: Karlson2k
Closes #676

10 years agoTFTP: add option to suppress TFTP option requests (Part 2)
Jay Satiro [Mon, 24 Aug 2015 04:15:01 +0000 (00:15 -0400)] 
TFTP: add option to suppress TFTP option requests (Part 2)

- Add tests.

- Add an example to CURLOPT_TFTP_NO_OPTIONS.3.

- Add --tftp-no-options to expose CURLOPT_TFTP_NO_OPTIONS.

Bug: https://github.com/curl/curl/issues/481

10 years agoTFTP: add option to suppress TFTP option requests (Part 1)
Michael Koenig [Mon, 17 Aug 2015 15:54:47 +0000 (17:54 +0200)] 
TFTP: add option to suppress TFTP option requests (Part 1)

Some TFTP server implementations ignore the "TFTP Option extension"
(RFC 1782-1784, 2347-2349), or implement it in a flawed way, causing
problems with libcurl. Another switch for curl_easy_setopt
"CURLOPT_TFTP_NO_OPTIONS" is introduced which prevents libcurl from
sending TFTP option requests to a server, avoiding many problems caused
by faulty implementations.

Bug: https://github.com/curl/curl/issues/481

10 years agoruntests: Fixed usage of %PWD on MinGW64
Karlson2k [Sun, 21 Feb 2016 12:48:10 +0000 (15:48 +0300)] 
runtests: Fixed usage of %PWD on MinGW64

Closes #672

10 years agoCURLOPT_DEBUGFUNCTION.3: Fix example
Jay Satiro [Sat, 20 Feb 2016 21:23:05 +0000 (16:23 -0500)] 
CURLOPT_DEBUGFUNCTION.3: Fix example

10 years agosrc/Makefile.m32: add CURL_{LD,C}FLAGS_EXTRAS support
Viktor Szakats [Sat, 20 Feb 2016 19:21:48 +0000 (20:21 +0100)] 
src/Makefile.m32: add CURL_{LD,C}FLAGS_EXTRAS support

Sync with lib/Makefile.m32 which already uses those variables.

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

10 years agoEnabled test 1437 after the bug fix in commit 3fa220a6
Dan Fandrich [Sat, 20 Feb 2016 10:34:15 +0000 (11:34 +0100)] 
Enabled test 1437 after the bug fix in commit 3fa220a6

10 years agocurl_sasl: Fix memory leak in digest parser
Emil Lerner [Fri, 19 Feb 2016 00:47:27 +0000 (03:47 +0300)] 
curl_sasl: Fix memory leak in digest parser

If any parameter in a HTTP DIGEST challenge message is present multiple
times, memory allocated for all but the last entry should be freed.

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

10 years agoAdded test 1437 to verify a memory leak
Dan Fandrich [Fri, 19 Feb 2016 09:45:09 +0000 (10:45 +0100)] 
Added test 1437 to verify a memory leak

Reported-by: neex@users.noreply.github.com
10 years agoCURLOPT_COOKIEFILE.3: HTTP headers must be Set-Cookie style
Jay Satiro [Fri, 19 Feb 2016 02:07:57 +0000 (21:07 -0500)] 
CURLOPT_COOKIEFILE.3: HTTP headers must be Set-Cookie style

Bug: https://github.com/curl/curl/issues/666
Reported-by: baumanj@users.noreply.github.com
10 years agocurl.1: HTTP headers for --cookie must be Set-Cookie style
Jay Satiro [Fri, 19 Feb 2016 00:01:19 +0000 (19:01 -0500)] 
curl.1: HTTP headers for --cookie must be Set-Cookie style

Bug: https://github.com/curl/curl/issues/666
Reported-by: baumanj@users.noreply.github.com
10 years agocurl.1: add a missing dash
Daniel Stenberg [Thu, 18 Feb 2016 14:32:00 +0000 (15:32 +0100)] 
curl.1: add a missing dash

10 years agoCONTRIBUTING.md: fix links
Daniel Stenberg [Thu, 18 Feb 2016 10:59:17 +0000 (11:59 +0100)] 
CONTRIBUTING.md: fix links

10 years agoISSUE_TEMPLATE: github issue template
Daniel Stenberg [Thu, 18 Feb 2016 10:55:59 +0000 (11:55 +0100)] 
ISSUE_TEMPLATE: github issue template

First version, try this out!

10 years agoCONTRIBUTING.md: move into .github
Daniel Stenberg [Thu, 18 Feb 2016 10:52:25 +0000 (11:52 +0100)] 
CONTRIBUTING.md: move into .github

To hide github specific files somewhat from the rest.

10 years agoopts: add references
Daniel Stenberg [Thu, 18 Feb 2016 08:14:48 +0000 (09:14 +0100)] 
opts: add references

10 years agoexamples/make: add 'checksrc' target
Daniel Stenberg [Wed, 17 Feb 2016 14:01:38 +0000 (15:01 +0100)] 
examples/make: add 'checksrc' target

10 years ago10-at-a-time: typecast the argument passed to sleep()
Daniel Stenberg [Wed, 17 Feb 2016 14:01:21 +0000 (15:01 +0100)] 
10-at-a-time: typecast the argument passed to sleep()

10 years agoexternalsocket.c: fix compiler warning for fwrite return type
Daniel Stenberg [Wed, 17 Feb 2016 14:00:54 +0000 (15:00 +0100)] 
externalsocket.c: fix compiler warning for fwrite return type

10 years agoanyauthput.c: fix compiler warnings
Daniel Stenberg [Wed, 17 Feb 2016 14:00:34 +0000 (15:00 +0100)] 
anyauthput.c: fix compiler warnings

10 years agosimplessl.c: warning: while with space
Daniel Stenberg [Wed, 17 Feb 2016 14:00:18 +0000 (15:00 +0100)] 
simplessl.c: warning: while with space

10 years agocurlx.c: i2s_ASN1_IA5STRING() clashes with an openssl function
Daniel Stenberg [Wed, 17 Feb 2016 13:51:31 +0000 (14:51 +0100)] 
curlx.c: i2s_ASN1_IA5STRING() clashes with an openssl function

Reported-By: Gisle Vanem
10 years agohttp2: don't decompress gzip decoding automatically
Daniel Stenberg [Wed, 17 Feb 2016 07:25:40 +0000 (08:25 +0100)] 
http2: don't decompress gzip decoding automatically

At one point during the development of HTTP/2, the commit 133cdd29ea0
introduced automatic decompression of Content-Encoding as that was what
the spec said then. Now however, HTTP/2 should work the same way as
HTTP/1 in this regard.

Reported-by: Kazuho Oku
Closes #661

10 years agohttp: Don't break the header into chunks if HTTP/2
Tatsuhiro Tsujikawa [Tue, 16 Feb 2016 19:44:57 +0000 (14:44 -0500)] 
http: Don't break the header into chunks if HTTP/2

nghttp2 callback deals with TLS layer and therefore the header does not
need to be broken into chunks.

Bug: https://github.com/curl/curl/issues/659
Reported-by: Kazuho Oku
10 years agoopenssl: use macro to guard the opaque EVP_PKEY branch
Viktor Szakats [Mon, 15 Feb 2016 23:22:54 +0000 (00:22 +0100)] 
openssl: use macro to guard the opaque EVP_PKEY branch

10 years agoopenssl: avoid direct PKEY access with OpenSSL 1.1.0
Viktor Szakats [Sat, 13 Feb 2016 16:09:12 +0000 (17:09 +0100)] 
openssl: avoid direct PKEY access with OpenSSL 1.1.0

by using API instead of accessing an internal structure.
This is required starting OpenSSL 1.1.0-pre3.

Closes #650

10 years agoRELEASE-NOTES: synced with ede0bfc079da
Daniel Stenberg [Mon, 15 Feb 2016 09:20:05 +0000 (10:20 +0100)] 
RELEASE-NOTES: synced with ede0bfc079da

10 years agoCURLOPT_CONNECTTIMEOUT_MS.3: Fix example to use milliseconds option
Clint Clayton [Sun, 14 Feb 2016 21:22:19 +0000 (13:22 -0800)] 
CURLOPT_CONNECTTIMEOUT_MS.3: Fix example to use milliseconds option

Change the example in the docs for CURLOPT_CONNECTTIMEOUT_MS to use
CURLOPT_CONNECTTIMEOUT_MS instead of CURLOPT_CONNECTTIMEOUT.

Closes #653

10 years agoopt-docs: add more references
Daniel Stenberg [Sun, 14 Feb 2016 14:54:47 +0000 (15:54 +0100)] 
opt-docs: add more references

10 years agoSCP: use libssh2_scp_recv2 to support > 2GB files on windows
David Byron [Tue, 21 Jul 2015 03:27:12 +0000 (20:27 -0700)] 
SCP: use libssh2_scp_recv2 to support > 2GB files on windows

libssh2_scp_recv2 is introduced in libssh2 1.7.0 - to be released "any
day now.

Closes #451

10 years agogtls: fix for builds lacking encrypted key file support
Shine Fan [Sun, 14 Feb 2016 02:54:45 +0000 (10:54 +0800)] 
gtls: fix for builds lacking encrypted key file support

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

10 years agotest1604: Add to Makefile.inc so it gets run
Dan Fandrich [Sat, 13 Feb 2016 21:49:45 +0000 (22:49 +0100)] 
test1604: Add to Makefile.inc so it gets run

10 years agogenerate.bat: Fix comment bug by removing old comments
Jay Satiro [Sat, 13 Feb 2016 04:48:54 +0000 (23:48 -0500)] 
generate.bat: Fix comment bug by removing old comments

Remove NOTES section, it's no longer needed since we aren't setting the
errorlevel and more importantly the recently updated URL in the comments
is causing some unusual behavior that breaks the script.

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

10 years agocurl.1: --disable-{eprt,epsv} are ignored for IPv6 hosts
Kamil Dudka [Fri, 12 Feb 2016 17:39:57 +0000 (18:39 +0100)] 
curl.1: --disable-{eprt,epsv} are ignored for IPv6 hosts

The behavior has been clarified in CURLOPT_FTP_USE_{EPRT,EPSV}.3 man
pages since curl-7_12_3~131.  This patch makes it clear in the curl.1
man page, too.

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

10 years agodist: ship buildconf.bat too
Daniel Stenberg [Fri, 12 Feb 2016 15:45:25 +0000 (16:45 +0100)] 
dist: ship buildconf.bat too

As the winbuild/* stuff uses it!

10 years agocurlx_tvdiff: handle 32bit time_t overflows
Daniel Stenberg [Thu, 11 Feb 2016 22:52:43 +0000 (23:52 +0100)] 
curlx_tvdiff: handle 32bit time_t overflows

On 32bit systems, make sure we don't overflow and return funky values
for very large time differences.

Reported-by: Anders Bakken
Closes #646

10 years agoexamples: fix some compiler warnings
Daniel Stenberg [Thu, 11 Feb 2016 09:21:09 +0000 (10:21 +0100)] 
examples: fix some compiler warnings

10 years agosimplessl.c: fix my breakage
Daniel Stenberg [Thu, 11 Feb 2016 09:20:48 +0000 (10:20 +0100)] 
simplessl.c: fix my breakage

10 years agoexamples: adhere to curl code style
Daniel Stenberg [Thu, 11 Feb 2016 08:42:38 +0000 (09:42 +0100)] 
examples: adhere to curl code style

All plain C examples now (mostly) adhere to the curl code style. While
they are only examples, they had diverted so much and contained all
sorts of different mixed code styles by now. Having them use a unified
style helps users and readability. Also, as they get copy-and-pasted
widely by users, making sure they're clean and nice is a good idea.

573 checksrc warnings were addressed.

10 years agoexamples/cookie_interface.c: add cleanup call
Daniel Stenberg [Thu, 11 Feb 2016 07:44:59 +0000 (08:44 +0100)] 
examples/cookie_interface.c: add cleanup call

cleaning up handles is a good idea as we leak memory otherwise

Also, line wrapped before 80 columns.

10 years agonss: search slash in forward direction in dup_nickname()
Kamil Dudka [Thu, 4 Feb 2016 09:44:52 +0000 (10:44 +0100)] 
nss: search slash in forward direction in dup_nickname()

It is wasteful to search it backwards if we look for _any_ slash.

10 years agonss: do not count enabled cipher-suites
Kamil Dudka [Thu, 4 Feb 2016 09:41:15 +0000 (10:41 +0100)] 
nss: do not count enabled cipher-suites

We only care if at least one cipher-suite is enabled, so it does
not make any sense to iterate till the end and count all enabled
cipher-suites.

10 years agocontributors.sh: make 79 the max column width (from 80)
Daniel Stenberg [Wed, 10 Feb 2016 12:49:42 +0000 (13:49 +0100)] 
contributors.sh: make 79 the max column width (from 80)

10 years agoRELEASE-NOTES: synced with c276aefee3995
Daniel Stenberg [Wed, 10 Feb 2016 12:49:34 +0000 (13:49 +0100)] 
RELEASE-NOTES: synced with c276aefee3995

10 years agombedtls.c: re-indent to better match curl standards
Daniel Stenberg [Wed, 10 Feb 2016 09:46:57 +0000 (10:46 +0100)] 
mbedtls.c: re-indent to better match curl standards

10 years agombedtls: fix memory leak when destroying SSL connection data
Rafael Antonio [Mon, 1 Feb 2016 22:13:10 +0000 (23:13 +0100)] 
mbedtls: fix memory leak when destroying SSL connection data

Closes #626

10 years agombedtls: fix ALPN usage segfault
Daniel Stenberg [Tue, 9 Feb 2016 22:37:14 +0000 (23:37 +0100)] 
mbedtls: fix ALPN usage segfault

Since we didn't keep the input argument around after having called
mbedtls, it could end up accessing the wrong memory when figuring out
the ALPN protocols.

Closes #642

10 years agoopts: update references to renamed options
Timotej Lazar [Tue, 9 Feb 2016 18:40:24 +0000 (19:40 +0100)] 
opts: update references to renamed options

10 years agoKNOWN_BUGS: Update #92 - Windows device prefix
Jay Satiro [Tue, 9 Feb 2016 08:29:19 +0000 (03:29 -0500)] 
KNOWN_BUGS: Update #92 - Windows device prefix

10 years agotool_doswin: Support for literal path prefix \\?\
Jay Satiro [Tue, 9 Feb 2016 08:28:58 +0000 (03:28 -0500)] 
tool_doswin: Support for literal path prefix \\?\

For example something like --output \\?\C:\foo

10 years agoconfigure: state "BoringSSL" in summary when that was detected
Daniel Stenberg [Tue, 9 Feb 2016 07:44:26 +0000 (08:44 +0100)] 
configure: state "BoringSSL" in summary when that was detected

10 years agoopenssl: remove most BoringSSL #ifdefs.
David Benjamin [Tue, 9 Feb 2016 04:19:31 +0000 (23:19 -0500)] 
openssl: remove most BoringSSL #ifdefs.

As of https://boringssl-review.googlesource.com/#/c/6980/, almost all of
BoringSSL #ifdefs in cURL should be unnecessary:

- BoringSSL provides no-op stubs for compatibility which replaces most
  #ifdefs.

- DES_set_odd_parity has been in BoringSSL for nearly a year now. Remove
  the compatibility codepath.

- With a small tweak to an extend_key_56_to_64 call, the NTLM code
  builds fine.

- Switch OCSP-related #ifdefs to the more generally useful
  OPENSSL_NO_OCSP.

The only #ifdefs which remain are Curl_ossl_version and the #undefs to
work around OpenSSL and wincrypt.h name conflicts. (BoringSSL leaves
that to the consumer. The in-header workaround makes things sensitive to
include order.)

This change errs on the side of removing conditionals despite many of
the restored codepaths being no-ops. (BoringSSL generally adds no-op
compatibility stubs when possible. OPENSSL_VERSION_NUMBER #ifdefs are
bad enough!)

Closes #640