]> granicus.if.org Git - curl/log
curl
6 years agoSECURITY: distros' max embargo time is 14 days now
Daniel Stenberg [Fri, 9 Mar 2018 20:42:36 +0000 (21:42 +0100)]
SECURITY: distros' max embargo time is 14 days now

6 years agocurl tool: accept --compressed also if Brotli is enabled and zlib is not.
Patrick Monnerat [Thu, 8 Mar 2018 00:39:29 +0000 (01:39 +0100)]
curl tool: accept --compressed also if Brotli is enabled and zlib is not.

6 years agoTHANKS + mailmap: remove duplicates, fixup full names
Daniel Stenberg [Mon, 5 Mar 2018 10:48:41 +0000 (11:48 +0100)]
THANKS + mailmap: remove duplicates, fixup full names

6 years agoWolfSSL: adding TLSv1.3
sergii.kavunenko [Thu, 1 Mar 2018 18:10:36 +0000 (20:10 +0200)]
WolfSSL: adding TLSv1.3

Closes #2349

6 years agoRELEASE-NOTES/THANKS: synced with cc1d4c505
Daniel Stenberg [Sun, 4 Mar 2018 22:19:38 +0000 (23:19 +0100)]
RELEASE-NOTES/THANKS: synced with cc1d4c505

6 years agowinbuild: prefer documented zlib library names
richardthe3rd [Fri, 2 Mar 2018 22:13:42 +0000 (22:13 +0000)]
winbuild: prefer documented zlib library names

Check for existence of import and static libraries with documented names
and use them if they do. Fallback to previous names.

According to
https://github.com/madler/zlib/blob/master/win32/README-WIN32.txt on
Windows, the names of the import library is "zdll.lib" and static
library is "zlib.lib".

closes #2354

6 years agokrb5: use nondeprecated functions
Marcel Raad [Sat, 3 Mar 2018 19:25:24 +0000 (20:25 +0100)]
krb5: use nondeprecated functions

gss_seal/gss_unseal have been deprecated in favor of
gss_wrap/gss_unwrap with GSS-API v2 from January 1997 [1]. The first
version of "The Kerberos Version 5 GSS-API Mechanism" [2] from June
1996 already says "GSS_Wrap() (formerly GSS_Seal())" and
"GSS_Unwrap() (formerly GSS_Unseal())".

Use the nondeprecated functions to avoid deprecation warnings.

[1] https://tools.ietf.org/html/rfc2078
[2] https://tools.ietf.org/html/rfc1964

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

6 years agocurl.1: mention how to add numerical IP addresses in NO_PROXY
Daniel Stenberg [Sun, 4 Mar 2018 18:57:43 +0000 (19:57 +0100)]
curl.1: mention how to add numerical IP addresses in NO_PROXY

6 years agoCURLOPT_NOPROXY.3: mention how to list numerical IPv6 addresses
Daniel Stenberg [Sat, 3 Mar 2018 17:28:07 +0000 (18:28 +0100)]
CURLOPT_NOPROXY.3: mention how to list numerical IPv6 addresses

6 years agoNO_PROXY: fix for IPv6 numericals in the URL
Daniel Stenberg [Sat, 3 Mar 2018 13:12:35 +0000 (14:12 +0100)]
NO_PROXY: fix for IPv6 numericals in the URL

Added test 1265 that verifies.

Reported-by: steelman on github
Fixes #2353
Closes #2355

6 years agobuild: get CFLAGS (including -werror) used for examples and tests
Daniel Stenberg [Fri, 23 Feb 2018 22:35:23 +0000 (23:35 +0100)]
build: get CFLAGS (including -werror) used for examples and tests

... so that the CI and more detects compiler warnings/errors properly!

Closes #2337

6 years agocurl_ctype: fix macro redefinition warnings
Marcel Raad [Sat, 3 Mar 2018 18:52:43 +0000 (19:52 +0100)]
curl_ctype: fix macro redefinition warnings

On MinGW and Cygwin, GCC and clang have been complaining about macro
redefinitions since 4272a0b0fc49a1ac0ceab5c4a365c9f6ab8bf8e2. Fix this
by undefining the macros before redefining them as suggested in
https://github.com/curl/curl/pull/2269.

