Daniel Stenberg
5781e3653e
gen: support 'single' to make an individual page man page
2016-11-16 11:41:02 +01:00
Daniel Stenberg
41b1f649bf
cmdline-docs: more options converted over
2016-11-16 10:42:51 +01:00
Daniel Stenberg
81e61cda39
gen: support 'redirect'
...
... and warn for too long --help lines
2016-11-16 10:42:50 +01:00
Daniel Stenberg
1ef1f10cab
cmdline/gen: replace options in texts better
2016-11-16 08:23:36 +01:00
Jay Satiro
b65f79d9e8
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
2016-11-16 02:16:10 -05:00
Jay Satiro
03d707fc5f
tool_help: Clarify --dump-header only writes received headers
2016-11-16 01:52:01 -05:00
Jay Satiro
7f439f1652
curl.1: Clarify --dump-header only writes received headers
2016-11-16 01:40:23 -05:00
Alex Chan
771f3f22dd
docs: Spelling fixes
2016-11-15 15:41:45 +01:00
Kamil Dudka
cfd69c1339
docs: the next release will be 7.52.0
2016-11-15 12:21:00 +01:00
Daniel Stenberg
b8c35f40f9
cmdline-opts: support generating the --help output
2016-11-15 09:08:50 +01:00
David Schweikert
7c9b9add6f
darwinssl: fix SSL client certificate not found on MacOS Sierra
...
Reviewed-by: Nick Zitzmann
Closes #1105
2016-11-15 08:41:32 +01:00
Daniel Stenberg
0744506cd2
curl: add --fail-early to help output
...
Fixes test 1139 failures
Follow-up to f82bbe01c8
2016-11-15 08:32:53 +01:00
Daniel Stenberg
8c630ef059
glob: fix [a-c] globbing regression
...
Brought in ee4f76606c
Added test case 1280 to verify
Reported-by: Dave Reisner
Bug: ee4f76606c (commitcomment-19823146)
2016-11-15 08:22:54 +01:00
Daniel Stenberg
f82bbe01c8
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
2016-11-14 08:35:40 +01:00
Daniel Stenberg
f682156a4f
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
2016-11-14 08:23:52 +01:00
Daniel Stenberg
050aa80309
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.
2016-11-13 23:40:12 +01:00
Daniel Stenberg
ebf985c159
time_t fix: follow-up to de4de4e3c7
...
Blah, I accidentally wrote size_t instead of time_t for two variables.
Reported-by: Dave Reisner
2016-11-13 23:09:45 +01:00
Daniel Stenberg
de4de4e3c7
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.
2016-11-12 13:32:21 +01:00
Dan Fandrich
56bb7b1a3c
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.
2016-11-12 12:37:24 +01:00
Daniel Stenberg
ff662f1c3a
RELEASE-NOTES: synced with 346340808c
2016-11-12 00:09:35 +01:00
Daniel Stenberg
346340808c
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
2016-11-11 17:14:45 +01:00
Daniel Stenberg
8c15e0de6f
test558: adapt to 0649433da
2016-11-11 15:32:07 +01:00
Daniel Stenberg
ddefc056b6
openssl: make sure to fail in the unlikely event that PRNG seeding fails
2016-11-11 14:16:31 +01:00
Daniel Stenberg
942c952db6
openssl: avoid unnecessary seeding if already done
...
1.1.0+ does more of this by itself so we can avoid extra processing this
way.
2016-11-11 13:54:16 +01:00
Daniel Stenberg
f9de7c405f
openssl: RAND_status always exists in OpenSSL >= 0.9.7
...
and remove RAND_screen from configure since nothing is using that
function
2016-11-11 13:44:09 +01:00
Daniel Stenberg
cbec00d914
Curl_pgrsUpdate: use dedicated function for time passed
2016-11-11 11:02:02 +01:00
Daniel Stenberg
0649433da5
realloc: use Curl_saferealloc to avoid common mistakes
...
Discussed: https://curl.haxx.se/mail/lib-2016-11/0087.html
2016-11-11 10:03:48 +01:00
Daniel Hwang
cdfda3ee82
curl: Add --retry-connrefused
...
to consider ECONNREFUSED as a transient error.
Closes #1064
2016-11-11 10:00:54 +01:00
Daniel Stenberg
ea80a2dcfc
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.
2016-11-10 11:16:25 +01:00
Jay Satiro
f43b7b6cb6
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
2016-11-09 22:08:49 -05:00
Isaac Boukris
46f906a1b0
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
2016-11-09 15:02:02 +01:00
Daniel Stenberg
1299df6868
CODE_STYLE.md: link to INTERNALS.md correctly
2016-11-09 09:56:13 +01:00
Daniel Stenberg
397abc8b44
bump: next version will be 7.52.0
2016-11-09 09:15:58 +01:00
Daniel Stenberg
de39e8973f
RELEASE-NOTES: synced with dfcdaaba37
2016-11-09 09:14:44 +01:00
Daniel Stenberg
dfcdaaba37
examples/fileupload.c: fclose the file as well
2016-11-08 23:00:43 +01:00
Daniel Stenberg
5dd1b65f79
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
2016-11-08 15:30:33 +01:00
Daniel Stenberg
c2bc47ddb8
curl_formadd.3: *_FILECONTENT and *_FILE need the file to be kept
...
Reported-by: Frank Gevaerts
2016-11-08 15:28:04 +01:00
Kamil Dudka
5e6c04f913
nss: silence warning 'SSL_NEXT_PROTO_EARLY_VALUE not handled in switch'
...
... with nss-3.26.0 and newer
Reported-by: Daniel Stenberg
2016-11-07 15:40:32 +01:00
Daniel Stenberg
9e8b0a283f
openssl: initial TLS 1.3 adaptions
...
BoringSSL supports TLSv1.3 already, but these changes don't seem to be anough
to get it working.
2016-11-07 14:38:59 +01:00
Daniel Stenberg
50aded1cd4
ssh: check md5 fingerprints case insensitively (regression)
...
Revert the change from ce8d09483e
but use the new function
Reported-by: Kamil Dudka
Bug: ce8d09483e (commitcomment-19666146)
2016-11-07 12:54:40 +01:00
Kamil Dudka
a110a03b43
curl: introduce the --tlsv1.3 option to force TLS 1.3
...
Fully implemented with the NSS backend only for now.
Reviewed-by: Ray Satiro
2016-11-07 12:07:11 +01:00
Kamil Dudka
6ad3add606
vtls: support TLS 1.3 via CURL_SSLVERSION_TLSv1_3
...
Fully implemented with the NSS backend only for now.
Reviewed-by: Ray Satiro
2016-11-07 11:52:07 +01:00
Kamil Dudka
5d45ced7a4
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
2016-11-07 11:51:33 +01:00
Daniel Stenberg
27302abb94
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.
2016-11-07 10:36:23 +01:00
Tatsuhiro Tsujikawa
0269f6446d
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
2016-11-07 03:20:21 -05:00
Daniel Stenberg
677d8b3fec
curl.1: explain the SMTP data expected for -T
...
Fixes #1107
Reported-by: Adam Piggott
2016-11-07 08:33:02 +01:00
Peter Wu
6aa9cfa2b9
cmake: disable poll for macOS
...
Mirrors the autotools behavior introduced with curl-7_50_3-83-ga34c7ce.
Fixes #1089
2016-11-06 15:16:52 +01:00
Jay Satiro
4564636781
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
2016-11-05 23:06:28 -04:00
Mauro Rappa
ebeffe81d8
curl -w: added more decimal digits to timing counters
...
Now showing microsecond resolution.
Closes #1106
2016-11-05 12:50:15 +01:00
Jakub Zakrzewski
8ed52bde06
dist: add CMakeLists.txt to the tarball
2016-11-04 20:21:48 +01:00