]>
granicus.if.org Git - curl/log
Patrick Monnerat [Thu, 24 Nov 2016 13:28:39 +0000 (14:28 +0100)]
Limit ASN.1 structure sizes to 256K. Prevent some allocation size overflows.
See CRL-01-006.
Jay Satiro [Tue, 22 Nov 2016 21:10:06 +0000 (16:10 -0500)]
url: Fix conn reuse for local ports and interfaces
- Fix connection reuse for when the proposed new conn 'needle' has a
specified local port but does not have a specified device interface.
Bug: https://curl.haxx.se/mail/lib-2016-11/0137.html
Reported-by: bjt3[at]hotmail.com
Daniel Stenberg [Mon, 21 Nov 2016 06:51:42 +0000 (07:51 +0100)]
rand: pass in number of randoms as an unsigned argument
Jay Satiro [Mon, 21 Nov 2016 04:57:47 +0000 (23:57 -0500)]
rand: Fix potentially uninitialized result warning
Marcel Raad [Sat, 19 Nov 2016 13:09:03 +0000 (14:09 +0100)]
vtls: fix build warnings
Fix warnings about conversions from long to time_t in openssl.c and
schannel.c.
Follow-up to
de4de4e3c7c
Marcel Raad [Fri, 18 Nov 2016 09:07:08 +0000 (10:07 +0100)]
lib: fix compiler warnings after
de4de4e3c7c
Visual C++ now complains about implicitly casting time_t (64-bit) to
long (32-bit). Fix this by changing some variables from long to time_t,
or explicitly casting to long where the public interface would be
affected.
Closes #1131
Isaac Boukris [Mon, 7 Nov 2016 19:25:44 +0000 (21:25 +0200)]
Don't mix unix domain sockets with regular ones
When reusing a connection, make sure the unix domain
socket option matches.
Jay Satiro [Thu, 17 Nov 2016 06:04:00 +0000 (01:04 -0500)]
tests: Fix HTTP2-Settings header for huge window size
Follow-up to
a4d8888 . Changing the window size in that commit resulted
in a different HTTP2-Settings upgrade header, causing test 1800 to fail.
Jay Satiro [Wed, 16 Nov 2016 07:55:30 +0000 (02:55 -0500)]
http2: Use huge HTTP/2 windows
- Improve performance by using a huge HTTP/2 window size.
Bug: https://github.com/curl/curl/issues/1102
Reported-by: afrind@users.noreply.github.com
Assisted-by: Tatsuhiro Tsujikawa
Daniel Stenberg [Wed, 16 Nov 2016 13:20:36 +0000 (14:20 +0100)]
cmdline-docs: more conversion
Daniel Stenberg [Wed, 16 Nov 2016 13:20:13 +0000 (14:20 +0100)]
gen: support 'protos'
and warn on unrecognized lines
Daniel Stenberg [Wed, 16 Nov 2016 10:41:02 +0000 (11:41 +0100)]
gen: support 'single' to make an individual page man page
Daniel Stenberg [Tue, 15 Nov 2016 22:44:58 +0000 (23:44 +0100)]
cmdline-docs: more options converted over
Daniel Stenberg [Wed, 16 Nov 2016 09:42:02 +0000 (10:42 +0100)]
gen: support 'redirect'
... and warn for too long --help lines
Daniel Stenberg [Tue, 15 Nov 2016 22:44:36 +0000 (23:44 +0100)]
cmdline/gen: replace options in texts better
Jay Satiro [Wed, 16 Nov 2016 07:16:10 +0000 (02:16 -0500)]
http2: Fix address sanitizer memcpy warning
- In Curl_http2_switched don't call memcpy when src is NULL.
Curl_http2_switched can be called like:
Curl_http2_switched(conn, NULL, 0);
.. and prior to this change memcpy was then called like:
memcpy(dest, NULL, 0)
.. causing address sanitizer to warn:
http2.c:2057:3: runtime error: null pointer passed as argument 2, which
is declared to never be null
Jay Satiro [Wed, 16 Nov 2016 06:52:01 +0000 (01:52 -0500)]
tool_help: Clarify --dump-header only writes received headers
Jay Satiro [Wed, 16 Nov 2016 06:40:23 +0000 (01:40 -0500)]
curl.1: Clarify --dump-header only writes received headers
Alex Chan [Tue, 15 Nov 2016 09:47:07 +0000 (09:47 +0000)]
docs: Spelling fixes
Kamil Dudka [Tue, 15 Nov 2016 11:21:00 +0000 (12:21 +0100)]
docs: the next release will be 7.52.0
Daniel Stenberg [Tue, 15 Nov 2016 08:08:50 +0000 (09:08 +0100)]
cmdline-opts: support generating the --help output
David Schweikert [Fri, 4 Nov 2016 14:18:16 +0000 (15:18 +0100)]
darwinssl: fix SSL client certificate not found on MacOS Sierra
Reviewed-by: Nick Zitzmann
Closes #1105
Daniel Stenberg [Tue, 15 Nov 2016 07:32:23 +0000 (08:32 +0100)]
curl: add --fail-early to help output
Fixes test 1139 failures
Follow-up to
f82bbe01c8835
Daniel Stenberg [Tue, 15 Nov 2016 07:22:54 +0000 (08:22 +0100)]
glob: fix [a-c] globbing regression
Brought in
ee4f76606cf
Added test case 1280 to verify
Reported-by: Dave Reisner
Bug: https://github.com/curl/curl/commit/
ee4f76606cfa4ee068bf28edd37c8dae7e8db317 #commitcomment-
19823146
Daniel Stenberg [Sat, 12 Nov 2016 13:19:29 +0000 (14:19 +0100)]
curl: add --fail-early
Exit with an error on the first transfer error instead of continuing to
do the rest of the URLs.
Discussion: https://curl.haxx.se/mail/archive-2016-11/0038.html
Daniel Stenberg [Fri, 11 Nov 2016 13:53:36 +0000 (14:53 +0100)]
Curl_rand: fixed and moved to rand.c
Now Curl_rand() is made to fail if it cannot get the necessary random
level.
Changed the proto of Curl_rand() slightly to provide a number of ints at
once.
Moved out from vtls, since it isn't a TLS function and vtls provides
Curl_ssl_random() for this to use.
Discussion: https://curl.haxx.se/mail/lib-2016-11/0119.html
Daniel Stenberg [Sun, 13 Nov 2016 22:40:12 +0000 (23:40 +0100)]
cmdline-opts: first test version of a new man page generator kit
See MANPAGE.md for the description of how this works. Each command line
option is now described in a separate .d file.
Daniel Stenberg [Sun, 13 Nov 2016 22:09:45 +0000 (23:09 +0100)]
time_t fix: follow-up to
de4de4e3c7c
Blah, I accidentally wrote size_t instead of time_t for two variables.
Reported-by: Dave Reisner
Daniel Stenberg [Fri, 11 Nov 2016 09:19:22 +0000 (10:19 +0100)]
timeval: prefer time_t to hold seconds instead of long
... as long is still 32bit on modern 64bit windows machines, while
time_t is generally 64bit.
Dan Fandrich [Sat, 12 Nov 2016 11:33:10 +0000 (12:33 +0100)]
tests: fixed variable might be clobbered warning
This stops the compiler from potentially making invalid assumptions
about the immutability of sdp and sap across the longjmp boundary.
Daniel Stenberg [Fri, 11 Nov 2016 23:09:25 +0000 (00:09 +0100)]
RELEASE-NOTES: synced with
346340808c
Daniel Stenberg [Fri, 11 Nov 2016 07:09:04 +0000 (08:09 +0100)]
URL-parser: for file://[host]/ URLs, the [host] must be localhost
Previously, the [host] part was just ignored which made libcurl accept
strange URLs misleading users. like "file://etc/passwd" which might've
looked like it refers to "/etc/passwd" but is just "/passwd" since the
"etc" is an ignored host name.
Reported-by: Mike Crowe
Assisted-by: Kamil Dudka
Daniel Stenberg [Fri, 11 Nov 2016 14:32:07 +0000 (15:32 +0100)]
test558: adapt to
0649433da
Daniel Stenberg [Fri, 11 Nov 2016 13:16:17 +0000 (14:16 +0100)]
openssl: make sure to fail in the unlikely event that PRNG seeding fails
Daniel Stenberg [Fri, 11 Nov 2016 12:54:16 +0000 (13:54 +0100)]
openssl: avoid unnecessary seeding if already done
1.1.0+ does more of this by itself so we can avoid extra processing this
way.
Daniel Stenberg [Fri, 11 Nov 2016 12:37:01 +0000 (13:37 +0100)]
openssl: RAND_status always exists in OpenSSL >= 0.9.7
and remove RAND_screen from configure since nothing is using that
function
Daniel Stenberg [Fri, 11 Nov 2016 10:02:02 +0000 (11:02 +0100)]
Curl_pgrsUpdate: use dedicated function for time passed
Daniel Stenberg [Mon, 7 Nov 2016 09:55:25 +0000 (10:55 +0100)]
realloc: use Curl_saferealloc to avoid common mistakes
Discussed: https://curl.haxx.se/mail/lib-2016-11/0087.html
Daniel Hwang [Sun, 9 Oct 2016 23:00:25 +0000 (16:00 -0700)]
curl: Add --retry-connrefused
to consider ECONNREFUSED as a transient error.
Closes #1064
Daniel Stenberg [Thu, 10 Nov 2016 10:16:25 +0000 (11:16 +0100)]
openssl: raise the max_version to 1.3 if asked for
Now I've managed to negotiate TLS 1.3 with https://enabled.tls13.com/ when
using boringssl.
Jay Satiro [Tue, 8 Nov 2016 02:51:27 +0000 (21:51 -0500)]
vtls: Fail on unrecognized param for CURLOPT_SSLVERSION
- Fix GnuTLS code for CURL_SSLVERSION_TLSv1_2 that broke when the
TLS 1.3 support was added in
6ad3add .
- Homogenize across code for all backends the error message when TLS 1.3
is not available to "<backend>: TLS 1.3 is not yet supported".
- Return an error when a user-specified ssl version is unrecognized.
---
Prior to this change our code for some of the backends used the
'default' label in the switch statement (ie ver unrecognized) for
ssl.version and treated it the same as CURL_SSLVERSION_DEFAULT.
Bug: https://curl.haxx.se/mail/lib-2016-11/0048.html
Reported-by: Kamil Dudka
Isaac Boukris [Wed, 9 Nov 2016 13:37:34 +0000 (15:37 +0200)]
SPNEGO: Fix memory leak when authentication fails
If SPNEGO fails, cleanup the negotiate handle right away.
Fixes #1115
Signed-off-by: Isaac Boukris <iboukris@gmail.com>
Reported-by: ashman-p
Daniel Stenberg [Wed, 9 Nov 2016 08:56:13 +0000 (09:56 +0100)]
CODE_STYLE.md: link to INTERNALS.md correctly
Daniel Stenberg [Wed, 9 Nov 2016 08:15:58 +0000 (09:15 +0100)]
bump: next version will be 7.52.0
Daniel Stenberg [Wed, 9 Nov 2016 08:14:44 +0000 (09:14 +0100)]
RELEASE-NOTES: synced with
dfcdaaba371e9a3
Daniel Stenberg [Tue, 8 Nov 2016 22:00:43 +0000 (23:00 +0100)]
examples/fileupload.c: fclose the file as well
Daniel Stenberg [Tue, 8 Nov 2016 14:30:33 +0000 (15:30 +0100)]
printf: fix ".*f" handling
It would always use precision 1 instead of reading it from the argument
list as intended.
Reported-by: Ray Satiro
Bug: #1113
Daniel Stenberg [Tue, 8 Nov 2016 14:28:04 +0000 (15:28 +0100)]
curl_formadd.3: *_FILECONTENT and *_FILE need the file to be kept
Reported-by: Frank Gevaerts
Kamil Dudka [Mon, 7 Nov 2016 14:27:36 +0000 (15:27 +0100)]
nss: silence warning 'SSL_NEXT_PROTO_EARLY_VALUE not handled in switch'
... with nss-3.26.0 and newer
Reported-by: Daniel Stenberg
Daniel Stenberg [Mon, 7 Nov 2016 13:38:59 +0000 (14:38 +0100)]
openssl: initial TLS 1.3 adaptions
BoringSSL supports TLSv1.3 already, but these changes don't seem to be anough
to get it working.
Daniel Stenberg [Mon, 7 Nov 2016 11:54:40 +0000 (12:54 +0100)]
ssh: check md5 fingerprints case insensitively (regression)
Revert the change from
ce8d09483eea but use the new function
Reported-by: Kamil Dudka
Bug: https://github.com/curl/curl/commit/
ce8d09483eea2fcb1b50e323e1a8ed1f3613b2e3 #commitcomment-
19666146
Kamil Dudka [Thu, 27 Oct 2016 12:58:43 +0000 (14:58 +0200)]
curl: introduce the --tlsv1.3 option to force TLS 1.3
Fully implemented with the NSS backend only for now.
Reviewed-by: Ray Satiro
Kamil Dudka [Thu, 27 Oct 2016 12:57:11 +0000 (14:57 +0200)]
vtls: support TLS 1.3 via CURL_SSLVERSION_TLSv1_3
Fully implemented with the NSS backend only for now.
Reviewed-by: Ray Satiro
Kamil Dudka [Thu, 27 Oct 2016 12:27:25 +0000 (14:27 +0200)]
nss: map CURL_SSLVERSION_DEFAULT to NSS default
... but make sure we use at least TLSv1.0 according to libcurl API
Reported-by: Cure53
Reviewed-by: Ray Satiro
Daniel Stenberg [Mon, 7 Nov 2016 09:36:23 +0000 (10:36 +0100)]
s/cURL/curl
We're mostly saying just "curl" in lower case these days so here's a big
cleanup to adapt to this reality. A few instances are left as the
project could still formally be considered called cURL.
Tatsuhiro Tsujikawa [Sun, 30 Oct 2016 10:04:03 +0000 (19:04 +0900)]
http2: Don't send header fields prohibited by HTTP/2 spec
Previously, we just ignored "Connection" header field. But HTTP/2
specification actually prohibits few more header fields. This commit
ignores all of them so that we don't send these bad header fields.
Bug: https://curl.haxx.se/mail/archive-2016-10/0033.html
Reported-by: Ricki Hirner
Closes https://github.com/curl/curl/pull/1092
Daniel Stenberg [Sun, 6 Nov 2016 15:02:16 +0000 (16:02 +0100)]
curl.1: explain the SMTP data expected for -T
Fixes #1107
Reported-by: Adam Piggott
Peter Wu [Sun, 30 Oct 2016 23:45:17 +0000 (00:45 +0100)]
cmake: disable poll for macOS
Mirrors the autotools behavior introduced with curl-7_50_3
-83-ga34c7ce .
Fixes #1089
Jay Satiro [Sun, 6 Nov 2016 03:05:52 +0000 (23:05 -0400)]
easy: Initialize info variables on easy init and duphandle
- Call Curl_initinfo on init and duphandle.
Prior to this change the statistical and informational variables were
simply zeroed by calloc on easy init and duphandle. While zero is the
correct default value for almost all info variables, there is one where
it isn't (filetime initializes to -1).
Bug: https://github.com/curl/curl/issues/1103
Reported-by: Neal Poole
Mauro Rappa [Fri, 4 Nov 2016 14:45:49 +0000 (14:45 +0000)]
curl -w: added more decimal digits to timing counters
Now showing microsecond resolution.
Closes #1106
Jakub Zakrzewski [Fri, 4 Nov 2016 19:21:48 +0000 (20:21 +0100)]
dist: add CMakeLists.txt to the tarball
Daniel Stenberg [Fri, 4 Nov 2016 10:13:16 +0000 (11:13 +0100)]
mbedtls: fix build with mbedtls versions < 2.4.0
Regression added in
62a8095e714
Reported-by: Tony Kelman
Discussed in #1087
Daniel Stenberg [Thu, 3 Nov 2016 22:37:59 +0000 (23:37 +0100)]
configure: verify that compiler groks -Werror=partial-availability
Reported-by: bemoody
Fixes #1104
Daniel Stenberg [Thu, 3 Nov 2016 11:44:38 +0000 (12:44 +0100)]
docs: shorten and simplify the top comment in multi-uv.c
and change URL to use https
Andrei Sedoi [Wed, 2 Nov 2016 10:46:54 +0000 (10:46 +0000)]
docs: handle CURL_POLL_INOUT in multi-uv example
Andrei Sedoi [Wed, 2 Nov 2016 09:00:20 +0000 (09:00 +0000)]
docs: multi-uv: don't use CURLMsg after cleanup
Andrei Sedoi [Wed, 2 Nov 2016 08:48:32 +0000 (08:48 +0000)]
docs: remove unused variables in multi-uv example
Daniel Stenberg [Thu, 3 Nov 2016 09:08:26 +0000 (10:08 +0100)]
bump: start working on 7.51.1
Daniel Stenberg [Wed, 2 Nov 2016 13:45:24 +0000 (14:45 +0100)]
winbuild: remove strcase.obj from curl build
Reported-by: Bruce Stephens
Fixes #1098
Dan Fandrich [Wed, 2 Nov 2016 08:11:50 +0000 (09:11 +0100)]
msvc: removed a straggling reference to strequal.c
Follow-up to
502acba2
Daniel Stenberg [Tue, 1 Nov 2016 07:45:14 +0000 (08:45 +0100)]
THANKS: synced with 7.51.0
Daniel Stenberg [Tue, 1 Nov 2016 07:43:14 +0000 (08:43 +0100)]
RELEASE-NOTES: 7.51.0
Daniel Stenberg [Wed, 2 Nov 2016 06:22:27 +0000 (07:22 +0100)]
ftp_done: don't clobber the passed in error code
Coverity CID
1374359 pointed out the unused result value.
Daniel Stenberg [Wed, 2 Nov 2016 06:18:24 +0000 (07:18 +0100)]
ftp: remove dead code in ftp_done
Coverity CID
1374358
Jay Satiro [Wed, 2 Nov 2016 01:31:10 +0000 (21:31 -0400)]
generate.bat: Include include/curl in libcurl VS projects
.. because including those headers helps Visual Studio's Intellisense.
Jay Satiro [Wed, 2 Nov 2016 01:29:44 +0000 (21:29 -0400)]
generate.bat: Remove strcase.[ch] from curl tool VS projects
..because they're no longer needed in the tool build. strcase is still
built by the libcurl project and exports curl_str(n)equal which is used
by the curl tool.
Bug: https://github.com/curl/curl/commit/
9363f1a #all_commit_comments
Daniel Stenberg [Tue, 1 Nov 2016 23:08:36 +0000 (00:08 +0100)]
metalink: simplify the hex parsing function
... and now it avoids using the libcurl toupper() function
Michael Kaufmann [Tue, 1 Nov 2016 19:39:13 +0000 (20:39 +0100)]
file: fix compiler warning
follow-up to
46133aa5
Dan Fandrich [Tue, 1 Nov 2016 10:44:11 +0000 (11:44 +0100)]
strcase: fixed Metalink builds by redefining checkprefix()
...to use the public function curl_strnequal(). This isn't ideal because
it adds extra overhead to any internal calls to checkprefix.
follow-up to
95bd2b3e
Daniel Stenberg [Tue, 1 Nov 2016 09:27:40 +0000 (10:27 +0100)]
curl.1: typo
Daniel Stenberg [Tue, 1 Nov 2016 09:24:49 +0000 (10:24 +0100)]
curl.1: expand on how multiple uses of -o looks
Suggested-by: Dan Jacobson
Issue: https://github.com/curl/curl/issues/1097
Daniel Stenberg [Mon, 31 Oct 2016 22:49:54 +0000 (23:49 +0100)]
tests/util: get a private strncasecompare clone
... since the curlx_* code no longer provides one and we don't link
libcurl to these test servers.
Daniel Stenberg [Mon, 31 Oct 2016 20:49:38 +0000 (21:49 +0100)]
strcase: make the tool use curl_str[n]equal instead
As they are after all part of the public API. Saves space and reduces
complexity. Remove the strcase defines from the curlx_ family.
Suggested-by: Dan Fandrich
Idea: https://curl.haxx.se/mail/lib-2016-10/0136.html
Kamil Dudka [Mon, 31 Oct 2016 16:33:46 +0000 (17:33 +0100)]
gskit, nss: do not include strequal.h
follow-up to
811a693b80
Dan Fandrich [Mon, 31 Oct 2016 14:17:35 +0000 (15:17 +0100)]
strcasecompare: include curl.h in strcase.c
This should fix the "warning: 'curl_strequal' redeclared without
dllimport attribute: previous dllimport ignored" message and subsequent
link error on Windows because of the missing CURL_EXTERN on the
prototype.
Daniel Stenberg [Mon, 31 Oct 2016 14:19:26 +0000 (15:19 +0100)]
strcase: fix the remaining rawstr users
Daniel Stenberg [Mon, 31 Oct 2016 12:35:09 +0000 (13:35 +0100)]
msvc builds: s/rawstr/strcase
Follow-up to
811a693b
Dan Fandrich [Mon, 31 Oct 2016 11:51:45 +0000 (12:51 +0100)]
strcasecompare: replaced remaining rawstr.h with strcase.h
This is a followup to commit
811a693b
Marcel Raad [Mon, 31 Oct 2016 11:48:48 +0000 (12:48 +0100)]
digest_sspi: fix include
Fix compile break from
811a693b80
Dan Fandrich [Mon, 31 Oct 2016 11:42:47 +0000 (12:42 +0100)]
libauthretry: use the external function curl_strequal
The internal version strcasecompare isn't available outside libcurl
Daniel Stenberg [Mon, 31 Oct 2016 09:50:32 +0000 (10:50 +0100)]
RELEASE-NOTES: synced with
d14538d2501ef0da
Daniel Stenberg [Mon, 31 Oct 2016 09:19:22 +0000 (10:19 +0100)]
configure: raise the default minimum version for macos to 10.8
follow-up to
4f8d0b6f02aa7043 . Since the darwinssl code breaks
otherwise. If you build without darwinssl 10.5 works fine.
Daniel Stenberg [Mon, 31 Oct 2016 08:53:34 +0000 (09:53 +0100)]
unit1301: keep testing curl_strequal
as that is still part of the API, fix from
8fe4bd084412f30
Daniel Stenberg [Mon, 31 Oct 2016 08:50:41 +0000 (09:50 +0100)]
ldap: fix include
Fix bug from
811a693b80
Daniel Stenberg [Mon, 31 Oct 2016 08:49:50 +0000 (09:49 +0100)]
url: remove unconditional idn2.h include
Mistake brought by
9c91ec778104a
Daniel Stenberg [Mon, 31 Oct 2016 08:45:17 +0000 (09:45 +0100)]
curl_strequal: part of public API/ABI, needs to be kept
These two public functions have been mentioned as deprecated since a
very long time but since they are still part of the API and ABI we need
to keep them around.
Daniel Stenberg [Mon, 31 Oct 2016 08:37:30 +0000 (09:37 +0100)]
strcase: s/strequal/strcasecompare
some more follow-ups to
811a693b80
Daniel Stenberg [Mon, 31 Oct 2016 08:30:36 +0000 (09:30 +0100)]
ldap: fix strcase use
follow-up to
811a693b80
Daniel Stenberg [Mon, 31 Oct 2016 07:35:08 +0000 (08:35 +0100)]
test165: adapted to the libidn2 use and IDNA2008 fix
Daniel Stenberg [Tue, 27 Sep 2016 15:36:19 +0000 (17:36 +0200)]
cookie: replace use of fgets() with custom version
... that will ignore lines that are too long to fit in the buffer.
CVE-2016-8615
Bug: https://curl.haxx.se/docs/adv_20161102A.html
Reported-by: Cure53