Suggested-by: Daniel Stenberg
6 years agounit1307: proper cleanup on OOM to fix torture tests
Dan Fandrich [Fri, 2 Mar 2018 19:51:59 +0000 (20:51 +0100)]
unit1307: proper cleanup on OOM to fix torture tests

6 years agounit1309: fix warning on Windows x64
Marcel Raad [Sun, 25 Feb 2018 20:16:32 +0000 (21:16 +0100)]
unit1309: fix warning on Windows x64

When targeting x64, MinGW-w64 complains about conversions between
32-bit long and 64-bit pointers. Fix this by reusing the
GNUTLS_POINTER_TO_SOCKET_CAST / GNUTLS_SOCKET_TO_POINTER_CAST logic
from gtls.c, moving it to warnless.h as CURLX_POINTER_TO_INTEGER_CAST /
CURLX_INTEGER_TO_POINTER_CAST.

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

6 years agotravis: update compiler versions
Marcel Raad [Tue, 27 Feb 2018 09:14:32 +0000 (10:14 +0100)]
travis: update compiler versions

Update clang to version 3.9 and GCC to version 6.

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

6 years agodocs/MANUAL: formfind.pl is not accessible on the site anymore
Daniel Stenberg [Mon, 26 Feb 2018 19:12:23 +0000 (20:12 +0100)]
docs/MANUAL: formfind.pl is not accessible on the site anymore

Fixes #2342

6 years agocurl-openssl.m4: Fix version check for OpenSSL 1.1.1
Jay Satiro [Sat, 24 Feb 2018 08:18:15 +0000 (03:18 -0500)]
curl-openssl.m4: Fix version check for OpenSSL 1.1.1

- Add OpenSSL 1.1.1 to the header/library version lists.

- Detect OpenSSL 1.1.1 library using its function ERR_clear_last_mark,
  which was added in that version.

Prior to this change an erroneous header/library mismatch was caused by
lack of OpenSSL 1.1.1 detection. I tested using openssl-1.1.1-pre1.

6 years agolib655: silence compiler warning
Viktor Szakats [Fri, 23 Feb 2018 23:57:15 +0000 (23:57 +0000)]
lib655: silence compiler warning

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

6 years agospelling fixes
Viktor Szakats [Fri, 23 Feb 2018 23:29:01 +0000 (23:29 +0000)]
spelling fixes

Detected using the `codespell` tool.

Also contains one URL protocol upgrade.

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

6 years agoprojects/README: remove reference to dead IDN link/package
Daniel Stenberg [Fri, 23 Feb 2018 23:00:25 +0000 (00:00 +0100)]
projects/README: remove reference to dead IDN link/package

Reported-by: Stefan Kanthak and Rod Widdowson
Fixes #2325

6 years agowinbuild: Use macros for the names of some build utilities
Rod Widdowson [Fri, 23 Feb 2018 20:17:09 +0000 (15:17 -0500)]
winbuild: Use macros for the names of some build utilities

- Add macros to the top of the makefile for rc and mt utilities so that
  it is easier to change their locations.

Bug: https://curl.haxx.se/mail/lib-2018-02/0075.html
Reported-by: Stefan Kanthak
Closes https://github.com/curl/curl/issues/2329

6 years agoTODO: remove "sha-256 digest", added in 2b5b37cb9109e7c2
Daniel Stenberg [Fri, 23 Feb 2018 13:40:10 +0000 (14:40 +0100)]
TODO: remove "sha-256 digest", added in 2b5b37cb9109e7c2

6 years agocurl_share_setopt.3: connection cache is shared within multi handles
Daniel Stenberg [Fri, 23 Feb 2018 11:52:22 +0000 (12:52 +0100)]
curl_share_setopt.3: connection cache is shared within multi handles

6 years agowinbuild: Use CALL to run batch scripts
Rod Widdowson [Thu, 22 Feb 2018 15:25:18 +0000 (15:25 +0000)]
winbuild: Use CALL to run batch scripts

Co-authored-by: Stefan Kanthak
Closes https://github.com/curl/curl/issues/2330
Closes https://github.com/curl/curl/pull/2331

6 years agoos400: add curl_resolver_start_callback type to ILE/RPG binding
Patrick Monnerat [Thu, 22 Feb 2018 11:57:31 +0000 (12:57 +0100)]
os400: add curl_resolver_start_callback type to ILE/RPG binding

6 years agoform.d: rephrased somewhat, added two example command lines
Daniel Stenberg [Thu, 22 Feb 2018 07:28:05 +0000 (08:28 +0100)]
form.d: rephrased somewhat, added two example command lines

6 years agourl: Add option CURLOPT_RESOLVER_START_FUNCTION
Francisco Sedano [Wed, 14 Feb 2018 17:20:43 +0000 (17:20 +0000)]
url: Add option CURLOPT_RESOLVER_START_FUNCTION

- Add new option CURLOPT_RESOLVER_START_FUNCTION to set a callback that
  will be called every time before a new resolve request is started
  (ie before a host is resolved) with a pointer to backend-specific
  resolver data. Currently this is only useful for ares.

- Add new option CURLOPT_RESOLVER_START_DATA to set a user pointer to
  pass to the resolver start callback.

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

6 years agolib: CURLOPT_HAPPY_EYEBALLS_TIMEOUT => CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS
Jay Satiro [Wed, 21 Feb 2018 20:16:50 +0000 (15:16 -0500)]
lib: CURLOPT_HAPPY_EYEBALLS_TIMEOUT => CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS

- In keeping with the naming of our other connect timeout options rename
  CURLOPT_HAPPY_EYEBALLS_TIMEOUT to CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS.

This change adds the _MS suffix since the option expects milliseconds.
This is more intuitive for our users since other connect timeout options
that expect milliseconds use _MS such as CURLOPT_TIMEOUT_MS,
CURLOPT_CONNECTTIMEOUT_MS, CURLOPT_ACCEPTTIMEOUT_MS.

The tool option already uses an -ms suffix, --happy-eyeballs-timeout-ms.

Follow-up to 2427d94 which added the lib and tool option yesterday.

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

6 years agosasl: prefer PLAIN mechanism over LOGIN
Patrick Monnerat [Wed, 21 Feb 2018 16:42:25 +0000 (17:42 +0100)]
sasl: prefer PLAIN mechanism over LOGIN

SASL PLAIN is a standard, LOGIN only a draft. The LOGIN draft says
PLAIN should be used instead if available.

6 years agoRELEASE-NOTES: synced with 2427d94c6
Daniel Stenberg [Tue, 20 Feb 2018 23:15:34 +0000 (00:15 +0100)]
RELEASE-NOTES: synced with 2427d94c6

6 years agourl: Add option CURLOPT_HAPPY_EYEBALLS_TIMEOUT
Anders Bakken [Wed, 31 Jan 2018 00:33:51 +0000 (16:33 -0800)]
url: Add option CURLOPT_HAPPY_EYEBALLS_TIMEOUT

- Add new option CURLOPT_HAPPY_EYEBALLS_TIMEOUT to set libcurl's happy
  eyeball timeout value.

- Add new optval macro CURL_HET_DEFAULT to represent the default happy
  eyeballs timeout value (currently 200 ms).

- Add new tool option --happy-eyeballs-timeout-ms to expose
  CURLOPT_HAPPY_EYEBALLS_TIMEOUT. The -ms suffix is used because the
  other -timeout options in the tool expect seconds not milliseconds.

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

6 years agohostip: fix 'potentially uninitialized variable' warning
Jay Satiro [Tue, 20 Feb 2018 19:29:50 +0000 (14:29 -0500)]
hostip: fix 'potentially uninitialized variable' warning

Follow-up to 50d1b33.

Caught by AppVeyor.

6 years agoTODO: warning if curl version is not in sync with libcurl version
Daniel Stenberg [Tue, 20 Feb 2018 10:17:52 +0000 (11:17 +0100)]
TODO: warning if curl version is not in sync with libcurl version

6 years agoCURLOPT_RESOLVE: Add support for multiple IP addresses per entry
Anders Bakken [Wed, 31 Jan 2018 00:33:51 +0000 (16:33 -0800)]
CURLOPT_RESOLVE: Add support for multiple IP addresses per entry

This enables users to preresolve but still take advantage of happy
eyeballs and trying multiple addresses if some are not connecting.

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

6 years agoexamples/sftpuploadresume: resume upload via CURLOPT_APPEND
Sergio Borghese [Tue, 20 Feb 2018 08:27:41 +0000 (09:27 +0100)]
examples/sftpuploadresume: resume upload via CURLOPT_APPEND

URL: https://curl.haxx.se/mail/lib-2018-02/0072.html

6 years agocurl --version: show PSL if the run-time lib has it enabled
Daniel Stenberg [Sun, 18 Feb 2018 22:09:24 +0000 (23:09 +0100)]
curl --version: show PSL if the run-time lib has it enabled

... not of the #define was set at build-time!

6 years agoTODO: "Support in-memory certs/ca certs/keys"
Daniel Stenberg [Sun, 18 Feb 2018 21:45:17 +0000 (22:45 +0100)]
TODO: "Support in-memory certs/ca certs/keys"

removed SSLKEYLOGFILE support (fixed)

removed "consider SSL patches" (outdated)

Closes #2310

6 years agoCURLOPT_HEADER.3: clarify problems with different data sizes
Daniel Stenberg [Fri, 16 Feb 2018 10:23:12 +0000 (11:23 +0100)]
CURLOPT_HEADER.3: clarify problems with different data sizes

6 years agotest1556: verify >16KB headers to the header callback
Daniel Stenberg [Fri, 16 Feb 2018 09:12:46 +0000 (10:12 +0100)]
test1556: verify >16KB headers to the header callback

6 years agoheader callback: don't chop headers into smaller pieces
Daniel Stenberg [Fri, 16 Feb 2018 09:23:44 +0000 (10:23 +0100)]
header callback: don't chop headers into smaller pieces

Reported-by: Guido Berhoerster
Fixes #2314
Closes #2316

6 years agotest1154: verify that long HTTP headers get rejected
Daniel Stenberg [Thu, 15 Feb 2018 22:33:49 +0000 (23:33 +0100)]
test1154: verify that long HTTP headers get rejected

6 years agohttp: fix the max header length detection logic
Daniel Stenberg [Fri, 16 Feb 2018 08:49:33 +0000 (09:49 +0100)]
http: fix the max header length detection logic

Previously, it would only check for max length if the existing alloc
buffer was to small to fit it, which often would make the header still
get used.

Reported-by: Guido Berhoerster
Bug: https://curl.haxx.se/mail/lib-2018-02/0056.html

Closes #2315

6 years agoCURLOPT_HEADERFUNCTION.3: fix typo from d939226813
Daniel Stenberg [Fri, 16 Feb 2018 15:25:18 +0000 (16:25 +0100)]
CURLOPT_HEADERFUNCTION.3: fix typo from d939226813

Reported-by: Erik Johansson
Bug: https://github.com/curl/curl/commit/d9392268131c1b8d18dec3fa30e0bded833a5db7#commitcomment-27607495

6 years agoCURLOPT_HEADERFUNCTION.3: mention folded headers
Daniel Stenberg [Fri, 16 Feb 2018 11:11:23 +0000 (12:11 +0100)]
CURLOPT_HEADERFUNCTION.3: mention folded headers

6 years agoTODO: 1.1 Option to refuse usernames in URLs
Daniel Stenberg [Fri, 16 Feb 2018 08:39:20 +0000 (09:39 +0100)]
TODO: 1.1 Option to refuse usernames in URLs

Also expanded the CURL_REFUSE_CLEARTEXT section with more ideas.

6 years agoTODO: 1.7 Support HTTP/2 for HTTP(S) proxies
Daniel Stenberg [Fri, 16 Feb 2018 08:24:28 +0000 (09:24 +0100)]
TODO: 1.7 Support HTTP/2 for HTTP(S) proxies

6 years agossh: add two missing state names
Daniel Stenberg [Thu, 15 Feb 2018 12:40:35 +0000 (13:40 +0100)]
ssh: add two missing state names

The list of state names (used in debug builds) was out of sync in
relation to the list of states (used in all builds).

I now added an assert to make sure the sizes of the two lists match, to
aid in detecting this mistake better in the future.

Regression since c92d2e14cf, shipped in 7.58.0.

Reported-by: Somnath Kundu
Fixes #2312
Closes #2313

6 years agoRevert "KNOWN_BUGS: 2.5 curl should not offer "ALPN: h2" when using https-proxy"
Daniel Stenberg [Thu, 15 Feb 2018 21:47:49 +0000 (22:47 +0100)]
Revert "KNOWN_BUGS: 2.5 curl should not offer "ALPN: h2" when using https-proxy"

This reverts commit de9fac00c40db321d44fa6fbab6eb62ec4c83998.

Reported-by: Jay Satiro
6 years agonon-ascii: fix implicit declaration warning
Jay Satiro [Thu, 15 Feb 2018 20:52:41 +0000 (15:52 -0500)]
non-ascii: fix implicit declaration warning

Follow-up to b46cfbc.

Caught by Travis CI.

6 years agotravis: add build with iconv enabled
Daniel Stenberg [Thu, 7 Sep 2017 10:42:30 +0000 (12:42 +0200)]
travis: add build with iconv enabled

... to verify it builds and works fine.

Ref: https://curl.haxx.se/mail/lib-2017-09/0031.html

Closes #1872

6 years agoTODO: 18.18 retry on network is unreachable
Daniel Stenberg [Thu, 15 Feb 2018 12:52:13 +0000 (13:52 +0100)]
TODO: 18.18 retry on network is unreachable

Closes #1603

6 years agoKNOWN_BUGS: 2.5 curl should not offer "ALPN: h2" when using https-proxy
Daniel Stenberg [Thu, 15 Feb 2018 12:30:26 +0000 (13:30 +0100)]
KNOWN_BUGS: 2.5 curl should not offer "ALPN: h2" when using https-proxy

Closes #1254

6 years agonss: use PK11_CreateManagedGenericObject() if available
Kamil Dudka [Thu, 8 Feb 2018 10:23:49 +0000 (11:23 +0100)]
nss: use PK11_CreateManagedGenericObject() if available

... so that the memory allocated by applications using libcurl does not
grow per each TLS connection.

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

Closes #2297

6 years agoTODO fixed: Detect when called from within callbacks
Björn Stenberg [Sat, 10 Feb 2018 14:13:15 +0000 (15:13 +0100)]
TODO fixed: Detect when called from within callbacks

Closes #2302

6 years agoBINDINGS: fix curb link (and remove ruby-curl-multi)
Daniel Stenberg [Wed, 14 Feb 2018 13:56:05 +0000 (14:56 +0100)]
BINDINGS: fix curb link (and remove ruby-curl-multi)

Reported-by: Klaus Stein
6 years agocurl_gssapi: make sure this file too uses our *printf()
Daniel Stenberg [Tue, 13 Feb 2018 21:55:29 +0000 (22:55 +0100)]
curl_gssapi: make sure this file too uses our *printf()

6 years agolibcurl-security.3: separate file:// section
Daniel Stenberg [Tue, 13 Feb 2018 13:04:04 +0000 (14:04 +0100)]
libcurl-security.3: separate file:// section

... just to make it more apparent. Even if it repeats
some pieces of information.

6 years agolibcurl-security.3: the http://192.168.0.1/my_router_config case
Daniel Stenberg [Tue, 13 Feb 2018 12:54:11 +0000 (13:54 +0100)]
libcurl-security.3: the http://192.168.0.1/my_router_config case

Mentioned-By: Rich Moore
6 years agolibcurl-security.3: mention the URL standards problems too
Daniel Stenberg [Tue, 13 Feb 2018 11:05:43 +0000 (12:05 +0100)]
libcurl-security.3: mention the URL standards problems too

6 years agolibcurl-security.3: split out from libcurl-tutorial.3
Daniel Stenberg [Tue, 13 Feb 2018 11:02:09 +0000 (12:02 +0100)]
libcurl-security.3: split out from libcurl-tutorial.3

To make more accessible.

Merged in some new language from "URLs are dangerous things" as discussed on
the mailing list a few days ago:

Bug: https://curl.haxx.se/mail/lib-2018-02/0013.html

6 years agoRELEASE-NOTES: synced with e551910f8
Daniel Stenberg [Tue, 13 Feb 2018 08:00:35 +0000 (09:00 +0100)]
RELEASE-NOTES: synced with e551910f8

6 years agotests: new tests for http raw mode
Patrick Monnerat [Tue, 13 Feb 2018 00:44:57 +0000 (01:44 +0100)]
tests: new tests for http raw mode

Test 319 checks proper raw mode data with non-chunked gzip
transfer-encoded server data.
Test 326 checks raw mode with chunked server data.

Bug: #2303
Closes #2308

6 years agotlsauthtype.d: works only if libcurl is built with TLS-SRP support
Kamil Dudka [Mon, 12 Feb 2018 12:31:59 +0000 (13:31 +0100)]
tlsauthtype.d: works only if libcurl is built with TLS-SRP support

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

Closes #2306

6 years agosmtp: fix processing of initial dot in data
Patrick Monnerat [Mon, 12 Feb 2018 15:43:15 +0000 (16:43 +0100)]
smtp: fix processing of initial dot in data

RFC 5321 4.1.1.4 specifies the CRLF terminating the DATA command
should be taken into account when chasing the <CRLF>.<CRLF> end marker.
Thus a leading dot character in data is also subject to escaping.

Tests 911 and test server are adapted to this situation.
New tests 951 and 952 check proper handling of initial dot in data.

Closes #2304

6 years agosha256: avoid redefine
Daniel Stenberg [Mon, 12 Feb 2018 13:18:30 +0000 (14:18 +0100)]
sha256: avoid redefine

6 years agosha256: build with OpenSSL < 0.9.8 too
Douglas Mencken [Mon, 12 Feb 2018 11:19:56 +0000 (06:19 -0500)]
sha256: build with OpenSSL < 0.9.8 too

support for SHA-2 was introduced in OpenSSL 0.9.8

Closes #2305

6 years agoREADME: language fix
Bruno Grasselli [Fri, 9 Feb 2018 21:01:42 +0000 (22:01 +0100)]
README: language fix

s/off/from

Closes #2300

6 years agohttp_chunks: don't write chunks twice with CURLOPT_HTTP_TRANSFER_DECODING on
Patrick Monnerat [Mon, 12 Feb 2018 02:38:18 +0000 (03:38 +0100)]
http_chunks: don't write chunks twice with CURLOPT_HTTP_TRANSFER_DECODING on

Bug: #2303
Reported-By: Henry Roeland
6 years agoget_posix_time: only check for overflows if they can happen!
Daniel Stenberg [Fri, 9 Feb 2018 13:29:03 +0000 (14:29 +0100)]
get_posix_time: only check for overflows if they can happen!

6 years agoschannel: fix "no previous prototype" compiler warning
Michael Kaufmann [Fri, 9 Feb 2018 19:10:22 +0000 (20:10 +0100)]
schannel: fix "no previous prototype" compiler warning

6 years agocontent_encoding: Add "none" alias to "identity"
Mohammad AlSaleh [Thu, 8 Feb 2018 18:23:22 +0000 (20:23 +0200)]
content_encoding: Add "none" alias to "identity"

Some servers return a "content-encoding" header with a non-standard
"none" value.

Add "none" as an alias to "identity" as a work-around, to avoid
unrecognised content encoding type errors.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
Closes https://github.com/curl/curl/pull/2298

6 years agobuild-openssl.bat: Follow up to 648679ab8e to suppress copy/move output
Steve Holme [Thu, 8 Feb 2018 21:54:09 +0000 (21:54 +0000)]
build-openssl.bat: Follow up to 648679ab8e to suppress copy/move output

6 years agobuild-openssl.bat: Fixed incorrect move if destination build folder exists
Steve Holme [Thu, 8 Feb 2018 21:22:59 +0000 (21:22 +0000)]
build-openssl.bat: Fixed incorrect move if destination build folder exists

6 years agoschannel: fix compiler warnings
Michael Kaufmann [Wed, 7 Feb 2018 20:39:26 +0000 (21:39 +0100)]
schannel: fix compiler warnings

Closes #2296

6 years agocurl_addrinfo.c: Allow Unix Domain Sockets to compile under Windows
Steve Holme [Wed, 7 Feb 2018 21:33:57 +0000 (21:33 +0000)]
curl_addrinfo.c: Allow Unix Domain Sockets to compile under Windows

Windows 10.0.17061 SDK introduces support for Unix Domain Sockets.
Added the necessary include file to curl_addrinfo.c.

Note: The SDK (which is considered beta) has to be installed, VS 2017
project file has to be re-targeted for Windows 10.0.17061 and #define
enabled in config-win32.h.

6 years agofnmatch: optimize processing of consecutive *s and ?s pattern characters
Patrick Monnerat [Wed, 7 Feb 2018 14:01:51 +0000 (15:01 +0100)]
fnmatch: optimize processing of consecutive *s and ?s pattern characters

Reported-By: Daniel Stenberg
Fixes #2291
Closes #2293

6 years agobuild-openssl.bat/build-wolfssl.bat: Build platform is optional
Steve Holme [Tue, 6 Feb 2018 19:35:13 +0000 (19:35 +0000)]
build-openssl.bat/build-wolfssl.bat: Build platform is optional

Whilst the compiler parameter is mandatory, platform is optional as it
is automatically calculated by the :configure section.

This partially reverts commit 6d62d2c55d.

6 years agoopenssl: Don't add verify locations when verifypeer==0
Patrick Schlangen [Mon, 5 Feb 2018 16:17:15 +0000 (17:17 +0100)]
openssl: Don't add verify locations when verifypeer==0

When peer verification is disabled, calling
SSL_CTX_load_verify_locations is not necessary. Only call it when
verification is enabled to save resources and increase performance.

Closes #2290

6 years agobuild-wolfssl.bat: Extend VC15 support to include Enterprise and Professional
Steve Holme [Mon, 5 Feb 2018 21:23:51 +0000 (21:23 +0000)]
build-wolfssl.bat: Extend VC15 support to include Enterprise and Professional

...and not just the Community Edition.

6 years agobuild-openssl.bat: Extend VC15 support to include Enterprise and Professional
Steve Holme [Mon, 5 Feb 2018 21:18:35 +0000 (21:18 +0000)]
build-openssl.bat: Extend VC15 support to include Enterprise and Professional

...and not just the Community Edition.

6 years agotime-cond: fix reading the file modification time on Windows
Michael Kaufmann [Mon, 5 Feb 2018 20:57:39 +0000 (21:57 +0100)]
time-cond: fix reading the file modification time on Windows

On Windows, stat() may adjust the unix file time by a daylight saving time
offset. Avoid this by calling GetFileTime() instead.

Fixes #2164
Closes #2204

6 years agoformdata: use the mime-content type function
Daniel Stenberg [Sun, 4 Feb 2018 08:23:11 +0000 (09:23 +0100)]
formdata: use the mime-content type function

Reduce code duplication by making Curl_mime_contenttype available and
used by the formdata function. This also makes the formdata function
recognize a set of more file extensions by default.

PR #2280 brought this to my attention.

Closes #2282

6 years agogetdate: return -1 for out of range
Daniel Stenberg [Thu, 1 Feb 2018 21:23:20 +0000 (22:23 +0100)]
getdate: return -1 for out of range

...as that's how the function is documented to work.

Reported-by: Michael Kaufmann
Bug found in an autobuild with 32 bit time_t

Closes #2278

6 years agobuild: fix termios issue on android cross-compile
Ben Greear [Wed, 31 Jan 2018 22:52:05 +0000 (23:52 +0100)]
build: fix termios issue on android cross-compile

Bug: https://curl.haxx.se/mail/lib-2018-01/0122.html
Signed-off-by: Ben Greear <greearb@candelatech.com>
6 years agotime_t-fixes: remove typecasts to 'long' for info.filetime
Daniel Stenberg [Wed, 31 Jan 2018 23:24:19 +0000 (00:24 +0100)]
time_t-fixes: remove typecasts to 'long' for info.filetime

They're now wrong.

Reported-by: Michael Kaufmann
Closes #2277

6 years agocurl_setup: move the precautionary define of SIZEOF_TIME_T
Daniel Stenberg [Wed, 31 Jan 2018 22:01:01 +0000 (23:01 +0100)]
curl_setup: move the precautionary define of SIZEOF_TIME_T

... up to before it may be used for the TIME_T_MAX/MIN logic.

Reported-by: Michael Kaufmann
6 years agoparsedate: s/#if/#ifdef
Daniel Stenberg [Wed, 31 Jan 2018 21:56:00 +0000 (22:56 +0100)]
parsedate: s/#if/#ifdef

Reported-by: Michael Kaufmann
Bug: https://github.com/curl/curl/commit/1c39128d974666107fc6d9ea15f294036851f224#commitcomment-27246479

6 years agofnmatch: pattern syntax can no longer fail
Patrick Monnerat [Tue, 30 Jan 2018 19:22:17 +0000 (20:22 +0100)]
fnmatch: pattern syntax can no longer fail

Whenever an expected pattern syntax rule cannot be matched, the
character starting the rule loses its special meaning and the parsing
is resumed:
- backslash at the end of pattern string matches itself.
- Error in [:keyword:] results in set containing :\[dekorwy.

Unit test 1307 updated for this new situation.

Closes #2273

6 years agofnmatch: accept an alphanum to be followed by a non-alphanum in char set
Patrick Monnerat [Mon, 29 Jan 2018 15:21:50 +0000 (16:21 +0100)]
fnmatch: accept an alphanum to be followed by a non-alphanum in char set

Also be more tolerant about set pattern syntax.
Update unit test 1307 accordingly.

Bug: https://curl.haxx.se/mail/lib-2018-01/0114.html

6 years agofnmatch: do not match the empty string with a character set
Patrick Monnerat [Mon, 29 Jan 2018 12:01:43 +0000 (13:01 +0100)]
fnmatch: do not match the empty string with a character set

6 years agobuild: fix windows build methods for curl_ctype.c
Jay Satiro [Wed, 31 Jan 2018 00:12:25 +0000 (19:12 -0500)]
build: fix windows build methods for curl_ctype.c

- Fix winbuild and the VS project generator to treat curl_ctype.{c,h} as
  curlx files since they are required by both src and lib.

Follow-up to 4272a0b which added curl_ctype.

6 years agoprogress-bar.d: update to match implementation
Daniel Stenberg [Tue, 30 Jan 2018 22:46:09 +0000 (23:46 +0100)]
progress-bar.d: update to match implementation

... since commit 993dd5651a6

Reported-by: Martin Dreher
Bug: https://github.com/curl/curl/pull/2242#issuecomment-361059228

Closes #2271

6 years agohttp2: set DEBUG_HTTP2 to enable more HTTP/2 logging
Daniel Stenberg [Tue, 30 Jan 2018 22:19:53 +0000 (23:19 +0100)]
http2: set DEBUG_HTTP2 to enable more HTTP/2 logging

... instead of doing it unconditionally in debug builds. It cluttered up
the output a little too much.

6 years agofile: Check the return code from Curl_range and bail out on error
Max Dymond [Tue, 30 Jan 2018 09:56:28 +0000 (09:56 +0000)]
file: Check the return code from Curl_range and bail out on error

6 years agoCurl_range: add check to ensure "from <= to"
Max Dymond [Mon, 29 Jan 2018 10:12:40 +0000 (10:12 +0000)]
Curl_range: add check to ensure "from <= to"

6 years agoCurl_range: commonize FTP and FILE range handling
Max Dymond [Mon, 29 Jan 2018 09:50:43 +0000 (09:50 +0000)]
Curl_range: commonize FTP and FILE range handling

Closes #2205

6 years agoRELEASE-NOTES: synced with 811beab9f
Daniel Stenberg [Tue, 30 Jan 2018 09:18:12 +0000 (10:18 +0100)]
RELEASE-NOTES: synced with 811beab9f

6 years agocurlver: next release will be 7.59.0
Daniel Stenberg [Tue, 30 Jan 2018 09:18:21 +0000 (10:18 +0100)]
curlver: next release will be 7.59.0

6 years agocurl/curl.h: fix comment typo for CURLOPT_DNS_LOCAL_IP6
Michał Janiszewski [Mon, 29 Jan 2018 20:23:41 +0000 (21:23 +0100)]
curl/curl.h: fix comment typo for CURLOPT_DNS_LOCAL_IP6

Closes #2275

6 years agotime: support > year 2038 time stamps for system with 32bit long
Daniel Stenberg [Thu, 25 Jan 2018 22:05:24 +0000 (23:05 +0100)]
time: support > year 2038 time stamps for system with 32bit long

... with the introduction of CURLOPT_TIMEVALUE_LARGE and
CURLINFO_FILETIME_T.

Fixes #2238
Closes #2264