Imported Upstream version 7.59.0
[platform/upstream/curl.git] / CHANGES
diff --git a/CHANGES b/CHANGES
index b08f71d..dce9c17 100644 (file)
--- a/CHANGES
+++ b/CHANGES
 
                                   Changelog
 
-Version 7.50.2 (7 Sep 2016)
+Version 7.59.0 (13 Mar 2018)
 
-Daniel Stenberg (7 Sep 2016)
-- RELEASE-NOTES: curl 7.50.2 release
+Daniel Stenberg (13 Mar 2018)
+- release: 7.59.0
 
-- THANKS: updated for 7.50.2
+Kamil Dudka (13 Mar 2018)
+- tests/.../spnego.py: fix identifier typo
+  
+  Detected by Coverity Analysis:
+  
+  Error: IDENTIFIER_TYPO:
+  curl-7.58.0/tests/python_dependencies/impacket/spnego.py:229: identifier_typo: Using "SuportedMech" appears to be a typo:
+  * Identifier "SuportedMech" is only known to be referenced here, or in copies of this code.
+  * Identifier "SupportedMech" is referenced elsewhere at least 4 times.
+  curl-7.58.0/tests/python_dependencies/impacket/smbserver.py:2651: identifier_use: Example 1: Using identifier "SupportedMech".
+  curl-7.58.0/tests/python_dependencies/impacket/smbserver.py:2308: identifier_use: Example 2: Using identifier "SupportedMech".
+  curl-7.58.0/tests/python_dependencies/impacket/spnego.py:252: identifier_use: Example 3: Using identifier "SupportedMech" (2 total uses in this function).
+  curl-7.58.0/tests/python_dependencies/impacket/spnego.py:229: remediation: Should identifier "SuportedMech" be replaced by "SupportedMech"?
+  
+  Closes #2379
 
-Jay Satiro (6 Sep 2016)
-- [Gaurav Malhotra brought this change]
+Daniel Stenberg (13 Mar 2018)
+- CURLOPT_COOKIEFILE.3: "-" as file name means stdin
+  
+  Reported-by: Aron Bergman
+  Bug: https://curl.haxx.se/mail/lib-2018-03/0049.html
+  
+  [ci skip]
 
-  openssl: fix CURLINFO_SSL_VERIFYRESULT
+- Revert "hostip: fix compiler warning: 'variable set but not used'"
+  
+  This reverts commit a577059f92fc65bd6b81717f0737f897a5b34248.
   
-  CURLINFO_SSL_VERIFYRESULT does not get the certificate verification
-  result when SSL_connect fails because of a certificate verification
-  error.
+  The assignment really needs to be there or we risk working with an
+  uninitialized pointer.
+
+Michael Kaufmann (12 Mar 2018)
+- limit-rate: fix compiler warning
   
-  This fix saves the result of SSL_get_verify_result so that it is
-  returned by CURLINFO_SSL_VERIFYRESULT.
+  follow-up to 72a0f62
+
+Viktor Szakats (12 Mar 2018)
+- checksrc.pl: add -i and -m options
   
-  Closes https://github.com/curl/curl/pull/995
+  To sync it with changes made for the libssh2 project.
+  Also cleanup some whitespace.
 
-Daniel Stenberg (6 Sep 2016)
-- [Daniel Gustafsson brought this change]
+- curl-openssl.m4: fix spelling [ci skip]
 
-  darwinssl: test for errSecSuccess in PKCS12 import rather than noErr (#993)
+- FAQ: fix a broken URL [ci skip]
+
+Daniel Stenberg (12 Mar 2018)
+- http2: mark the connection for close on GOAWAY
+  
+  ... don't consider it an error!
   
-  While noErr and errSecSuccess are defined as the same value, the API
-  documentation states that SecPKCS12Import() returns errSecSuccess if
-  there were no errors in importing. Ensure that a future change of the
-  defined value doesn't break (however unlikely) and be consistent with
-  the API docs.
+  Assisted-by: Jay Satiro
+  Reported-by: Łukasz Domeradzki
+  Fixes #2365
+  Closes #2375
 
-- [Daniel Gustafsson brought this change]
+- credits: Viktor prefers without accent
 
-  docs: Fix link to CONTRIBUTE in Github contribution guidelines (#994)
+- openldap: white space changes, fixed up the copyright years
 
-- [Marcel Raad brought this change]
+- openldap: check ldap_get_attribute_ber() results for NULL before using
+  
+  CVE-2018-1000121
+  Reported-by: Dario Weisser
+  Bug: https://curl.haxx.se/docs/adv_2018-97a2.html
 
-  openssl: Fix compilation with OPENSSL_API_COMPAT=0x10100000L
+- FTP: reject path components with control codes
   
-  With OPENSSL_API_COMPAT=0x10100000L (OpenSSL 1.1 API), the cleanup
-  functions are unavailable (they're no-ops anyway in OpenSSL 1.1). The
-  replacements for SSL_load_error_strings, SSLeay_add_ssl_algorithms, and
-  OpenSSL_add_all_algorithms are called automatically [1][2]. SSLeay() is
-  now called OpenSSL_version_num().
+  Refuse to operate when given path components featuring byte values lower
+  than 32.
   
-  [1]: https://www.openssl.org/docs/man1.1.0/ssl/OPENSSL_init_ssl.html
-  [2]: https://www.openssl.org/docs/man1.1.0/crypto/OPENSSL_init_crypto.html
+  Previously, inserting a %00 sequence early in the directory part when
+  using the 'singlecwd' ftp method could make curl write a zero byte
+  outside of the allocated buffer.
   
-  Closes #992
-
-- RELEASE-NOTES: synced with 3d4c0c8b9bc1d
+  Test case 340 verifies.
+  
+  CVE-2018-1000120
+  Reported-by: Duy Phan Thanh
+  Bug: https://curl.haxx.se/docs/adv_2018-9cd6.html
 
-- http2: return EOF when done uploading without known size
+- readwrite: make sure excess reads don't go beyond buffer end
+  
+  CVE-2018-1000122
+  Bug: https://curl.haxx.se/docs/adv_2018-b047.html
   
-  Fixes #982
+  Detected by OSS-fuzz
 
-- http2: skip the content-length parsing, detect unknown size
+- BUGS: updated link to security process
 
-- http2: minor white space edit
+- limit-rate: kick in even before "limit" data has been received
+  
+  ... and make sure to avoid integer overflows with really large values.
+  
+  Reported-by: 刘佩东
+  Fixes #2371
+  Closes #2373
 
-- http2: use named define instead of magic constant in read callback
+- docs/SECURITY.md -> docs/SECURITY-PROCESS.md
 
-- [Craig Davison brought this change]
+- SECURITY.md: call it the security process
 
-  configure: make the cpp -P detection not clobber CPPFLAGS
+Michael Kaufmann (11 Mar 2018)
+- Curl_range: fix FTP-only and FILE-only builds
   
-  CPPPFLAGS is now CPPPFLAG. Fixes CURL_CHECK_DEF.
-  
-  Fixes #958
+  follow-up to e04417d
 
-- [Olivier Brunel brought this change]
+- hostip: fix compiler warning: 'variable set but not used'
 
-  speed caps: not based on average speeds anymore
-  
-  Speed limits (from CURLOPT_MAX_RECV_SPEED_LARGE &
-  CURLOPT_MAX_SEND_SPEED_LARGE) were applied simply by comparing limits
-  with the cumulative average speed of the entire transfer; While this
-  might work at times with good/constant connections, in other cases it
-  can result to the limits simply being "ignored" for more than "short
-  bursts" (as told in man page).
+Daniel Stenberg (11 Mar 2018)
+- HTTP: allow "header;" to replace an internal header with a blank one
   
-  Consider a download that goes on much slower than the limit for some
-  time (because bandwidth is used elsewhere, server is slow, whatever the
-  reason), then once things get better, curl would simply ignore the limit
-  up until the average speed (since the beginning of the transfer) reached
-  the limit.  This could prove the limit useless to effectively avoid
-  using the entire bandwidth (at least for quite some time).
-  
-  So instead, we now use a "moving starting point" as reference, and every
-  time at least as much as the limit as been transferred, we can reset
-  this starting point to the current position. This gets a good limiting
-  effect that applies to the "current speed" with instant reactivity (in
-  case of sudden speed burst).
+  Reported-by: Michael Kaufmann
+  Fixes #2357
+  Closes #2362
+
+- http2: verbose output new MAX_CONCURRENT_STREAMS values
   
-  Closes #971
+  ... as it is interesting for many users.
 
-- HISTORY.md: the multi socket was put in the wrong year!
+- SECURITY: distros' max embargo time is 14 days now
 
-- [Mark Hamilton brought this change]
+Patrick Monnerat (8 Mar 2018)
+- curl tool: accept --compressed also if Brotli is enabled and zlib is not.
 
-  tool_helpers.c: fix comment typo (#989)
+Daniel Stenberg (5 Mar 2018)
+- THANKS + mailmap: remove duplicates, fixup full names
 
-- [Mark Hamilton brought this change]
+- [sergii.kavunenko brought this change]
 
-  libtest/test.h: fix typo (#988)
+  WolfSSL: adding TLSv1.3
+  
+  Closes #2349
 
-- CURLMOPT_PIPELINING.3: language
+- RELEASE-NOTES/THANKS: synced with cc1d4c505
 
-- CURLMOPT_PIPELINING.3: extended and clarified
-  
-  Especially in regards to the multiplexing part.
+- [Richard Alcock brought this change]
 
-Steve Holme (31 Aug 2016)
-- curl_sspi.c: Updated function description comments
+  winbuild: prefer documented zlib library names
   
-  * 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()
-
-- README: Corrected the supported Visual Studio versions
+  Check for existence of import and static libraries with documented names
+  and use them if they do. Fallback to previous names.
   
-  Missed from commit 8356022d17.
-
-- KNOWN_BUGS: Move the Visual Studio project shortcomings from local README
-
-- KNOWN_BUGS: Expand 6.4 to include Kerberos V5
+  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".
   
-  ...and discuss a possible solution.
+  closes #2354
 
-Daniel Stenberg (30 Aug 2016)
-- connect: fix #ifdefs for debug versions of conn/streamclose() macros
+Marcel Raad (4 Mar 2018)
+- krb5: use nondeprecated functions
   
-  CURLDEBUG is for the memory debugging
+  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())".
   
-  DEBUGBUILD is for the extra debug stuff
+  Use the nondeprecated functions to avoid deprecation warnings.
   
-  Pointed-out-by: Steve Holme
+  [1] https://tools.ietf.org/html/rfc2078
+  [2] https://tools.ietf.org/html/rfc1964
+  
+  Closes https://github.com/curl/curl/pull/2356
 
-- KNOWN_BUGS: mention some cmake "support gaps"
+Daniel Stenberg (4 Mar 2018)
+- curl.1: mention how to add numerical IP addresses in NO_PROXY
 
-Nick Zitzmann (28 Aug 2016)
-- 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.
+- CURLOPT_NOPROXY.3: mention how to list numerical IPv6 addresses
 
-Daniel Stenberg (28 Aug 2016)
-- http2: return CURLE_HTTP2_STREAM for unexpected stream close
+- NO_PROXY: fix for IPv6 numericals in the URL
   
-  Follow-up to c3e906e9cd0f, seems like a more appropriate error code
+  Added test 1265 that verifies.
   
-  Suggested-by: Jay Satiro
-
-- [Tatsuhiro Tsujikawa brought this change]
+  Reported-by: steelman on github
+  Fixes #2353
+  Closes #2355
 
-  http2: handle closed streams when uploading
+- build: get CFLAGS (including -werror) used for examples and tests
   
-  Fixes #986
+  ... so that the CI and more detects compiler warnings/errors properly!
+  
+  Closes #2337
 
-- http2: make sure stream errors don't needlessly close the connection
+Marcel Raad (3 Mar 2018)
+- curl_ctype: fix macro redefinition warnings
   
-  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.
+  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.
   
-  Fixes #941
+  Suggested-by: Daniel Stenberg
+
+Dan Fandrich (2 Mar 2018)
+- unit1307: proper cleanup on OOM to fix torture tests
 
-- Curl_verify_windows_version: minor edit to avoid compiler warnings
+Marcel Raad (28 Feb 2018)
+- unit1309: fix warning on Windows x64
   
-  ... 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.
+  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
 
-Steve Holme (27 Aug 2016)
-- RELEASE-NOTES: Added missing fix from commit 15592143f
+- travis: update compiler versions
+  
+  Update clang to version 3.9 and GCC to version 6.
+  
+  Closes https://github.com/curl/curl/pull/2345
 
-Jay Satiro (26 Aug 2016)
-- schannel: Disable ALPN for Wine since it is causing problems
+Daniel Stenberg (26 Feb 2018)
+- docs/MANUAL: formfind.pl is not accessible on the site anymore
   
-  - Disable ALPN on Wine.
+  Fixes #2342
+
+Jay Satiro (24 Feb 2018)
+- curl-openssl.m4: Fix version check for OpenSSL 1.1.1
   
-  - Don't pass input secbuffer when ALPN is disabled.
+  - Add OpenSSL 1.1.1 to the header/library version lists.
   
-  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.
+  - Detect OpenSSL 1.1.1 library using its function ERR_clear_last_mark,
+    which was added in that version.
   
-  Bug: https://github.com/curl/curl/issues/983
-  Reported-by: Christian Fillion
+  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.
 
-Kamil Dudka (26 Aug 2016)
-- [Peter Wang brought this change]
+Viktor Szakats (23 Feb 2018)
+- lib655: silence compiler warning
+  
+  Closes https://github.com/curl/curl/pull/2335
 
-  nss: work around race condition in PK11_FindSlotByName()
+- spelling fixes
   
-  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().
+  Detected using the `codespell` tool.
   
-  Bug: https://bugzilla.mozilla.org/1297397
+  Also contains one URL protocol upgrade.
   
-  Closes #985
+  Closes https://github.com/curl/curl/pull/2334
 
-- nss: refuse previously loaded certificate from file
+Daniel Stenberg (24 Feb 2018)
+- projects/README: remove reference to dead IDN link/package
+  
+  Reported-by: Stefan Kanthak and Rod Widdowson
   
-  ... when we are not asked to use a certificate from file
+  Fixes #2325
 
-Daniel Stenberg (26 Aug 2016)
-- ftp_done: remove dead code
+Jay Satiro (23 Feb 2018)
+- [Rod Widdowson brought this change]
 
-- TLS: random file/egd doesn't have to match for conn reuse
+  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
 
-- test161: add comment for the exit code
+Daniel Stenberg (23 Feb 2018)
+- TODO: remove "sha-256 digest", added in 2b5b37cb9109e7c2
 
-Dan Fandrich (26 Aug 2016)
-- test219: Add http as a required feature
+- curl_share_setopt.3: connection cache is shared within multi handles
 
-Daniel Stenberg (25 Aug 2016)
-- [Michael Kaufmann brought this change]
+Jay Satiro (22 Feb 2018)
+- [Rod Widdowson brought this change]
 
-  HTTP: stop parsing headers when switching to unknown protocols
+  winbuild: Use CALL to run batch scripts
   
-  - unknown protocols probably won't send more headers (e.g. WebSocket)
-  - improved comments and moved them to the correct case statements
+  Co-authored-by: Stefan Kanthak
   
-  Closes #899
+  Closes https://github.com/curl/curl/issues/2330
+  Closes https://github.com/curl/curl/pull/2331
 
-- openssl: make build with 1.1.0 again
-  
-  synced with OpenSSL git master commit cc06906707
+Patrick Monnerat (22 Feb 2018)
+- os400: add curl_resolver_start_callback type to ILE/RPG binding
 
-- INTERNALS: fix title
+Daniel Stenberg (22 Feb 2018)
+- form.d: rephrased somewhat, added two example command lines
 
-- configure: detect zlib with our pkg-config macros
-  
-  ... instead of relying on the pkg-config autoconf macros to be present.
-  
-  Fixes #972 (again...)
+Jay Satiro (21 Feb 2018)
+- [Francisco Sedano brought this change]
 
-Jay Satiro (25 Aug 2016)
-- http2: Remove incorrect comments
+  url: Add option CURLOPT_RESOLVER_START_FUNCTION
   
-  .. also remove same from scp
-
-Daniel Stenberg (23 Aug 2016)
-- [Ales Novak brought this change]
-
-  ftp: fix wrong poll on the secondary socket
+  - 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.
   
-  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.
+  - Add new option CURLOPT_RESOLVER_START_DATA to set a user pointer to
+    pass to the resolver start callback.
   
-  This patch adds the correct flag to the secondary socket, making the
-  second poll() correctly wait for the connection there too.
+  Closes https://github.com/curl/curl/pull/2311
+
+- lib: CURLOPT_HAPPY_EYEBALLS_TIMEOUT => CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS
   
-  Signed-off-by: Ales Novak <alnovak@suse.cz>
+  - In keeping with the naming of our other connect timeout options rename
+    CURLOPT_HAPPY_EYEBALLS_TIMEOUT to CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS.
   
-  Closes #978
-
-- RELEASE-NOTES: synced with 95ded2c56
-
-- configure: make it work without PKG_CHECK_MODULES
+  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.
   
-  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.
+  The tool option already uses an -ms suffix, --happy-eyeballs-timeout-ms.
   
-  Reported-by: Marc Hörsken
+  Follow-up to 2427d94 which added the lib and tool option yesterday.
   
-  Fixes #972
+  Ref: https://github.com/curl/curl/pull/2260
 
-Marc Hoersken (21 Aug 2016)
-- Revert "KNOWN_BUGS: SOCKS proxy not working via IPv6"
-  
-  This reverts commit 9cb1059f92286a6eb5d28c477fdd3f26aed1d554.
+Patrick Monnerat (21 Feb 2018)
+- sasl: prefer PLAIN mechanism over LOGIN
   
-  As discussed in #835 SOCKS5 supports IPv6 proxies and destinations.
+  SASL PLAIN is a standard, LOGIN only a draft. The LOGIN draft says
+  PLAIN should be used instead if available.
 
-Daniel Stenberg (21 Aug 2016)
-- [Marco Deckel brought this change]
+Daniel Stenberg (21 Feb 2018)
+- RELEASE-NOTES: synced with 2427d94c6
 
-  win: Basic support for Universal Windows Platform apps
-  
-  Closes #820
+Jay Satiro (20 Feb 2018)
+- [Anders Bakken brought this change]
 
-Steve Holme (21 Aug 2016)
-- sasl: Don't use GSSAPI authentication when domain name not specified
+  url: Add option CURLOPT_HAPPY_EYEBALLS_TIMEOUT
   
-  Only choose the GSSAPI authentication mechanism when the user name
-  contains a Windows domain name or the user is a valid UPN.
+  - Add new option CURLOPT_HAPPY_EYEBALLS_TIMEOUT to set libcurl's happy
+    eyeball timeout value.
   
-  Fixes #718
-
-- vauth: Added check for supported SSPI based authentication mechanisms
+  - Add new optval macro CURL_HET_DEFAULT to represent the default happy
+    eyeballs timeout value (currently 200 ms).
   
-  Completing commit 00417fd66c and 2708d4259b.
-
-- http.c: Remove duplicate (authp->avail & CURLAUTH_DIGEST) check
+  - 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.
   
-  From commit 2708d4259b.
+  Closes https://github.com/curl/curl/pull/2260
 
-Marc Hoersken (20 Aug 2016)
-- socks.c: display the hostname returned by the SOCKS5 proxy server
+- hostip: fix 'potentially uninitialized variable' warning
   
-  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.
+  Follow-up to 50d1b33.
   
-  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.
+  Caught by AppVeyor.
 
-Steve Holme (20 Aug 2016)
-- urldata.h: Corrected comment for httpcode which is also populated by SMTP
-  
-  As of 7.25.0 and commit 5430007222.
+Daniel Stenberg (20 Feb 2018)
+- TODO: warning if curl version is not in sync with libcurl version
+
+Jay Satiro (20 Feb 2018)
+- [Anders Bakken brought this change]
 
-Marc Hoersken (20 Aug 2016)
-- socks.c: use Curl_printable_address in SOCKS5 connection sequence
+  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.
   
-  Replace custom string formatting with Curl_printable_address.
-  Add additional debug and error output in case of failures.
+  Ref: https://github.com/curl/curl/pull/2260
 
-- socks.c: align SOCKS4 connection sequence with SOCKS5
+Daniel Stenberg (20 Feb 2018)
+- [Sergio Borghese brought this change]
+
+  examples/sftpuploadresume: resume upload via CURLOPT_APPEND
   
-  Calling sscanf is not required since the raw IPv4 address is
-  available and the protocol can be detected using ai_family.
+  URL: https://curl.haxx.se/mail/lib-2018-02/0072.html
 
-Steve Holme (20 Aug 2016)
-- http.c: Corrected indentation change from commit 2708d4259b
+- curl --version: show PSL if the run-time lib has it enabled
   
-  Made by Visual Studio's auto-correct feature and missed by me in my own
-  code reviews!
+  ... not of the #define was set at build-time!
 
-- http: Added calls to Curl_auth_is_<mechansism>_supported()
+- TODO: "Support in-memory certs/ca certs/keys"
+  
+  removed SSLKEYLOGFILE support (fixed)
   
-  Hooked up the HTTP authentication layer to query the new 'is mechanism
-  supported' functions when deciding what mechanism to use.
+  removed "consider SSL patches" (outdated)
   
-  As per commit 00417fd66c existing functionality is maintained for now.
+  Closes #2310
 
-Marc Hoersken (20 Aug 2016)
-- socks.c: improve verbose output of SOCKS5 connection sequence
+- CURLOPT_HEADER.3: clarify problems with different data sizes
 
-- configure.ac: add missing quotes to PKG_CHECK_MODULES
+- test1556: verify >16KB headers to the header callback
 
-Steve Holme (20 Aug 2016)
-- sasl: Added calls to Curl_auth_is_<mechansism>_supported()
+- header callback: don't chop headers into smaller pieces
   
-  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.
-
-Daniel Stenberg (19 Aug 2016)
-- [Miroslav Franc brought this change]
+  Reported-by: Guido Berhoerster
+  Fixes #2314
+  Closes #2316
 
-  spnego_sspi: fix memory leak in case *outlen is zero (#970)
+- test1154: verify that long HTTP headers get rejected
 
-- CURLMOPT_MAX_TOTAL_CONNECTIONS.3: mention it can also multiplex
-
-Steve Holme (18 Aug 2016)
-- vauth: Introduced Curl_auth_is_<mechansism>_supported() functions
+- http: fix the max header length detection logic
   
-  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.
+  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.
   
-  For now each function returns TRUE to maintain compatability with the
-  existing code when called.
-
-Daniel Stenberg (18 Aug 2016)
-- test1144: verify HEAD with body-only response
+  Reported-by: Guido Berhoerster
+  Bug: https://curl.haxx.se/mail/lib-2018-02/0056.html
+  
+  Closes #2315
 
-Steve Holme (17 Aug 2016)
-- RELEASE-PROCEDURE: Added some more future release dates
+- CURLOPT_HEADERFUNCTION.3: fix typo from d939226813
   
-  ...and removed some old ones
+  Reported-by: Erik Johansson
+  Bug: https://github.com/curl/curl/commit/d9392268131c1b8d18dec3fa30e0bded833a5db7#commitcomment-27607495
 
-Daniel Stenberg (17 Aug 2016)
-- [David Woodhouse brought this change]
+- CURLOPT_HEADERFUNCTION.3: mention folded headers
 
-  curl: allow "pkcs11:" prefix for client certificates
+- TODO: 1.1 Option to refuse usernames in URLs
   
-  RFC7512 provides a standard method to reference certificates in PKCS#11
-  tokens, by means of a URI starting 'pkcs11:'.
+  Also expanded the CURL_REFUSE_CLEARTEXT section with more ideas.
+
+- TODO: 1.7 Support HTTP/2 for HTTP(S) proxies
+
+- ssh: add two missing state names
   
-  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.
+  The list of state names (used in debug builds) was out of sync in
+  relation to the list of states (used in all builds).
   
-  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
+  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.
   
-     curl -E 'pkcs11:manufacturer=piv_II;id=%01' …
+  Regression since c92d2e14cf, shipped in 7.58.0.
   
-  I instead need to invoke cURL with the colon escaped, like this:
+  Reported-by: Somnath Kundu
   
-     curl -E 'pkcs11\:manufacturer=piv_II;id=%01' …
+  Fixes #2312
+  Closes #2313
+
+- Revert "KNOWN_BUGS: 2.5 curl should not offer "ALPN: h2" when using https-proxy"
   
-  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 reverts commit de9fac00c40db321d44fa6fbab6eb62ec4c83998.
   
-  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.
+  Reported-by: Jay Satiro
+
+Jay Satiro (15 Feb 2018)
+- non-ascii: fix implicit declaration warning
   
-  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.
+  Follow-up to b46cfbc.
   
-  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.
+  Caught by Travis CI.
 
-- nss: make the global variables static
+Daniel Stenberg (15 Feb 2018)
+- 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
 
-- openssl: use regular malloc instead of OPENSSL_malloc
+- TODO: 18.18 retry on network is unreachable
   
-  This allows for better memmory debugging and torture tests.
+  Closes #1603
 
-- proxy: fix tests as follow-up to 93b0d907d5
+- KNOWN_BUGS: 2.5 curl should not offer "ALPN: h2" when using https-proxy
   
-  This fixes tests that were added after 113f04e664b as the tests would
-  fail otherwise.
+  Closes #1254
+
+Kamil Dudka (15 Feb 2018)
+- nss: use PK11_CreateManagedGenericObject() if available
   
-  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.
+  ... so that the memory allocated by applications using libcurl does not
+  grow per each TLS connection.
   
-  Fixes #954
+  Bug: https://bugzilla.redhat.com/1510247
   
-  Reported-by: János Fekete
+  Closes #2297
 
-- Revert "Proxy-Connection: stop sending this header by default"
+Daniel Stenberg (15 Feb 2018)
+- [Björn Stenberg brought this change]
+
+  TODO fixed: Detect when called from within callbacks
   
-  This reverts commit 113f04e664b16b944e64498a73a4dab990fe9a68.
+  Closes #2302
 
-- CURLOPT_PROXY.3: unsupported schemes cause errors now
+- BINDINGS: fix curb link (and remove ruby-curl-multi)
   
-  Follow-up to a96319ebb9 (document the new behavior)
+  Reported-by: Klaus Stein
 
-- tests/README: mention nghttpx for HTTP/2 tests
+- curl_gssapi: make sure this file too uses our *printf()
 
-- README.md: add our CII Best Practices badge
+- libcurl-security.3: separate file:// section
+  
+  ... just to make it more apparent. Even if it repeats
+  some pieces of information.
 
-- proxy: polished the error message for unsupported schemes
+- libcurl-security.3: the http://192.168.0.1/my_router_config case
   
-  Follow up to a96319ebb93
+  Mentioned-By: Rich Moore
 
-- test219: verify unsupported scheme for proxies get rejected
+- libcurl-security.3: mention the URL standards problems too
 
-- proxy: reject attempts to use unsupported proxy schemes
+- libcurl-security.3: split out from libcurl-tutorial.3
   
-  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.
+  To make more accessible.
   
-  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.
+  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
 
-- RELEASE-NOTES: synced with b7ee5316c2fd5b
+- RELEASE-NOTES: synced with e551910f8
 
-Marc Hoersken (14 Aug 2016)
-- socks.c: Correctly calculate position of port in response packet
+Patrick Monnerat (13 Feb 2018)
+- tests: new tests for http raw mode
   
-  Third commit to fix issue #944 regarding SOCKS5 error handling.
+  Test 319 checks proper raw mode data with non-chunked gzip
+  transfer-encoded server data.
+  Test 326 checks raw mode with chunked server data.
   
-  Reported-by: David Kalnischkies
+  Bug: #2303
+  Closes #2308
 
-- socks.c: Do not modify and invalidate calculated response length
+Kamil Dudka (12 Feb 2018)
+- tlsauthtype.d: works only if libcurl is built with TLS-SRP support
   
-  Second commit to fix issue #944 regarding SOCKS5 error handling.
+  Bug: https://bugzilla.redhat.com/1542256
   
-  Reported-by: David Kalnischkies
+  Closes #2306
 
-- socks.c: Move error output after reading the whole response packet
+Patrick Monnerat (12 Feb 2018)
+- 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.
   
-  First commit to fix issue #944 regarding SOCKS5 error handling.
+  Tests 911 and test server are adapted to this situation.
+  New tests 951 and 952 check proper handling of initial dot in data.
   
-  Reported-by: David Kalnischkies
+  Closes #2304
 
-Daniel Stenberg (13 Aug 2016)
-- [Ronnie Mose brought this change]
+Daniel Stenberg (12 Feb 2018)
+- sha256: avoid redefine
 
-  MANUAL: Remove invalid link to LDAP documentation (#962)
-  
-  The server developer.netscape.com does not resolve into any
-  ip address and can be removed.
+- [Douglas Mencken brought this change]
 
-Jay Satiro (13 Aug 2016)
-- 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.
+  sha256: build with OpenSSL < 0.9.8 too
   
-  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.
+  support for SHA-2 was introduced in OpenSSL 0.9.8
   
-  Bug: https://github.com/curl/curl/issues/959
-  Reported-by: wmsch@users.noreply.github.com
+  Closes #2305
 
-Daniel Stenberg (12 Aug 2016)
-- [Dambaev Alexander brought this change]
-
-  configure.ac: add zlib search with pkg-config
-  
-  Closes #956
+- [Bruno Grasselli brought this change]
 
-- rtsp: ignore whitespace in session id
+  README: language fix
   
-  Follow-up to e577c43bb to fix test case 569 brekage: stop the parser at
-  whitespace as well.
+  s/off/from
   
-  Help-by: Erik Janssen
+  Closes #2300
 
-- HTTP: retry failed HEAD requests too
+Patrick Monnerat (12 Feb 2018)
+- http_chunks: don't write chunks twice with CURLOPT_HTTP_TRANSFER_DECODING on
   
-  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
+  Bug: #2303
+  Reported-By: Henry Roeland
 
-- mk-ca-bundle.1: document -m, added in 1.26
+Daniel Stenberg (9 Feb 2018)
+- get_posix_time: only check for overflows if they can happen!
 
-- RELEASE-NOTES: synced with e577c43bb5
+Michael Kaufmann (9 Feb 2018)
+- schannel: fix "no previous prototype" compiler warning
 
-- [Erik Janssen brought this change]
+Jay Satiro (9 Feb 2018)
+- [Mohammad AlSaleh brought this change]
 
-  rtsp: accept any RTSP session id
+  content_encoding: Add "none" alias to "identity"
   
-  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:
+  Some servers return a "content-encoding" header with a non-standard
+  "none" value.
   
-  - For curl the actual content is a don't care.
+  Add "none" as an alias to "identity" as a work-around, to avoid
+  unrecognised content encoding type errors.
   
-  - The clarity of the RFC is debatable, is $ allowed or only as \$, that
-    is imho not clear
+  Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
   
-  - Gstreamer seems to url-encode the session id but % is not allowed by
-  the RFC
+  Closes https://github.com/curl/curl/pull/2298
+
+Steve Holme (8 Feb 2018)
+- build-openssl.bat: Follow up to 648679ab8e to suppress copy/move output
+
+- build-openssl.bat: Fixed incorrect move if destination build folder exists
+
+Michael Kaufmann (8 Feb 2018)
+- schannel: fix compiler warnings
   
-  - less code
+  Closes #2296
+
+Steve Holme (7 Feb 2018)
+- curl_addrinfo.c: Allow Unix Domain Sockets to compile under Windows
   
-  With this patch curl will correctly handle real-life lines like:
-  Session: biTN4Kc.8%2B1w-AF.; timeout=60
+  Windows 10.0.17061 SDK introduces support for Unix Domain Sockets.
+  Added the necessary include file to curl_addrinfo.c.
   
-  Bug: https://curl.haxx.se/mail/lib-2016-08/0076.html
+  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.
 
-- symbols-in-versions: add CURL_STRICTER
+Patrick Monnerat (7 Feb 2018)
+- fnmatch: optimize processing of consecutive *s and ?s pattern characters
   
-  Added in 5fce88aa8c12564
+  Reported-By: Daniel Stenberg
+  Fixes #2291
+  Closes #2293
 
-- [Simon Warta brought this change]
-
-  winbuild: Allow changing C compiler via environment variable CC (#952)
+Steve Holme (6 Feb 2018)
+- build-openssl.bat/build-wolfssl.bat: Build platform is optional
   
-  This makes it possible to use specific compilers or a cache.
+  Whilst the compiler parameter is mandatory, platform is optional as it
+  is automatically calculated by the :configure section.
   
-  Sample use for clcache:
-  set CC=clcache.bat
-  nmake /f Makefile.vc DEBUG=no MODE=static VC=14 GEN_PDB=no
-
-- LICENSE-MIXING.md: switched to markdown
-
-- docs-make: have markdown files use .md
+  This partially reverts commit 6d62d2c55d.
 
-- curl.h: make CURL_NO_OLDIES define CURL_STRICTER
+Daniel Stenberg (6 Feb 2018)
+- [Patrick Schlangen brought this change]
 
-- HISTORY.md: use markdown extension
-
-- SSLCERTS.md: renamed to markdown extension
-
-- INTERNALS.md: use markdown extension for markdown content
-
-- CONTRIBUTE.md: markdown extension
-
-- CONTRIBUTE: changed to markdown
-
-- CONTRIBUTE: refreshed
-
-- TODO: added an SSH section and two SFTP things to do
-
-- TODO: remove the 1.22 duplicated item
-
-- TODO: move "CURLOPT_MAIL_CLIENT" to SMTP section
-
-- TODO: API for URL parsing/splitting
-
-- TODO: move QUIC to the HTTP section
-
-- [Simon Warta brought this change]
-
-  winbuild: Free name $(CC) in Makefile (#950)
+  openssl: Don't add verify locations when verifypeer==0
   
-  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?).
+  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.
   
-  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.
-
-- TODO: Use huge HTTP/2 windows
+  Closes #2290
 
-- [Simon Warta brought this change]
+Steve Holme (5 Feb 2018)
+- build-wolfssl.bat: Extend VC15 support to include Enterprise and Professional
+  
+  ...and not just the Community Edition.
 
-  winbuild: Avoid setting redundant CFLAGS to compile commands (#949)
+- build-openssl.bat: Extend VC15 support to include Enterprise and Professional
   
-  $(CURL_CC) is always used with $(CURL_CFLAGS) appended, so before this,
-  all arguments in CURL_CFLAGS have been added twice.
+  ...and not just the Community Edition.
 
-Jay Satiro (8 Aug 2016)
-- cmake: Enable win32 threaded resolver by default
+Michael Kaufmann (5 Feb 2018)
+- time-cond: fix reading the file modification time on Windows
   
-  - Turn on USE_THREADS_WIN32 in Windows if ares isn't on
+  On Windows, stat() may adjust the unix file time by a daylight saving time
+  offset. Avoid this by calling GetFileTime() instead.
   
-  This change is similar to what we already do in the autotools build.
+  Fixes #2164
+  Closes #2204
 
-- cmake: Enable win32 large file support by default
+Daniel Stenberg (5 Feb 2018)
+- formdata: use the mime-content type function
   
-  All compilers used by cmake in Windows should support large files.
+  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.
   
-  - 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
-
-Daniel Stenberg (7 Aug 2016)
-- TODO: added several ideas, removed SPDY
+  PR #2280 brought this to my attention.
+  
+  Closes #2282
 
-- http2: always wait for readable socket
+- getdate: return -1 for out of range
   
-  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.
+  ...as that's how the function is documented to work.
   
-  Reminded-by: Tatsuhiro Tsujikawa
-
-- RELEASE-NOTES: synced with 7b4bf37a44791
+  Reported-by: Michael Kaufmann
+  Bug found in an autobuild with 32 bit time_t
+  
+  Closes #2278
 
-- [Thomas Glanzmann brought this change]
+- [Ben Greear brought this change]
 
-  mbedtls: set debug threshold to 4 (verbose) when MBEDTLS_DEBUG is defined
+  build: fix termios issue on android cross-compile
   
-  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.
+  Bug: https://curl.haxx.se/mail/lib-2018-01/0122.html
+  Signed-off-by: Ben Greear <greearb@candelatech.com>
 
-- CURLOPT_TCP_NODELAY: now enabled by default
+- time_t-fixes: remove typecasts to 'long' for info.filetime
   
-  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.
+  They're now wrong.
   
-  This also makes --tcp-nodelay unnecessary, but --no-tcp-nodelay can be
-  used to disable it.
+  Reported-by: Michael Kaufmann
   
-  Thanks-to: Tim Rühsen
-  Bug: https://curl.haxx.se/mail/lib-2016-06/0143.html
+  Closes #2277
 
-- [Serj Kalichev brought this change]
-
-  TFTP: Fix upload problem with piped input
+- curl_setup: move the precautionary define of SIZEOF_TIME_T
   
-  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.
+  ... up to before it may be used for the TIME_T_MAX/MIN logic.
   
-  Fixes #857
+  Reported-by: Michael Kaufmann
 
-- mk-ca-bundle.pl: -m keeps ca cert meta data in output
+- parsedate: s/#if/#ifdef
   
-  Makes the script pass on comments holding meta data to the output
-  file. Like fingerprinters, issuer, date ranges etc.
-  
-  Closes #937
+  Reported-by: Michael Kaufmann
+  Bug: https://github.com/curl/curl/commit/1c39128d974666107fc6d9ea15f294036851f224#commitcomment-27246479
 
-- multi: make Curl_expire() work with 0 ms timeouts
+Patrick Monnerat (31 Jan 2018)
+- fnmatch: pattern syntax can no longer fail
   
-  Previously, passing a timeout of zero to Curl_expire() was a magic code
-  for clearing all timeouts for the handle. That is now instead made with
-  the new Curl_expire_clear() function and thus a 0 timeout is fine to set
-  and will trigger a timeout ASAP.
+  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.
   
-  This will help removing short delays, in particular notable when doing
-  HTTP/2.
+  Unit test 1307 updated for this new situation.
+  
+  Closes #2273
 
-- transfer: return without select when the read loop reached maxcount
+- fnmatch: accept an alphanum to be followed by a non-alphanum in char set
   
-  Regression added in 790d6de48515. The was then added to avoid one
-  particular transfer to starve out others. But when aborting due to
-  reading the maxcount, the connection must be marked to be read from
-  again without first doing a select as for some protocols (like SFTP/SCP)
-  the data may already have been read off the socket.
+  Also be more tolerant about set pattern syntax.
+  Update unit test 1307 accordingly.
   
-  Reported-by: Dan Donahue
-  Bug: https://curl.haxx.se/mail/lib-2016-07/0057.html
-
-Steve Holme (3 Aug 2016)
-- [Bill Nagel brought this change]
+  Bug: https://curl.haxx.se/mail/lib-2018-01/0114.html
 
-  mbedtls: Added support for NTLM
+- fnmatch: do not match the empty string with a character set
 
-Daniel Stenberg (3 Aug 2016)
-- [Sergei Nikulov brought this change]
+Jay Satiro (30 Jan 2018)
+- 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.
 
-  travis: removed option to rebuild autotool from source
+Daniel Stenberg (30 Jan 2018)
+- progress-bar.d: update to match implementation
+  
+  ... since commit 993dd5651a6
   
-  Fixes #943
+  Reported-by: Martin Dreher
+  Bug: https://github.com/curl/curl/pull/2242#issuecomment-361059228
+  
+  Closes #2271
 
-- bump: start working toward 7.50.2
+- 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.
 
-Version 7.50.1 (3 Aug 2016)
+- [Max Dymond brought this change]
 
-Daniel Stenberg (3 Aug 2016)
-- THANKS: 7 new contributors from the 7.50.1 release
+  file: Check the return code from Curl_range and bail out on error
 
-- RELEASE-NOTES: 7.50.1
+- [Max Dymond brought this change]
 
-- TLS: only reuse connections with the same client cert
-  
-  CVE-2016-5420
-  Bug: https://curl.haxx.se/docs/adv_20160803B.html
+  Curl_range: add check to ensure "from <= to"
 
-- TLS: switch off SSL session id when client cert is used
-  
-  CVE-2016-5419
-  Bug: https://curl.haxx.se/docs/adv_20160803A.html
-  Reported-by: Bru Rom
-  Contributions-by: Eric Rescorla and Ray Satiro
+- [Max Dymond brought this change]
 
-- curl_multi_cleanup: clear connection pointer for easy handles
+  Curl_range: commonize FTP and FILE range handling
   
-  CVE-2016-5421
-  Bug: https://curl.haxx.se/docs/adv_20160803C.html
-  Reported-by: Marcelo Echeverria and Fernando Muñoz
+  Closes #2205
 
-- KNOWN_BUGS: SOCKS proxy not working via IPv6
-  
-  Closes #835
+- RELEASE-NOTES: synced with 811beab9f
 
-- KNOWN_BUGS: CURLOPT_SEEKFUNCTION not called with CURLFORM_STREAM
-  
-  Closes #768
+- curlver: next release will be 7.59.0
 
-- KNOWN_BUGS: transfer-encoding: chunked in HTTP/2
-  
-  Closes #662
+- [Michał Janiszewski brought this change]
 
-- TODO: Provide cmake config-file
+  curl/curl.h: fix comment typo for CURLOPT_DNS_LOCAL_IP6
   
-  Closes #885
-
-Patrick Monnerat (2 Aug 2016)
-- os400: define BUILDING_LIBCURL in make script.
+  Closes #2275
 
-Daniel Stenberg (1 Aug 2016)
-- RELEASE-NOTES: synced with aa9f536a18b
-
-Jay Satiro (1 Aug 2016)
-- [Thomas Glanzmann brought this change]
-
-  mbedtls: Fix debug function name
+- time: support > year 2038 time stamps for system with 32bit long
   
-  This patch is necessary so that curl compiles if MBEDTLS_DEBUG is
-  defined.
+  ... with the introduction of CURLOPT_TIMEVALUE_LARGE and
+  CURLINFO_FILETIME_T.
   
-  Bug: https://curl.haxx.se/mail/lib-2016-08/0001.html
-
-Daniel Stenberg (1 Aug 2016)
-- [Sergei Nikulov brought this change]
+  Fixes #2238
+  Closes #2264
 
-  travis: fix OSX build by re-installing libtool
+- curl_easy_reset: clear digest auth state
   
-  Apparently due to a broken homebrew install
-  
-  fixes #934
-  Closes #939
+  Bug: https://curl.haxx.se/mail/lib-2018-01/0074.html
+  Reported-by: Ruurd Beerstra
+  Fixes #2255
+  Closes #2272
 
-- [Martin Vejnár brought this change]
+- [Adam Marcionek brought this change]
 
-  win32: fix a potential memory leak in Curl_load_library
+  winbuild: make linker generate proper PDB
   
-  If a call to GetSystemDirectory fails, the `path` pointer that was
-  previously allocated would be leaked. This makes sure that `path` is
-  always freed.
+  Link.exe requires /DEBUG to properly generate a full pdb file on release
+  builds.
   
-  Closes #938
+  Closes #2274
 
-- include: revert 9adf3c4 and make public types void * again
-  
-  Many applications assume the actual contents of the public types and use
-  that do for example forward declarations (saving them from including our
-  public header) which then breaks when we switch from void * to a struct
-  *.
+- curl: add --proxy-pinnedpubkey
   
-  I'm not convinced we were wrong, but since this practise seems
-  widespread enough I'm willing to (partly) step down.
+  To verify a proxy's public key. For when using HTTPS proxies.
   
-  Now libcurl uses the struct itself when it is built and it allows
-  applications to use the struct type if CURL_STRICTER is defined at the
-  time of the #include.
-  
-  Reported-by: Peter Frühberger
-  Fixes #926
-
-Jay Satiro (28 Jul 2016)
-- [Yonggang Luo brought this change]
+  Fixes #2192
+  Closes #2268
 
-  cmake: Fix for schannel support
+- configure: set PATH_SEPARATOR to colon for PATH w/o separator
   
-  The check_library_exists_concat do not check crypt32 library properly.
-  So include it directly.
+  The logic tries to figure out what the path separator in the $PATH
+  variable is, but if there's only one directory in the $PATH it
+  fails. This change make configure *guess* on colon instead of erroring
+  out, simply because that is probably the more common character.
   
-  Bug: https://github.com/curl/curl/pull/917
-  Reported-by: Yonggang Luo
+  PATH_SEPARATOR can always be set by the user to override the guessing.
   
-  Bug: https://github.com/curl/curl/issues/935
-  Reported-by: Alain Danteny
+  (tricky bug to reproduce, as in my case for example the configure script
+  requires binaries in more than one directory so passing in a PATH with a
+  single dir fails.)
+  
+  Reported-by: Earnestly on github
+  Fixes #2202
+  Closes #2265
 
-- Revert "travis: Install libtool for OS X builds"
+- curl_ctype: private is*() type macros and functions
   
-  Didn't work.
+  ... since the libc provided one are locale dependent in a way we don't
+  want. Also, the "native" isalnum() (for example) works differently on
+  different platforms which caused test 1307 failures on macos only.
   
-  This reverts commit 50723585ed380744358de054e2a55dccee65dfd7.
+  Closes #2269
 
-- travis: Install libtool for OS X builds
+Marcel Raad (29 Jan 2018)
+- build: open VC15 projects with VS 2017
   
-  CI is failing due to missing libtoolize, so I'm trying this.
+  Previously, they were opened with Visual Studio 2015 by default, which
+  cannot build them.
 
-Daniel Stenberg (26 Jul 2016)
-- [Viktor Szakats brought this change]
+Daniel Stenberg (29 Jan 2018)
+- RELEASE-NOTES: synced with 094647fca
 
-  TODO: minor typo in last commit
+- TODO: UTF-8 filenames in Content-Disposition
   
-  merged #931
-
-- TODO: Timeout idle connections from the pool
-
-Patrick Monnerat (25 Jul 2016)
-- os400: minimum supported OS version: V6R1M0.
-  Do not log compilation informational messages.
+  Closes #1888
 
-Jay Satiro (24 Jul 2016)
-- tests: Fix for http/2 feature
+- KNOWN_BUGS: DICT responses show the underlying protocol
   
-  Bug: https://curl.haxx.se/mail/lib-2016-07/0070.html
-  Reported-by: Paul Howarth
+  Closes #1809
 
-Steve Holme (23 Jul 2016)
-- README: Mention wolfSSL in the 'Dependencies' section
+Jay Satiro (27 Jan 2018)
+- [Alessandro Ghedini brought this change]
 
-- vauth.h: No need to query HAVE_GSSAPI || USE_WINDOWS_SSPI for SPNEGO
+  docs: fix typos in man pages
   
-  As SPNEGO is only defined when these pre-processor variables are defined
-  there is no need to query them explicitly.
+  Closes https://github.com/curl/curl/pull/2266
 
-- spnego: Corrected miss-placed * in Curl_auth_spnego_cleanup() declaration
+Patrick Monnerat (26 Jan 2018)
+- lib555: drop text conversion and encode data as ascii codes
   
-  Typo introduced in commit ad5e9bfd5d.
-
-Daniel Stenberg (22 Jul 2016)
-- SECURITY: mention how to get windows-specific CVEs
+  If CURL_DOES_CONVERSION is enabled, uploaded LFs are mapped to CRLFs,
+  giving a result that is different from what is expected.
+  This commit avoids using CURLOPT_TRANSFERTEXT and directly encodes data
+  to upload in ascii.
   
-  ... and make the distros link a proper link
+  Bug: https://github.com/curl/curl/pull/1872
 
-Dan Fandrich (21 Jul 2016)
-- test558: fix test by stripping file paths from FD lines
+Daniel Stenberg (26 Jan 2018)
+- lib517: make variable static to avoid compiler warning
+  
+  ... with clang on macos
 
-Kamil Dudka (21 Jul 2016)
-- tests: distribute the http2-server.pl script, too
+Patrick Monnerat (26 Jan 2018)
+- lib544: sync ascii code data with textual data
+  
+  Data mismatch caused test 545 to fail when character encoding
+  conversion is enabled.
+  
+  Bug: https://github.com/curl/curl/pull/1872
 
-- docs: distribute the CURLINFO_HTTP_VERSION(3) man page, too
+Daniel Stenberg (25 Jan 2018)
+- [Travis Burtrum brought this change]
 
-Daniel Stenberg (21 Jul 2016)
-- bump: start working on 7.50.1
+  GSKit: restore pinnedpubkey functionality
+  
+  inadvertently removed in 283babfaf8d8f3bab9d3c63cea94eb0b84e79c37
+  
+  Closes #2263
 
-Version 7.50.0 (21 Jul 2016)
+- [Dair Grant brought this change]
 
-Daniel Stenberg (21 Jul 2016)
-- RELEASE-NOTES: version 7.50.0 ready
+  darwinssl: Don't import client certificates into Keychain on macOS
+  
+  Closes #2085
 
-- THANKS: 13 new contributors from the 7.50.0 release
+- configure: fix the check for unsigned time_t
+  
+  Assign the time_t variable negative value and then check if it is
+  greater than zero, which will evaluate true for unsigned time_t but
+  false for signed time_t.
 
-Jay Satiro (21 Jul 2016)
-- winbuild: fix embedded manifest option
+- parsedate: fix date parsing for systems with 32 bit long
   
-  Embedded manifest option didn't work due to typo.
+  Make curl_getdate() handle dates before 1970 as well (returning negative
+  values).
   
-  Reported-by: Stefan Kanthak
-
-- vauth: Fix memleak by freeing credentials if out of memory
+  Make test 517 test dates for 64 bit time_t.
+  
+  This fixes bug (3) mentioned in #2238
   
-  This is a follow up to the parent commit dcdd4be which fixes one leak
-  but creates another by failing to free the credentials handle if out of
-  memory. Also there's a second location a few lines down where we fail to
-  do same. This commit fixes both of those issues.
+  Closes #2250
 
-Daniel Stenberg (20 Jul 2016)
-- [Saurav Babu brought this change]
+- [McDonough, Tim brought this change]
 
-  vauth: Fixed memory leak due to function returning without free
+  openssl: fix pinned public key build error in FIPS mode
   
-  This patch allocates memory to "output_token" only when it is required
-  so that memory is not leaked if function returns.
-
-- test558: updated after ipv6-check move
+  Here is a version that should work with all versions of openssl 0.9.7
+  through 1.1.0.
   
-  Follow-up commit to c50980807c5 to make this test pass.
-
-Jay Satiro (20 Jul 2016)
-- connect: disable TFO on Linux when using SSL
+  Links to the docs:
+  https://www.openssl.org/docs/man1.0.2/crypto/EVP_DigestInit.html
+  https://www.openssl.org/docs/man1.1.0/crypto/EVP_DigestInit.html
   
-  - Linux TFO + TLS is not implemented yet.
+  At the very bottom of the 1.1.0 documentation there is a history section
+  that states, " stack allocated EVP_MD_CTXs are no longer supported."
   
-  Bug: https://github.com/curl/curl/issues/907
+  If EVP_MD_CTX_create and EVP_MD_CTX_destroy are not defined, then a
+  simple mapping can be used as described here:
+  https://wiki.openssl.org/index.php/Talk:OpenSSL_1.1.0_Changes
+  
+  Closes #2258
 
-Daniel Stenberg (19 Jul 2016)
-- ROADMAP: QUIC and TLS 1.3
+- [Travis Burtrum brought this change]
 
-- RELEASE-NOTES: synced with c50980807c5
+  SChannel/WinSSL: Replace Curl_none_md5sum with Curl_schannel_md5sum
 
-Jay Satiro (18 Jul 2016)
-- [Brian Prodoehl brought this change]
+- [Travis Burtrum brought this change]
 
-  curl_global_init: Check if IPv6 works
-  
-  - Curl_ipv6works() is not thread-safe until after the first call, so
-  call it once during global init to avoid a possible race condition.
+  SChannel/WinSSL: Implement public key pinning
   
-  Bug: https://github.com/curl/curl/issues/915
-  PR: https://github.com/curl/curl/pull/918
+  Closes #1429
 
-- [Timothy Polich brought this change]
+- bump: towards 7.58.1
 
-  CURLMOPT_SOCKETFUNCTION.3: fix typo
+- cookies: remove verbose "cookie size:" output
   
-  Closes https://github.com/curl/curl/pull/914
+  It was once used for some debugging/verifying logic but should never have
+  ended up in git!
 
-- [Miroslav Franc brought this change]
+- TODO: hardcode the "localhost" addresses
 
-  library: Fix memory leaks found during static analysis
+- TODO: CURL_REFUSE_CLEARTEXT
   
-  Closes https://github.com/curl/curl/pull/913
+  An idea that popped up in discussions on twitter.
 
-- [Viktor Szakats brought this change]
-
-  cookie.c: Fix misleading indentation
+- progress-bar: don't use stderr explicitly, use bar->out
   
-  Closes https://github.com/curl/curl/pull/911
+  Reported-By: Gisle Vanem
+  Bug: https://github.com/curl/curl/commit/993dd5651a6c853bfe3870f6a69c7b329fa4e8ce#commitcomment-27070080
+
+GitHub (24 Jan 2018)
+- [Gisle Vanem brought this change]
 
-- FAQ: Update FTP directory listing section for MLSD command
+  Fixes for MSDOS etc.
+  
+  djgpp do have 'mkdir(dir, mode)'. Other DOS-compilers does not
+  But djgpp seems the only choice for MSDOS anyway.
   
-  Explain how some FTP servers support the machine readable listing
-  format MLSD from RFC 3659 and compare it to LIST.
+  PellesC do have a 'F_OK' defined in it's <unistd.h>.
   
-  Ref: https://github.com/curl/curl/issues/906
+  Update year in Copyright.
 
-Daniel Stenberg (1 Jul 2016)
-- [Sergei Nikulov brought this change]
+- [Gisle Vanem brought this change]
 
-  Appveyor: Updates for options - CURL_STATICLIB/BUILD_TESTING
-  
-  Closes #892
+  Fix small typo.
 
-- TODO: 17.4 also brings more HTTP/2 support
+Version 7.58.0 (23 Jan 2018)
 
-- TODO: try next proxy if one doesn't work
-  
-  Closes #896
+Daniel Stenberg (23 Jan 2018)
+- RELEASE: 7.58.0
 
-- conn: don't free easy handle data in handler->disconnect
-  
-  Reported-by: Gou Lingfeng
-  Bug: https://curl.haxx.se/mail/lib-2016-06/0139.html
+- [Gisle Vanem brought this change]
 
-- test1244: test different proxy ports same URL
+  progress-bar: get screen width on windows
 
-- curl_global_init.3: improved formatting of the flags
+- test1454: --connect-to with IPv6 address w/o IPv6 support!
 
-- curl_global_init.3: expand on the SSL and WIN32 bits purpose
+- CONNECT_TO: fail attempt to set an IPv6 numerical without IPv6 support
   
-  Reported-by: Richard Gray
-  Bug: https://curl.haxx.se/mail/lib-2016-06/0136.html
+  Bug: https://curl.haxx.se/mail/lib-2018-01/0087.html
+  Reported-by: John Hascall
+  
+  Closes #2257
 
-- [Michael Kaufmann brought this change]
+- docs: fix man page syntax to make test 1140 OK again
 
-  cleanup: minor code cleanup in Curl_http_readwrite_headers()
+- http: prevent custom Authorization headers in redirects
   
-  - the expression of an 'if' was always true
-  - a 'while' contained a condition that was always true
-  - use 'if(k->exp100 > EXP100_SEND_DATA)' instead of 'if(k->exp100)'
-  - fixed a typo
+  ... unless CURLOPT_UNRESTRICTED_AUTH is set to allow them. This matches how
+  curl already handles Authorization headers created internally.
   
-  Closes #889
-
-- SFTP: set a generic error when no SFTP one exists...
+  Note: this changes behavior slightly, for the sake of reducing mistakes.
   
-  ... as otherwise we could get a 0 which would count as no error and we'd
-  wrongly continue and could end up segfaulting.
+  Added test 317 and 318 to verify.
   
-  Bug: https://curl.haxx.se/mail/lib-2016-06/0052.html
-  Reported-by: 暖和的和暖
-
-- ROADMAP: http2 tests are merged, mention http2 perf
+  Reported-by: Craig de Stigter
+  Bug: https://curl.haxx.se/docs/adv_2018-b3bf.html
 
-- docs/README.md: to render nicer pages on github
+- curl: progress bar refresh, get width using ioctl()
   
-  ... as previously the README.cmake would be picked and put at the bottom
-  of the docs page there and it wasn't very representative!
-
-- README.md: change host name for the svg logo
+  Get screen width from the environment variable COLUMNS first, if set. If
+  not, use ioctl(). If nether works, assume 79.
   
-  rawgit.com asks to use the domain cdn.rawgit.com for production
+  Closes #2242
   
-  See #900
-
-- [Viktor Szakats brought this change]
-
-  README.md: use the SVG logo
+  The "refresh" is for the -# output when no total transfer size is
+  known. It will now only use a single updated line even for this case:
+  
+  The "-=O=-" ship moves when data is transferred. The four flying
+  "hashes" move (on a sine wave) on each refresh, independent of data.
 
-- README.md: logo on top!
+- RELEASE-NOTES: synced with bb0ffcc36
 
-- KNOWN_BUGS: 3.4 POP3 expects "CRLF.CRLF" eob for some
-  
-  Closes #740
+- libcurl-env.3: first take
 
-- RELEASE-NOTES: synced with d61c80515aa8
+- TODO: two possible name resolver improvements
 
-- [Michael Osipov brought this change]
+- [Kartik Mahajan brought this change]
 
-  acinclude.m4: improve autodetection of CA bundle on FreeBSD
-  
-  The FreeBSD Port security/ca_root_nss installs the Mozilla NSS CA bundle
-  to /usr/local/share/certs/ca-root-nss.crt. Use this bundle in the
-  discovery process.
-  
-  This change also removes the former FreeBSD path that has been obsolete
-  for 8 years since this FreeBSD ports commit:
-  https://svnweb.freebsd.org/ports/head/security/?view=revision&revision=215953
+  http2: don't close connection when single transfer is stopped
   
-  Closes #894
+  Fixes #2237
+  Closes #2249
 
-- configure: don't specify .lib for libs on windows
+- test558: fix for multissl builds
   
-  Another follow up for crypt32.lib linking with winssl
+  vtls.c:multissl_init() might do a curl_free() call so strip that out to
+  make this work with more builds. We just want to verify that
+  memorytracking works so skipping one line is no harm.
 
-- configure: fix winssl LIBS change typo
+- examples/url2file.c: add missing curl_global_cleanup() call
   
-  follow-up from 120bf29e
+  Reported-by: XhstormR on github
+  Fixes #2245
 
-- TODO: "TCP Fast Open" is done, add monitor pool connections
+- [Michael Gmelin brought this change]
 
-- configure: add crypt32.lib for winssl builds
+  SSH: Fix state machine for ssh-agent authentication
   
-  Necessary since 6cabd78531f
-
-- Makefile.vc: link with crypt32.lib for winssl builds
+  In case an identity didn't match[0], the state machine would fail in
+  state SSH_AUTH_AGENT instead of progressing to the next identity in
+  ssh-agent. As a result, ssh-agent authentication only worked if the
+  identity required happened to be the first added to ssh-agent.
   
-  Necessary since 6cabd78531f
+  This was introduced as part of commit c4eb10e2f06fbd6cc904f1d78e4, which
+  stated that the "else" statement was required to prevent getting stuck
+  in state SSH_AUTH_AGENT. Given the state machine's logic and libssh2's
+  interface I couldn't see how this could happen or reproduce it and I
+  also couldn't find a more detailed description of the problem which
+  would explain a test case to reproduce the problem this was supposed to
+  fix.
   
-  Fixes #853
-
-- [Joel Depooter brought this change]
-
-  VC: Add crypt32.lib to Visual Sudio project template files
+  [0] libssh2_agent_userauth returning LIBSSH2_ERROR_AUTHENTICATION_FAILED
   
-  Closes #854
+  Closes #2248
 
-- vc: fix the build for schannel certinfo support
+- openssl: fix potential memory leak in SSLKEYLOGFILE logic
   
-  Broken since 6cabd785, which adds use of the Curl_extract_certinfo
-  function from the x509asn1.c file.
+  Coverity CID 1427646.
 
-- typedefs: use the full structs in internal code...
+- openssl: fix the libressl build again
+  
+  Follow-up to 84fcaa2e7. libressl does not have the API even if it says it is
+  late OpenSSL version...
   
-  ... and save the typedef'ed names for headers and external APIs.
+  Fixes #2246
+  Closes #2247
+  
+  Reported-by: jungle-boogie on github
 
-- internals: rename the SessionHandle struct to Curl_easy
+- unit1307: test many wildcards too
 
-- headers: forward declare CURL, CURLM and CURLSH as structs
-  
-  Instead of typedef'ing to void, typedef to their corresponding actual
-  struct names to allow compilers to type-check.
+- curl_fnmatch: only allow 5 '*' sections in a single pattern
   
-  Assisted-by: Reinhard Max
+  ... to avoid excessive recursive calls. The number 5 is totally
+  arbitrary and could be modified if someone has a good motivation.
 
-Jay Satiro (22 Jun 2016)
-- vtls: Only call add/getsession if session id is enabled
+- ftp-wildcard: fix matching an empty string with "*[^a]"
   
-  Prior to this change we called Curl_ssl_getsessionid and
-  Curl_ssl_addsessionid regardless of whether session ID reusing was
-  enabled. According to comments that is in case session ID reuse was
-  disabled but then later enabled.
+  .... and avoid advancing the pointer to trigger an out of buffer read.
   
-  The old way was not intuitive and probably not something users expected.
-  When a user disables session ID caching I'd guess they don't expect the
-  session ID to be cached anyway in case the caching is later enabled.
+  Detected by OSS-fuzz
+  Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5251
+  Assisted-by: Max Dymond
 
-Daniel Stenberg (22 Jun 2016)
-- curl.1: the used progress meter suffix is k in lower case
+- SMB: fix numeric constant suffix and variable types
   
-  Closes #883
+  1. don't use "ULL" suffix since unsupported in older MSVC
+  2. use curl_off_t instead of custom long long ifdefs
+  3. make get_posix_time() not do unaligned data access
+  
+  Fixes #2211
+  Closes #2240
+  Reported-by: Chester Liu
 
-- [Sergei Nikulov brought this change]
+- [rouzier brought this change]
 
-  cmake: now using BUILD_TESTING=ON/OFF
+  CURLOPT_TCP_NODELAY.3: fix typo
   
-  CMake build now using BUILD_TESTING=ON/OFF (default is OFF) to build
-  tests and enabling CTest integration. Options BUILD_CURL_TESTS and
-  BUILD_DASHBOARD_REPORTS was removed.
+  Closes #2239
+
+- smtp/pop3/imap_get_message: decrease the data length too...
   
-  Closes #882
+  Follow-up commit to 615edc1f73 which was incomplete.
   
-  Reviewed-by: Brad King
-
-- [Michael Kaufmann brought this change]
+  Assisted-by: Max Dymond
+  Detected by OSS-fuzz
+  Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5206
 
-  cleanup: fix method names in code comments
+- openssl: enable SSLKEYLOGFILE support by default
   
-  Closes #887
+  Fixes #2210
+  Closes #2236
 
-Kamil Dudka (21 Jun 2016)
-- curl-compilers.m4: improve detection of GCC's -fvisibility= flag
+Patrick Monnerat (14 Jan 2018)
+- mime: clone mime tree upon easy handle duplication.
   
-  Some builds of GCC produce output on both stdout and stderr when --help
-  --verbose is used.  The 2>&1 redirection caused them to be arbitrarily
-  interleaved with each other because of stream buffering.  Consequently,
-  grep failed to match the fvisibility= string in the mixed output, even
-  though the string was present in GCC's standard output.
+  A mime tree attached to an easy handle using CURLOPT_MIMEPOST is
+  strongly bound to the handle: there is a pointer to the easy handle in
+  each item of the mime tree and following the parent pointer list
+  of mime items ends in a dummy part stored within the handle.
   
-  This led to silently disabling symbol hiding in some builds of curl.
-
-Daniel Stenberg (19 Jun 2016)
-- tests: fix the HTTP/2 tests
+  Because of this binding, a mime tree cannot be shared between different
+  easy handles, thus it needs to be cloned upon easy handle duplication.
   
-  The HTTP/2 tests brought with commit bf05606ef1f were using the internal
-  name 'http2' for the HTTP/2 server, while in fact that name was already
-  used for the second instance of the HTTP server. This made tests using
-  the second instance (like test 2050) fail after a HTTP/2 test had run.
+  There is no way for the caller to get the duplicated mime tree
+  handle: it is then set to be automatically destroyed upon freeing the
+  new easy handle.
   
-  The server is now known as HTTP/2 internally and within the <server>
-  section in test cases. 1700, 1701 and 1702 were updated accordingly.
+  New test 654 checks proper mime structure duplication/release.
+  
+  Add a warning note in curl_mime_data_cb() documentation about sharing
+  user data between duplicated handles.
+  
+  Closes #2235
 
-- openssl: use more 'const' to fix build warnings with 1.1.0 branch
+- docs: comment about CURLE_READ_ERROR returned by curl_mime_filedata
 
-- curl.1: missed 'T' in the progress unit suffixes
+Daniel Stenberg (13 Jan 2018)
+- test395: HTTP with overflow Content-Length value
 
-- curl.1: mention the unix for the progress meter
+- test394: verify abort of rubbish in Content-Length: value
 
-Patrick Monnerat (16 Jun 2016)
-- os400: add new definitions to ILE/RPG binding.
+- test393: verify --max-filesize with excessive Content-Length
 
-Daniel Stenberg (16 Jun 2016)
-- openssl: fix cert check with non-DNS name fields present
+- HTTP: bail out on negative Content-Length: values
   
-  Regression introduced in 5f5b62635 (released in 7.48.0)
+  ... and make the max filesize check trigger if the value is too big.
   
-  Reported-by: Fabian Ruff
-  Fixes #875
-
-Dan Fandrich (16 Jun 2016)
-- axtls: Use Curl_wait_ms instead of the less-portable usleep
-
-- axtls: Fixed compile after compile 31c521b0
-
-- tests: Added HTTP proxy keywords to tests 1141 & 1142
+  Updates test 178.
+  
+  Reported-by: Brad Spencer
+  Fixes #2212
+  Closes #2223
 
-Jay Satiro (15 Jun 2016)
-- [Sergei Nikulov brought this change]
+Marcel Raad (13 Jan 2018)
+- [Dan Johnson brought this change]
 
-  cmake: Fix build with winldap
+  configure.ac: append extra linker flags instead of prepending them.
+  
+  Link order should list libraries after the libraries that use them,
+  so when we're guessing that we might also need to add -ldl in order
+  to use -lssl, we should add -ldl after -lssl.
   
-  Bug: https://github.com/curl/curl/pull/874
-  Reported-by: Sergei Nikulov
+  Closes https://github.com/curl/curl/pull/2234
 
-- CURLOPT_POSTFIELDS.3: Clarify what happens when set empty
+Daniel Stenberg (13 Jan 2018)
+- RELEASE-NOTES: synced with 6fa10c8fa
+
+Jay Satiro (13 Jan 2018)
+- setopt: fix SSLVERSION to allow CURL_SSLVERSION_MAX_ values
   
-  When CURLOPT_POSTFIELDS is set to an empty string libcurl will send a
-  zero-byte POST. Prior to this change it was documented as sending data
-  from the read callback.
+  Broken since f121575 (precedes 7.56.1).
   
-  This also changes the wording of what happens when empty or NULL so that
-  it's hopefully easier to understand for people whose primary language
-  isn't English.
+  Bug: https://github.com/curl/curl/issues/2225
+  Reported-by: cmfrolick@users.noreply.github.com
   
-  Bug: https://github.com/curl/curl/issues/862
-  Reported-by: Askar Safin
-
-- [Michael Wallner brought this change]
+  Closes https://github.com/curl/curl/pull/2227
 
-  curl_multi_socket_action.3: Fix rewording
+Patrick Monnerat (13 Jan 2018)
+- setopt: reintroduce non-static Curl_vsetopt() for OS400 support
   
-  - Remove some erroneous text.
+  This also upgrades ILE/RPG bindings with latest setopt options.
   
-  Closes https://github.com/curl/curl/pull/865
+  Reported-By: jonrumsey on github
+  Fixes #2230
+  Closes #2233
 
-- [Luo Jinghua brought this change]
+Jay Satiro (11 Jan 2018)
+- [Zhouyihai Ding brought this change]
 
-  resolve: enable protocol family logic for synthesized IPv6
+  http2: fix incorrect trailer buffer size
   
-  - Enable protocol family logic for IPv6 resolves even when support
-  for synthesized addresses is enabled.
+  Prior to this change the stored byte count of each trailer was
+  miscalculated and 1 less than required. It appears any trailer
+  after the first that was passed to Curl_client_write would be truncated
+  or corrupted as well as the size. Potentially the size of some
+  subsequent trailer could be erroneously extracted from the contents of
+  that trailer, and since that size is used by client write an
+  out-of-bounds read could occur and cause a crash or be otherwise
+  processed by client write.
   
-  This is a follow up to the parent commit that added support for
-  synthesized IPv6 addresses from IPv4 on iOS/OS X. The protocol family
-  logic needed for IPv6 was inadvertently excluded if support for
-  synthesized addresses was enabled.
+  The bug appears to have been born in 0761a51 (precedes 7.49.0).
   
-  Bug: https://github.com/curl/curl/issues/863
-  Ref: https://github.com/curl/curl/pull/866
-  Ref: https://github.com/curl/curl/pull/867
+  Closes https://github.com/curl/curl/pull/2231
 
-Daniel Stenberg (7 Jun 2016)
-- [Luo Jinghua brought this change]
+- [Basuke Suzuki brought this change]
 
-  resolve: add support for IPv6 DNS64/NAT64 Networks on OS X + iOS
+  easy: fix connection ownership in curl_easy_pause
   
-  Use getaddrinfo() to resolve the IPv4 address literal on iOS/Mac OS X.
-  If the current network interface doesn’t support IPv4, but supports
-  IPv6, NAT64, and DNS64.
+  Before calling Curl_client_chop_write(), change the owner of connection
+  to the current Curl_easy handle. This will fix the issue #2217.
   
-  Closes #866
-  Fixes #863
+  Fixes https://github.com/curl/curl/issues/2217
+  Closes https://github.com/curl/curl/pull/2221
 
-- tests: two more HTTP/2 tests
+Daniel Stenberg (9 Jan 2018)
+- [Dimitrios Apostolou brought this change]
+
+  system.h: Additionally check __LONG_MAX__ for defining curl_off_t
+  
+  __SIZEOF_LONG__ was introduced in GCC 4.4, __LONG_MAX__ was introduced
+  in GCC 3.3.
   
-  1701 and 1702
+  Closes #2216
 
-- runtests: don't display logs when http2 server fails to start
+- COPYING: it's 2018!
 
-- runtests: make stripfile work on stdout as well
+- progress: calculate transfer speed on milliseconds if possible
   
-  ... and have test 1700 use that to strip out the nghttpx server: headers
+  to increase accuracy for quick transfers
+  
+  Fixes #2200
+  Closes #2206
 
-- http2-tests: test1700 is the first real HTTP/2 test
+Jay Satiro (7 Jan 2018)
+- scripts: allow all perl scripts to be run directly
   
-  It requires that 'nghttpx' is in the PATH, and it will run the tests
-  using nghttpx as a front-end proxy in front of the standard HTTP/1 test
-  server. This uses HTTP/2 over plain TCP.
+  - Enable execute permission (chmod +x)
   
-  If you like me have nghttpx installed in a custom path, you can run test 1700
-  like this:
+  - Change interpreter to /usr/bin/env perl
   
-  $ PATH=$PATH:$HOME/build-nghttp2/bin/ ./runtests.pl 1700
+  Closes https://github.com/curl/curl/pull/2222
 
-- RELEASE-NOTES: synced with 34855feeb4c299
+- mail-rcpt.d: fix short-text description
 
-Steve Holme (6 Jun 2016)
-- schannel: Disable ALPN on Windows < 8.1
+- build: remove HAVE_LIMITS_H check
   
-  Calling QueryContextAttributes with SECPKG_ATTR_APPLICATION_PROTOCOL
-  fails on Windows < 8.1 so we need to disable ALPN on these OS versions.
+  .. because limits.h presence isn't optional, it's required by C89.
   
-  Inspiration provide by: Daniel Seither
+  Ref: http://port70.net/~nsz/c/c89/c89-draft.html#2.2.4.2
   
-  Closes #848
-  Fixes #840
+  Closes https://github.com/curl/curl/pull/2215
 
-Jay Satiro (5 Jun 2016)
-- checksrc: Add LoadLibrary to the banned functions list
+- openssl: fix memory leak of SSLKEYLOGFILE filename
+  
+  - Free the copy of SSLKEYLOGFILE env returned by curl_getenv during ossl
+    initialization.
   
-  LoadLibrary was supplanted by Curl_load_library for security
-  reasons in 6df916d.
+  Caught by ASAN.
 
-- http: Fix HTTP/2 connection reuse
+- Revert "curl/system.h: fix compilation with gcc on AIX PPC and IA64 HP-UX"
   
-  - Change the parser to not require a minor version for HTTP/2.
+  This reverts commit c97648b55080343bb371522bf4233e94a2a13a99.
   
-  HTTP/2 connection reuse broke when we changed from HTTP/2.0 to HTTP/2
-  in 8243a95 because the parser still expected a minor version.
+  SIZEOF_LONG should not be checked in system.h since that macro is only
+  defined when building libcurl.
   
-  Bug: https://github.com/curl/curl/issues/855
-  Reported-by: Andrew Robbins, Frank Gevaerts
+  Ref: https://github.com/curl/curl/pull/2186#issuecomment-354767080
+  Ref: https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
 
-Steve Holme (4 Jun 2016)
-- connect.c: Fixed compilation warning from commit 332e8d6164
-  
-  connect.c:952:5: warning: suggest explicit braces to avoid ambiguous 'else'
+Michael Kaufmann (30 Dec 2017)
+- test1554: improve the error handling
+
+- test1554: add global initialization and cleanup
 
-- win32: Used centralised verify windows version function
+Daniel Stenberg (29 Dec 2017)
+- curl_version_info.3: call the argument 'age'
   
-  Closes #845
+  Reported-by: Pete Lomax
+  Bug: https://curl.haxx.se/mail/lib-2017-12/0074.html
 
-- win32: Added verify windows version functionality
+Patrick Monnerat (27 Dec 2017)
+- [Mikalai Ananenka brought this change]
 
-- win32: Introduced centralised verify windows version function
+  brotli: data at the end of content can be lost
+  
+  Decoding loop implementation did not concern the case when all
+  received data is consumed by Brotli decoder and the size of decoded
+  data internally hold by Brotli decoder is greater than CURL_MAX_WRITE_SIZE.
+  For content with unencoded length greater than CURL_MAX_WRITE_SIZE this
+  can result in the loss of data at the end of content.
+  
+  Closes #2194
 
-Kamil Dudka (3 Jun 2016)
-- tool_urlglob: fix off-by-one error in glob_parse()
+Jay Satiro (26 Dec 2017)
+- examples/cacertinmem: ignore cert-already-exists error
   
-  ... causing SIGSEGV while parsing URL with too many globs.
-  Minimal example:
+  - Ignore X509_R_CERT_ALREADY_IN_HASH_TABLE errors in the CTX callback
+    since it's possible the cert may have already been loaded by libcurl.
   
-  $ curl $(for i in $(seq 101); do printf '{a}'; done)
+  - Remove the EXAMPLE code in the CURLOPT_SSL_CTX_FUNCTION.3 doc.
+    Instead have it direct the reader to this cacertinmem.c example.
   
-  Reported-by: Romain Coltel
-  Bug: https://bugzilla.redhat.com/1340757
-
-Daniel Stenberg (1 Jun 2016)
-- [Benjamin Kircher brought this change]
-
-  libcurl-multi.3: fix small typo
+  - Fix the CA certificate to use the right CA for example.com, Digicert.
   
-  Closes #850
+  Bug: https://curl.haxx.se/mail/lib-2017-12/0057.html
+  Reported-by: Thomas van Hesteren
+  
+  Closes https://github.com/curl/curl/pull/2182
 
-- [Viktor Szakats brought this change]
+- [Gisle Vanem brought this change]
 
-  makefile.m32: add crypt32 for winssl builds
+  tool_getparam: Support size modifiers for --max-filesize
   
-  Dependency added by 6cabd78
+  - Move the size modifier detection code from limit-rate to its own
+    function so that it can also be used with max-filesize.
   
-  Closes #849
-
-- [Ivan Avdeev brought this change]
-
-  vtls: fix ssl session cache race condition
+  Size modifiers are the suffixes such as G (gigabyte), M (megabyte) etc.
+  
+  For example --max-filesize 1G
   
-  Sessionid cache management is inseparable from managing individual
-  session lifetimes. E.g. for reference-counted sessions (like those in
-  SChannel and OpenSSL engines) every session addition and removal
-  should be accompanied with refcount increment and decrement
-  respectively. Failing to do so synchronously leads to a race condition
-  that causes symptoms like use-after-free and memory corruption.
-  This commit:
-   - makes existing session cache locking explicit, thus allowing
-     individual engines to manage lock's scope.
-   - fixes OpenSSL and SChannel engines by putting refcount management
-     inside this lock's scope in relevant places.
-   - adds these explicit locking calls to other engines that use
-     sessionid cache to accommodate for this change. Note, however,
-     that it is unknown whether any of these engines could also have
-     this race.
+  Ref: https://curl.haxx.se/mail/archive-2017-12/0000.html
   
-  Bug: https://github.com/curl/curl/issues/815
-  Fixes #815
-  Closes #847
+  Closes https://github.com/curl/curl/pull/2179
 
-- [Andrew Kurushin brought this change]
+Steve Holme (22 Dec 2017)
+- build: Fixed incorrect script termination from commit ad1dc10e61
 
-  schannel: add CURLOPT_CERTINFO support
-  
-  Closes #822
+- Makefile.vc: Added our standard copyright header
+
+- winbuild: Added support for VC15
 
-- RELEASE-NOTES: synced with 142ee9fa15002315
+- build: Added Visual Studio 2017 project files
 
-- openssl: rename the private SSL_strerror
+- build-wolfssl.bat: Added support for VC15
+
+- build-openssl.bat: Added support for VC15
+
+Jay Satiro (22 Dec 2017)
+- [Dimitrios Apostolou brought this change]
+
+  curl/system.h: fix compilation with gcc on AIX PPC and IA64 HP-UX
   
-  ... to make it not look like an OpenSSL function
+  Closes https://github.com/curl/curl/pull/2186
 
-- [Michael Kaufmann brought this change]
+- [Mattias Fornander brought this change]
 
-  openssl: Use correct buffer sizes for error messages
+  examples/rtsp: fix error handling macros
   
-  Closes #844
+  Closes https://github.com/curl/curl/pull/2185
 
-- curl: fix -q [regression]
+Patrick Monnerat (20 Dec 2017)
+- curl_easy_reset: release mime-related data.
   
-  This broke in 7.49.0 with commit e200034425a7625
+  Move curl_mime_initpart() and curl_mime_cleanpart() calls to lower-level
+  functions dealing with UserDefined structure contents.
+  This avoids memory leakages on curl-generated part mime headers.
+  New test 2073 checks this using the cli tool --next option: it
+  triggers a valgrind error if bug is present.
   
-  Fixes #842
+  Bug: https://curl.haxx.se/mail/lib-2017-12/0060.html
+  Reported-by: Martin Galvan
 
-- URL parser: allow URLs to use one, two or three slashes
+- content_encoding: rework zlib_inflate
   
-  Mostly in order to support broken web sites that redirect to broken URLs
-  that are accepted by browsers.
+  - When zlib version is < 1.2.0.4, process gzip trailer before considering
+  extra data as an error.
+  - Inflate with Z_BLOCK instead of Z_SYNC_FLUSH to maximize correct data
+  and minimize corrupt data output.
+  - Do not try to restart deflate decompression in raw mode if output has
+  started or if the leading data is not available anymore.
+  - New test 232 checks inflating raw-deflated content.
   
-  Browsers are typically even more leniant than this as the WHATWG URL
-  spec they should allow an _infinite_ amount. I tested 8000 slashes with
-  Firefox and it just worked.
+  Closes #2068
+
+- brotli: allow compiling with version 0.6.0.
+  
+  Some error codes were not yet defined in brotli 0.6.0: do not issue code
+  for them in this case.
+
+Daniel Stenberg (13 Dec 2017)
+- CURLOPT_READFUNCTION.3: refer to argument with correct name
   
-  Added test case 1141, 1142 and 1143 to verify the new parser.
+  Bug: #2175
   
-  Closes #791
+  [ci skip]
 
-- [Renaud Lehoux brought this change]
+- rand: add a clang-analyzer work-around
+  
+  scan-build would warn on a potential access of an uninitialized
+  buffer. I deem it a false positive and had to add this somewhat ugly
+  work-around to silence it.
 
-  cmake: Added missing mbedTLS support
+- krb5: fix a potential access of uninitialized memory
   
-  Closes #837
+  A scan-build warning.
 
-- [Renaud Lehoux brought this change]
+- conncache: fix a return code [regression]
+  
+  This broke in 07cb27c98e. Make sure to return 'result' properly. Pointed
+  out by scan-build!
 
-  mbedtls: removed unused variables
+- curl: support >256 bytes warning messsages
   
-  Closes #838
+  Bug: #2174
 
-- [Frank Gevaerts brought this change]
+Michael Kaufmann (12 Dec 2017)
+- libssh: fix a syntax error in configure.ac
+  
+  Follow-up to c92d2e1
+  
+  Closes #2172
 
-  http: add CURLINFO_HTTP_VERSION and %{http_version}
+Daniel Stenberg (12 Dec 2017)
+- examples/smtp-mail.c: use separate defines for options and mail
   
-  Adds access to the effectively used http version to both libcurl and
-  curl.
+  ... to make it clearer that the options want address-only, while the
+  headers in an email can also have the real name.
   
-  Closes #799
+  Assisted-by: Sean MacLennan
 
-- bump: start the journey toward 7.50.0
+- THANKS: added missing names
+  
+  ... as I reran the contrithanks script after the mailmap name fixups.
 
-- [Marcel Raad brought this change]
+- mailmap: added/clarified several names
 
-  openssl: fix build with OPENSSL_NO_COMP
+- setopt: less *or equal* than INT_MAX/1000 should be fine
   
-  With OPENSSL_NO_COMP defined, there is no function
-  SSL_COMP_free_compression_methods
+  ... for the CURLOPT_TIMEOUT, CURLOPT_CONNECTTIMEOUT and
+  CURLOPT_SERVER_RESPONSE_TIMEOUT range checks.
   
-  Closes #836
+  Reported-by: Dominik Hölzl
+  Bug: https://curl.haxx.se/mail/lib-2017-12/0037.html
+  
+  Closes #2173
 
-- [Gisle Vanem brought this change]
+- [Dmitry Kostjuchenko brought this change]
 
-  memdebug: fix MSVC crash with -DMEMDEBUG_LOG_SYNC
+  vtls: replaced getenv() with curl_getenv()
   
-  Fixes #828
+  Fixed undefined symbol of getenv() which does not exist when compiling
+  for Windows 10 App (CURL_WINDOWS_APP). Replaced getenv() with
+  curl_getenv() which is aware of getenv() absence when CURL_WINDOWS_APP
+  is defined.
+  
+  Closes #2171
 
-- [Jonathan brought this change]
+- RELEASE-NOTES: synced with 3b9ea70ee
 
-  README.md: polish
+- TODO: Expose tried IP addresses that failed
   
-  Closes #834
-
-- RELEASE-NOTES: fix vuln link
+  Suggested-by: Rainer Canavan
+  
+  Closes #2126
 
-Version 7.49.1 (30 May 2016)
+- curl.1: mention http:// and https:// as valid proxy prefixes
 
-Daniel Stenberg (30 May 2016)
-- RELEASE-NOTES: 7.49.1
+- curl.1: documented two missing valid exit codes
 
-- [Steve Holme brought this change]
+- CURLOPT_DNS_LOCAL_IP4.3: fixed the seel also to not self-reference
 
-  loadlibrary: Only load system DLLs from the system directory
-  
-  Inspiration provided by: Daniel Stenberg and Ray Satiro
+- Revert "curl: don't set CURLOPT_INTERLEAVEDATA"
   
-  Bug: https://curl.haxx.se/docs/adv_20160530.html
+  This reverts commit 9ffad8eb1329bb35c8988115ac7ed85cf91ef955.
   
-  Ref: Windows DLL hijacking with curl, CVE-2016-4802
+  It was actually added rather recently in 8e8afa82cbb629 due to a crash
+  that would otherwise happen in the RTSP code. As I don't think we've
+  fixed that behavior yet, we better keep this work-around until we have
+  fixed it better.
 
-- ssh: fix version number check typo
+Michael Kaufmann (10 Dec 2017)
+- tests: mark data files as non-executable in git
 
-Jay Satiro (29 May 2016)
-- curl_share_setopt.3: Add min ver needed for ssl session lock
-  
-  Bug: https://github.com/curl/curl/issues/826
-  Reported-by: Michael Wallner
+- tests: update .gitignore for libtests
 
-Daniel Stenberg (29 May 2016)
-- ssh: fix build for libssh2 before 1.2.6
-  
-  The statvfs functionality was added to libssh2 in that version, so we
-  switch off that functionality when built with older libraries.
+Daniel Stenberg (10 Dec 2017)
+- multi_done: prune DNS cache
   
-  Fixes #831
-
-- mbedtls: fix includes so snprintf() works
+  Prune the DNS cache immediately after the dns entry is unlocked in
+  multi_done. Timed out entries will then get discarded in a more orderly
+  fashion.
   
-  Regression from the previous *printf() rearrangements, this file missed to
-  include the correct header to make sure snprintf() works universally.
+  Test506 is updated
   
-  Reported-by: Moti Avrahami
-  Bug: https://curl.haxx.se/mail/lib-2016-05/0196.html
-
-Steve Holme (23 May 2016)
-- checksrc.pl: Added variants of strcat() & strncat() to banned function list
+  Reported-by: Oleg Pudeyev
   
-  Added support for checking the tchar, unicode and mbcs variants of
-  strcat() and strncat() in the banned function list.
+  Fixes #2169
+  Closes #2170
 
-Daniel Stenberg (23 May 2016)
-- smtp: minor ident (white space) fixes
+- mailmap: fixup two old git Author "aliases"
 
-- THANKS: updated after script fixes
+Jay Satiro (10 Dec 2017)
+- openssl: Disable file buffering for Win32 SSLKEYLOGFILE
   
-  Now giving credit properly to github user names, fixed some UTF-8 issues
-  and added names discovered when contrithanks was improved.
+  Prior to this change SSLKEYLOGFILE used line buffering on WIN32 just
+  like it does for other platforms. However, the Windows CRT does not
+  actually support line buffering (_IOLBF) and will use full buffering
+  (_IOFBF) instead. We can't use full buffering because multiple processes
+  may be writing to the file and that could lead to corruption, and since
+  full buffering is the only buffering available this commit disables
+  buffering for Windows SSLKEYLOGFILE entirely (_IONBF).
+  
+  Ref: https://github.com/curl/curl/pull/1346#issuecomment-350530901
 
-- THANKS-filter: more name cleanups
+Daniel Stenberg (10 Dec 2017)
+- RESOLVE: output verbose text when trying to set a duplicate name
+  
+  ... to help users understand what is or isn't done!
 
-- contrithanks.sh: exclude existing names case insensitively
+- CURLOPT_DNS_CACHE_TIMEOUT.3: see also CURLOPT_RESOLVE
 
-- contrithanks.sh: use same grep pattern and -a flag as contributors.sh
+- [John DeHelian brought this change]
 
-- contributors.sh: better grep pattern, use grep -a
+  sftp: allow quoted commands to use relative paths
+  
+  Closes #1900
 
-- THANKS-filter: fix more names
+Jay Satiro (8 Dec 2017)
+- [Richard Alcock brought this change]
 
-- contrithanks.sh: do the same github fix as contributors.sh
+  CURLOPT_PRIVATE.3: fix grammar
+  
+  - Change "never does nothing" double-negative to "never does anything".
   
-  from 1577bfa35ba
+  Closes https://github.com/curl/curl/pull/2168
 
-Jay Satiro (23 May 2016)
-- contributors: Show GitHub username if real name unknown
+Daniel Stenberg (8 Dec 2017)
+- curl: remove __EMX__ #ifdefs
   
-  Prior to this change if a GitHub contributor's real name was unknown
-  they would be omitted from the list.
+  These are OS/2-specific things added to the code in the year 2000. They
+  were always ugly. If there's any user left, they still don't need it
+  done this way.
   
-  Bug: https://github.com/curl/curl/issues/824
+  Closes #2166
 
-Daniel Stenberg (21 May 2016)
-- RELEASE-NOTES: synced with 3caaeffbe8ded4
-
-Jay Satiro (20 May 2016)
-- openssl: cleanup must free compression methods
+Jay Satiro (8 Dec 2017)
+- openssl: improve data-pending check for https proxy
   
-  - Free compression methods if OpenSSL 1.0.2 to avoid a memory leak.
+  - Allow proxy_ssl to be checked for pending data even when connssl does
+    not yet have an SSL handle.
   
-  Bug: https://github.com/curl/curl/issues/817
-  Reported-by: jveazey@users.noreply.github.com
-
-Daniel Stenberg (20 May 2016)
-- [Gisle Vanem brought this change]
-
-  curl_multibyte: fix compiler error
+  This change is for posterity. Currently there doesn't seem to be a code
+  path that will cause a pending data check when proxyssl could have
+  pending data and the connssl handle doesn't yet exist [1].
   
-  While compiling lib/curl_multibyte.c with '-DUSE_WIN32_IDN' etc. I was
-  getting:
+  [1]: Recall that an https proxy connection starts out in connssl but if
+  the destination is also https then the proxy SSL backend data is moved
+  from connssl to proxyssl, which means connssl handle is temporarily
+  empty until an SSL handle for the destination can be created.
   
-  f:\mingw32\src\inet\curl\lib\memdebug.h(38): error C2054: expected '('
-  to follow 'CURL_EXTERN'
+  Ref: https://github.com/curl/curl/commit/f4a6238#commitcomment-24396542
   
-  f:\mingw32\src\inet\curl\lib\memdebug.h(38): error C2085:
-  'curl_domalloc': not in formal parameter list
-
-- THANKS-filter: make Jan-E get proper credit
-
-- [Jan-E brought this change]
+  Closes https://github.com/curl/curl/pull/1916
 
-  winbuild/Makefile.vc: Fix check on SSL, MBEDTLS, WINSSL exclusivity
+Daniel Stenberg (8 Dec 2017)
+- curl: don't set CURLOPT_INTERLEAVEDATA
   
-  Closes #818
-
-- [Alexander Traud brought this change]
-
-  libcurl.m4: Avoid obsolete warning
+  That data is only ever used by the CURLOPT_INTERLEAVEFUNCTION callback
+  and that option isn't set or used by the curl tool!
   
-  Closes #821
-
-Jay Satiro (20 May 2016)
-- [Michael Kaufmann brought this change]
-
-  CURLOPT_CONNECT_TO.3: user must not free the list prematurely
+  Updates the 9 tests that verify --libcurl
   
-  The connect-to list isn't copied so as long as the handle may be used
-  for a transfer the list must be valid.
+  Closes #2167
+
+- curl.h: remove incorrect comment about ERRORBUFFER
   
-  Bug: https://github.com/curl/curl/pull/819
-  Reported-by: Michael Kaufmann
+  ... error messages are _not_ sent to stderr if this is not set.
 
-Daniel Stenberg (19 May 2016)
-- RELEASE-NOTES: synced with 48114a8634242c
+- [Michael Felt brought this change]
 
-- openssl: ERR_remove_thread_state() is deprecated in latest 1.1.0
+  configure: add AX_CODE_COVERAGE only if using gcc
   
-  See OpenSSL commit 21e001747d4a
+  Fixes #2076
+  Closes #2125
 
-- http2: use HTTP/2 in the HTTP/1.1-alike header
+- curl: limit -# update frequency for unknown total size
   
-  ... when generating them, not "2.0" as the protocol is called just
-  HTTP/2 and nothing else.
-
-Jay Satiro (19 May 2016)
-- dist: include curl_multi_socket_all.3
+  Make it use a max 10Hz update frequency for this case as well. Return
+  early if the "point" hasn't moved since last invoke.
   
-  Closes https://github.com/curl/curl/pull/816
-
-Steve Holme (18 May 2016)
-- bump: Start work on 7.49.1
+  Reported-by: Elliot Saba
+  
+  Fixes #2158
+  Closes #2163
 
-Daniel Stenberg (18 May 2016)
-- curlbuild.h.dist: check __LP64__ as well to fix MIPS build
+- BINDINGS: another PostgreSQL client
   
-  The preprocessor check that sets up the 32bit defines for non-configure
-  builds didn't work properly for MIPS systems as __mips__ is defined for
-  both 32bit and 64bit. Now __LP64__ is also checked and indicates 64bit.
+  ...the former link is dead.
   
-  Reported-by: Tomas Jakobsson
-  Fixes #813
+  Reported-by: Frank Gevaerts
 
-- [Marcel Raad brought this change]
+- [Zachary Seguin brought this change]
 
-  schannel: fix compile break with MSVC XP toolset
+  CONNECT: keep close connection flag in http_connect_state struct
   
-  For the Windows XP toolset of Visual C++ 2013/2015, the old Windows SDK
-  7.1 is used. In this case, _USING_V110_SDK71_ is defined.
-  
-  Closes #812
+  Fixes #2088
+  Closes #2157
 
-- dist: include CHECKSRC.md
-  
-  Reported-by: Paul Howarth
-  Bug: https://curl.haxx.se/mail/lib-2016-05/0116.html
+- [Per Malmberg brought this change]
 
-- test/Makefile.am: include manpage-scan.pl and nroff-scan.pl in dist
+  include: get netinet/in.h before linux/tcp.h
   
-  Reported-by: Ray Satiro
-  Bug: https://curl.haxx.se/mail/lib-2016-05/0113.html
-
-Version 7.49.0 (17 May 2016)
+  ... to allow build on older Linux dists (specifically CentOS 4.8 on gcc
+  4.8.5)
+  
+  Closes #2160
 
-Daniel Stenberg (17 May 2016)
-- THANKS: 24 new names from 7.49.0 release notes
+- openldap: fix checksrc nits
 
-- RELEASE-NOTES: 7.49.0
+- [Stepan Broz brought this change]
 
-- mbedtls/polarssl: set "hostname" unconditionally
-  
-  ...as otherwise the TLS libs will skip the CN/SAN check and just allow
-  connection to any server. curl previously skipped this function when SNI
-  wasn't used or when connecting to an IP address specified host.
+  openldap: add commented out debug possibilities
   
-  CVE-2016-3739
+  ... to aid debugging openldap library using its built-in debug messages.
   
-  Bug: https://curl.haxx.se/docs/adv_20160518A.html
-  Reported-by: Moti Avrahami
+  Closes #2159
 
-- [Frank Gevaerts brought this change]
-
-  CURLOPT_RESOLVE.3: fix typo
+- examples: move threaded-shared-conn.c to the "complicated" ones
   
-  Closes #811
-
-- docs: CURLOPT_RESOLVE overrides CURLOPT_IPRESOLVE
+  ... due it relying on pthreads to link.
 
-- KNOWN_BUGS: GnuTLS backend skips really long certificate fields
+- RELEASE-NOTES: synced with b261c44e8
   
-  Closes #762
+  ... and bump next release version to 7.58.0
 
-- CURLOPT_HTTPPOST.3: the data needs to be around while in use
+- [Jan Ehrhardt brought this change]
 
-- openssl: get_cert_chain: fix NULL dereference
+  URL: tolerate backslash after drive letter for FILE:
   
-  CID 1361815: Explicit null dereferenced (FORWARD_NULL)
-
-- openssl: get_cert_chain: avoid NULL dereference
+  ... as in "file://c:\some\path\curl.out"
   
-  CID 1361811: Explicit null dereferenced (FORWARD_NULL)
+  Reviewed-by: Matthew Kerwin
+  Closes #2154
 
-- dprintf_formatf: fix (false?) Coverity warning
-  
-  CID 1024412: Memory - illegal accesses (OVERRUN). Claimed to happen when
-  we run over 'workend' but the condition says <= workend and for all I
-  can see it should be safe. Compensating for the warning by adding a byte
-  margin in the buffer.
-  
-  Also, removed the extra brace level indentation in the code and made it
-  so that 'workend' is only assigned once within the function.
+- [Randall S. Becker brought this change]
 
-- RELEASE-NOTES: synced with 2dcb5adc72d6
+  tests: added netinet/in6.h includes in test servers
 
-- THANKS-filter: fixed Jonathan Cardoso
+- [Randall S. Becker brought this change]
 
-Jay Satiro (15 May 2016)
-- ftp: fix incorrect out-of-memory code in Curl_pretransfer
-  
-  - Return value type must match function type.
+  configure: check for netinet/in6.h
   
-  s/CURLM_OUT_OF_MEMORY/CURLE_OUT_OF_MEMORY/
+  Needed by HPE NonStop NSE and NSX systems
   
-  Caught by Travis CI
+  Fixes #2146
+  Closes #2155
 
-Daniel Stenberg (15 May 2016)
-- ftp wildcard: segfault due to init only in multi_perform
+- curl-config: add --ssl-backends
   
-  The proper FTP wildcard init is now more properly done in Curl_pretransfer()
-  and the corresponding cleanup in Curl_close().
+  Lists all SSL backends that were enabled at build-time.
   
-  The previous place of init/cleanup code made the internal pointer to be NULL
-  when this feature was used with the multi_socket() API, as it was made within
-  the curl_multi_perform() function.
-  
-  Reported-by: Jonathan Cardoso Machado
-  Fixes #800
+  Suggested-by: Oleg Pudeyev
+  Fixes #2128
 
-Jay Satiro (13 May 2016)
-- libcurl-tlibcurl-thread: Update OpenSSL links
+- conncache: only allow multiplexing within same multi handle
+  
+  Connections that are used for HTTP/1.1 Pipelining or HTTP/2 multiplexing
+  only get additional transfers added to them if the existing connection
+  is held by the same multi or easy handle. libcurl does not support doing
+  HTTP/2 streams in different threads using a shared connection.
   
-  Because the old OpenSSL link now redirects to their master documentation
-  (currently 1.1.0), which does not document the required actions for
-  OpenSSL <= 1.0.2.
+  Closes #2152
 
-Daniel Stenberg (13 May 2016)
-- [Viktor Szakats brought this change]
+- threaded-shared-conn.c: fixed typo in commenta
 
-  darwinssl.c: fix OS X codename typo in comment
+- threaded-shared-conn.c: new example
 
-- RELEASE-NOTES: synced with 68701e51c1f7
+- conncache: fix several lock issues
+  
+  If the lock is released before the dealings with the bundle is over, it may
+  have changed by another thread in the mean time.
   
-  Added 8 bug fixes and 5 more contrbutors
+  Fixes #2132
+  Fixes #2151
+  Closes #2139
 
-- [Jay Satiro brought this change]
+- libssh: remove dead code in sftp_qoute
+  
+  ... by removing a superfluous NULL pointer check that also confuses
+  Coverity.
+  
+  Fixes #2143
+  Closes #2153
 
-  mprintf: Fix processing of width and prec args
+- sasl_getmesssage: make sure we have a long enough string to pass
   
-  Prior to this change a width arg could be erroneously output, and also
-  width and precision args could not be used together without crashing.
+  For pop3/imap/smtp, added test 891 to somewhat verify the pop3
+  case.
   
-  "%0*d%s", 2, 9, "foo"
+  For this, I enhanced the pingpong test server to be able to send back
+  responses with LF-only instead of always using CRLF.
   
-  Before: "092"
-  After: "09foo"
+  Closes #2150
+
+- libssh2: remove dead code from SSH_SFTP_QUOTE
   
-  "%*.*s", 5, 2, "foo"
+  Figured out while reviewing code in the libssh backend. The pointer was
+  checked for NULL after having been dereferenced, so we know it would
+  always equal true or it would've crashed.
   
-  Before: crash
-  After: "   fo"
+  Pointed-out-by: Nikos Mavrogiannopoulos
   
-  Test 557 is updated to verify this and more
+  Bug #2143
+  Closes #2148
 
-- [Michael Kaufmann brought this change]
+- ssh-libssh.c: please checksrc
 
-  ConnectionExists: follow-up fix for proxy re-use
+Nikos Mavrogiannopoulos (4 Dec 2017)
+- libssh: fixed dereference in statvfs access
   
-  Follow-up commit to 5823179
+  The behavior is now equivalent to ssh.c when SSH_SFTP_QUOTE_STATVFS
+  handling fails.
   
-  Closes #648
+  Fixes #2142
 
-- [Per Malmberg brought this change]
+Daniel Stenberg (4 Dec 2017)
+- [Guitared brought this change]
 
-  darwinssl: fix certificate verification disable on OS X 10.8
+  RESOURCES: update spec names
   
-  The new way of disabling certificate verification doesn't work on
-  Mountain Lion (OS X 10.8) so we need to use the old way in that version
-  too. I've tested this solution on versions 10.7.5, 10.8, 10.9, 10.10.2
-  and 10.11.
-  
-  Closes #802
-
-- [Cory Benfield brought this change]
+  Closes #2145
 
-  http2: Add space between colon and header value
+Nikos Mavrogiannopoulos (3 Dec 2017)
+- libssh: corrected use of sftp_statvfs() in SSH_SFTP_QUOTE_STATVFS
   
-  curl's representation of HTTP/2 responses involves transforming the
-  response to a format that is similar to HTTP/1.1. Prior to this change,
-  curl would do this by separating header names and values with only a
-  colon, without introducing a space after the colon.
+  The previous code was incorrectly following the libssh2 error detection
+  for libssh2_sftp_statvfs, which is not correct for libssh's sftp_statvfs.
   
-  While this is technically a valid way to represent a HTTP/1.1 header
-  block, it is much more common to see a space following the colon. This
-  change introduces that space, to ensure that incautious tools are safely
-  able to parse the header block.
+  Fixes #2142
   
-  This also ensures that the difference between the HTTP/1.1 and HTTP/2
-  response layout is as minimal as possible.
+  Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
+
+- libssh: no need to call sftp_get_error as ssh_get_error is sufficient
   
-  Bug: https://github.com/curl/curl/issues/797
+  Fixes #2141
   
-  Closes #798
-  Fixes #797
+  Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
 
-Kamil Dudka (12 May 2016)
-- openssl: fix compile-time warning in Curl_ossl_check_cxn()
+Daniel Stenberg (2 Dec 2017)
+- libssh: fix minor static code analyzer nits
+  
+  - remove superfluous NULL check which otherwise tricks the static code
+  analyzers to assume NULL pointer dereferences.
   
-  ... introduced in curl-7_48_0-293-g2968c83:
+  - fix fallthrough in switch()
   
-  Error: COMPILER_WARNING:
-  lib/vtls/openssl.c: scope_hint: In function ‘Curl_ossl_check_cxn’
-  lib/vtls/openssl.c:767:15: warning: conversion to ‘int’ from ‘ssize_t’
-  may alter its value [-Wconversion]
+  - indent mistake
 
-Jay Satiro (11 May 2016)
-- openssl: stricter connection check function
+- openssl: pkcs12 is supported by boringssl
   
-  - In the case of recv error, limit returning 'connection still in place'
-  to EINPROGRESS, EAGAIN and EWOULDBLOCK.
+  Removes another #ifdef for BoringSSL
   
-  This is an improvement on the parent commit which changed the openssl
-  connection check to use recv MSG_PEEK instead of SSL_peek.
+  Pointed-out-by: David Benjamin
   
-  Ref: https://github.com/curl/curl/commit/856baf5#comments
+  Closes #2134
 
-Daniel Stenberg (11 May 2016)
-- [Anders Bakken brought this change]
+- [Jay Satiro brought this change]
 
-  TLS: SSL_peek is not a const operation
+  travis: use pip2 instead of pip
   
-  Calling SSL_peek can cause bytes to be read from the raw socket which in
-  turn can upset the select machinery that determines whether there's data
-  available on the socket.
+  .. since now mac osx image expects pip2 or pip3, and doesn't know pip:
   
-  Since Curl_ossl_check_cxn only tries to determine whether the socket is
-  alive and doesn't actually need to see the bytes SSL_peek seems like
-  the wrong function to call.
+  0.01s$ pip install --user cpp-coveralls
+  /Users/travis/.travis/job_stages: line 57: pip: command not found
   
-  We're able to occasionally reproduce a connect timeout due to this
-  bug. What happens is that Curl doesn't know to call SSL_connect again
-  after the peek happens since data is buffered in the SSL buffer and thus
-  select won't fire for this socket.
+  Ref: https://github.com/travis-ci/travis-ci/issues/8829
   
-  Closes #795
+  Closes https://github.com/curl/curl/pull/2133
 
-Jay Satiro (9 May 2016)
-- [Daniel Stenberg brought this change]
+- [Nikos Mavrogiannopoulos brought this change]
 
-  TLS: move the ALPN/NPN enable bits to the connection
+  lib582: do not verify host for SFTP
   
-  Only protocols that actually have a protocol registered for ALPN and NPN
-  should try to get that negotiated in the TLS handshake. That is only
-  HTTPS (well, http/1.1 and http/2) right now. Previously ALPN and NPN
-  would wrongly be used in all handshakes if libcurl was built with it
-  enabled.
+  This SFTP test fails with libssh back-end due to failure to verify
+  the peer. Disable peer verification in the test as there seems to
+  be the intention of the test.
   
-  Reported-by: Jay Satiro
+  Note that the libssh back-end automatically verifies the peer's
+  host using the default known_hosts file.
   
-  Fixes #789
+  Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
 
-Daniel Stenberg (8 May 2016)
-- libcurl-thread.3: openssl 1.1.0 is safe, and so is boringssl
+- [Nikos Mavrogiannopoulos brought this change]
 
-- [Antonio Larrosa brought this change]
-
-  connect: fix invalid "Network is unreachable" errors
-  
-  Sometimes, in systems with both ipv4 and ipv6 addresses but where the
-  network doesn't support ipv6, Curl_is_connected returns an error
-  (intermittently) even if the ipv4 socket connects successfully.
+  libssh: added SFTP support
   
-  This happens because there's a for-loop that iterates on the sockets but
-  the error variable is not resetted when the ipv4 is checked and is ok.
+  The SFTP back-end supports asynchronous reading only, limited
+  to 32-bit file length. Writing is synchronous with no other
+  limitations.
   
-  This patch fixes this problem by setting error to 0 when checking the
-  second socket and not having a result yet.
+  This also brings keyboard-interactive authentication.
   
-  Fixes #794
+  Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
 
-Jay Satiro (5 May 2016)
-- FAQ: refer to thread safety guidelines
+- [Nikos Mavrogiannopoulos brought this change]
 
-Daniel Stenberg (3 May 2016)
-- connections: non-HTTP proxies on different ports aren't reused either
+  symbols-in-versions: added new symbols with 7.56.3 version
   
-  Reported-by: Oleg Pudeyev and fuchaoqun
-  
-  Fixes #648
+  Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
+
+- [Nikos Mavrogiannopoulos brought this change]
 
-- http: make sure a blank header overrides accept_decoding
+  .travis.yml: added build --with-libssh
   
-  Reported-by: rcanavan
-  Assisted-by: Isaac Boukris
-  Closes #785
+  Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
 
-- CHECKSRC.md: clarified, explained the whitelist file
+- [Nikos Mavrogiannopoulos brought this change]
 
-- nroff-scan.pl: verify that references are made with \fI
+  libssh2: return CURLE_UPLOAD_FAILED on failure to upload
+  
+  This brings its in sync with the error code returned by the
+  libssh backend.
+  
+  Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
 
-- docs: unified man page references to use \fI
+- [Nikos Mavrogiannopoulos brought this change]
 
-- TODO: 17.14 --fail without --location should treat 3xx as a failure
+  libssh2: send the correct CURLE error code on scp file not found
   
-  Closes #727
-
-- RELEASE-NOTES: synced with 7987f5cb14d
+  That also updates tests to expect the right error code
+  
+  libssh2 back-end returns CURLE_SSH error if the remote file
+  is not found. Expect instead CURLE_REMOTE_FILE_NOT_FOUND
+  which is sent by the libssh backend.
+  
+  Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
 
-- [Isaac Boukris brought this change]
+- [Nikos Mavrogiannopoulos brought this change]
 
-  CURLOPT_ACCEPT_ENCODING.3: Follow-up clarification
+  Added support for libssh SSH SCP back-end
+  
+  libssh is an alternative library to libssh2.
+  https://www.libssh.org/
   
-  Mention possible content-length mismatch with sum of bytes reported
-  by write callbacks when auto decoding is enabled.
+  That patch set also introduces support for ECDSA
+  ed25519 keys, as well as gssapi authentication.
   
-  See #785
+  Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
 
-- test1140: run nroff-scan to verify man pages
+- RELEASE-NOTES: synced with af8cc7a69
 
-- nroff-scan.pl: verify the .BR references as well
+- curlver: towards 7.57.1
 
-- CURLOPT_CONV_TO_NETWORK_FUNCTION.3: fix bad man page reference
+- [W. Mark Kubacki brought this change]
 
-- CURLOPT_BUFFERSIZE.3: fix reference to CURLOPT_MAX_RECV_SPEED_LARGE
+  lib: don't export all symbols, just everything curl_*
+  
+  Absent any 'symbol map' or script to limit what gets exported, static
+  linking of libraries previously resulted in a libcurl with curl's and
+  those other symbols being (re-)exported.
+  
+  This did not happen if 'versioned symbols' were enabled (which is not
+  the default) because then a version script is employed.
+  
+  This limits exports to everything starting in 'curl_*'., which is
+  what "libcurl.vers" exports.
+  
+  This avoids strange side-effects such as with mixing methods
+  from system libraries and those erroneously offered by libcurl.
+  
+  Closes #2127
 
-- curl_easy_pause.3: fix man page reference
+- [Johannes Schindelin brought this change]
 
-Jay Satiro (1 May 2016)
-- tool_cb_hdr: Fix --remote-header-name with schemeless URL
+  SSL: Avoid magic allocation of SSL backend specific data
   
-  - Move the existing scheme check from tool_operate.
+  Originally, my idea was to allocate the two structures (or more
+  precisely, the connectdata structure and the four SSL backend-specific
+  strucutres required for ssl[0..1] and proxy_ssl[0..1]) in one go, so
+  that they all could be free()d together.
   
-  In the case of --remote-header-name we want to parse Content-disposition
-  for a filename, but only if the scheme is http or https. A recent
-  adjustment 0dc4d8e was made to account for schemeless URLs however it's
-  not 100% accurate. To remedy that I've moved the scheme check to the
-  header callback, since at that point the library has already determined
-  the scheme.
+  However, getting the alignment right is tricky. Too tricky.
   
-  Bug: https://github.com/curl/curl/issues/760
-  Reported-by: Kai Noda
-
-Daniel Stenberg (1 May 2016)
-- tls: make setting pinnedkey option fail if not supported
+  So let's just bite the bullet and allocate the SSL backend-specific
+  data separately.
   
-  to make it obvious to users trying to use the feature with TLS backends
-  not supporting it.
+  As a consequence, we now have to be very careful to release the memory
+  allocated for the SSL backend-specific data whenever we release any
+  connectdata.
   
-  Discussed in #781
-  Reported-by: Travis Burtrum
-
-- nroff-scan.pl: verifies nroff pages
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
   
-  ... not used by any test yet but can be used stand-alone.
-
-- opts: fix broken/bad references
+  Closes #2119
 
-- [Michael Kaufmann brought this change]
-
-  docs: fix bugs in CURLOPT_HTTP_VERSION.3 and CURLOPT_PIPEWAIT.3
+- examples/xmlstream.c: don't switch off CURL_GLOBAL_SSL
   
-  Closes #786
+  Reported-by: Dima Tisnek
 
-- CURLOPT_ACCEPT_ENCODING.3: clarified
+- travis: add boringssl build
   
-  As discussed in #785
-
-- curl.1: --mail-rcpt can be used multiple times
+  Uses a separate build without --enable-debug and no valgrind.
   
-  Reported-by: mgendre
-  Closes #784
-
-- [Karlson2k brought this change]
-
-  tests: Use 'pathhelp' for paths conversions in secureserver.pl
+  The debug option causes far too many warnings in boringssl's headers
+  (C++ comments, trailing commas etc).  Valgrind triggers some false
+  positive errors in thread-local data used by boringssl.
   
-  Closes #675
+  Closes #2118
 
-- [Karlson2k brought this change]
+Version 7.57.0 (29 Nov 2017)
 
-  tests: Use 'pathhelp' for paths conversions in sshserver.pl
+Daniel Stenberg (29 Nov 2017)
+- RELEASE-NOTES: curl 7.57.0
 
-- [Karlson2k brought this change]
+- THANKS: added contributors from 7.57.0 release
 
-  tests: Use 'pathhelp' for current path in runtests.pl
+- openssl: fix boringssl build again
+  
+  commit d3ab7c5a21e broke the boringssl build since it doesn't have
+  RSA_flags(), so we disable that code block for boringssl builds.
+  
+  Reported-by: W. Mark Kubacki
+  Fixes #2117
 
-- [Karlson2k brought this change]
+- curl_ntlm_core.c: use the limits.h's SIZE_T_MAX if provided
 
-  tests: pathhelp.pm to process paths on Msys/Cygwin
+- libcurl-share.3: the connection cache is shareable now
 
-- lib: include curl_printf.h as one of the last headers
+- global_init: ignore CURL_GLOBAL_SSL's absense
+  
+  This bit is no longer used. It is not clear what it meant for users to
+  "init the TLS" in a world with different TLS backends and since the
+  introduction of multissl, libcurl didn't properly work if inited without
+  this bit set.
   
-  curl_printf.h defines printf to curl_mprintf, etc. This can cause
-  problems with external headers which may use
-  __attribute__((format(printf, ...))) markers etc.
+  Not a single user responded to the call for users of it:
+  https://curl.haxx.se/mail/lib-2017-11/0072.html
   
-  To avoid that they cause problems with system includes, we include
-  curl_printf.h after any system headers. That makes the three last
-  headers to always be, and we keep them in this order:
+  Reported-by: Evgeny Grin
+  Assisted-by: Jay Satiro
   
-   curl_printf.h
-   curl_memory.h
-   memdebug.h
+  Fixes #2089
+  Fixes #2083
+  Closes #2107
+
+- ntlm: avoid integer overflow for malloc size
   
-  None of them include system headers, they all do funny #defines.
+  Reported-by: Alex Nichols
+  Assisted-by: Kamil Dudka and Max Dymond
   
-  Reported-by: David Benjamin
+  CVE-2017-8816
   
-  Fixes #743
+  Bug: https://curl.haxx.se/docs/adv_2017-11e7.html
 
-- memdebug.h: remove inclusion of other headers
+- wildcardmatch: fix heap buffer overflow in setcharset
+  
+  The code would previous read beyond the end of the pattern string if the
+  match pattern ends with an open bracket when the default pattern
+  matching function is used.
   
-  Mostly because they're not needed, because memdebug.h is always included
-  last of all headers so the others already included the correct ones.
+  Detected by OSS-Fuzz:
+  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4161
   
-  But also, starting now we don't want this to accidentally include any
-  system headers, as the header included _before_ this header may add
-  defines and other fun stuff that we won't want used in system includes.
+  CVE-2017-8817
+  
+  Bug: https://curl.haxx.se/docs/adv_2017-ae72.html
 
 - [Jay Satiro brought this change]
 
-  curl -J: make it work even without http:// scheme on URL
+  url: fix alignment of ssl_backend_data struct
   
-  It does open up a miniscule risk that one of the other protocols that
-  libcurl could use would send back a Content-Disposition header and then
-  curl would act on it even if not HTTP.
+  - Align the array of ssl_backend_data on a max 32 byte boundary.
   
-  A future mitigation for this risk would be to allow the callback to ask
-  libcurl which protocol is being used.
+  8 is likely to be ok but I went with 32 for posterity should one of
+  the ssl_backend_data structs change to contain a larger sized variable
+  in the future.
   
-  Verified with test 1312
+  Prior to this change (since dev 70f1db3, release 7.56) the connectdata
+  structure was undersized by 4 bytes in 32-bit builds with ssl enabled
+  because long long * was mistakenly used for alignment instead of
+  long long, with the intention being an 8 byte boundary. Also long long
+  may not be an available type.
   
-  Closes #760
-
-- manpage-scan.pl: also verify the command line option docs
+  The undersized connectdata could lead to oob read/write past the end in
+  what was expected to be the last 4 bytes of the connection's secondary
+  socket https proxy ssl_backend_data struct (the secondary socket in a
+  connection is used by ftp, others?).
   
-  This script now also scans src/tool_getparam.c, docs/curl.1 and
-  src/tool_help.c and will warn if any of them lists a command line option
-  not mentioned in one of the other places.
-
-- curl: show the long option version of -q in the -h list
-
-- curl: remove "--socks" as "--socks5" turned 8
+  Closes https://github.com/curl/curl/issues/2093
   
-  In commit 2e42b0a2524 (Jan 2008) we made the option "--socks" deprecated
-  and it has not been documented since. The more explicit socks options
-  (like --socks4 or --socks5) should be used.
-
-- curl.1: document the deprecated --ftp-ssl option
+  CVE-2017-8818
+  
+  Bug: https://curl.haxx.se/docs/adv_2017-af0a.html
 
-- curl: remove --http-request
+- ssh: remove check for a NULL pointer (!)
   
-  It was mentioned as deprecated already in commit ae1912cb0d4 from
-  1999. It has not been documented in this millennium.
+  With this check present, scan-build warns that we might dereference this
+  point in other places where it isn't first checked for NULL. Thus, if it
+  *can* be NULL we have a problem on a few places. However, this pointer
+  should not be possible to be NULL here so I remove the check and thus
+  also three different scan-build warnings.
+  
+  Closes #2111
 
-- curl: mention --ntlm-wb in -h list
+- [Matthew Kerwin brought this change]
 
-- curl: -h output lacked --proxy-header
+  test: add test for bad UNC/SMB path in file: URL
 
-- curl.1: document --ntlm-wb
+- [Matthew Kerwin brought this change]
 
-- curl.1: document the long format of -q: --disable
+  test: add tests to ensure basic file: URLs
 
-- curl.1: mention the deprecated --krb4 option
+- [Matthew Kerwin brought this change]
 
-- curl.1: document --ftp-ssl-reqd
+  URL: update "file:" URL handling
   
-  Even if deprecated, document it so that people will find it as old
-  scripts may still use it.
-
-- curl: use --telnet-option as documented
+  * LOTS of comment updates
+  * explicit error for SMB shares (e.g. "file:////share/path/file")
+  * more strict handling of authority (i.e. "//localhost/")
+  * now accepts dodgy old "C:|" drive letters
+  * more precise handling of drive letters in and out of Windows
+    (especially recognising both "file:c:/" and "file:/c:/")
   
-  The code said "telnet-options" but no documentation ever said so. It
-  worked fine since the code is fine with a unique match of the first
-  part.
+  Closes #2110
 
-- getparam: remove support for --ftpport
+- metalink: fix memory-leak and NULL pointer dereference
   
-  It has been deprecated and undocumented since commit ad5ead8bed7 (Dec
-  2003). --ftp-port is the proper long option name.
-
-- curl: make --disable work as long form of -q
+  Reported by scan-build
   
-  To make the aliases list reflect reality.
-
-- aliases: remove trailing space from capath string
+  Closes #2109
 
-- cmdline parse: only single letter options have single-letter strings
-  
-  ... moved around options so that parsing the code to find all
-  single-letter options easier.
+- [Alessandro Ghedini brought this change]
 
-Jay Satiro (28 Apr 2016)
-- CURLINFO_TLS_SSL_PTR.3: Clarify SSL pointer availability
+  connect: add support for new TCP Fast Open API on Linux
   
-  Bug: https://curl.haxx.se/mail/lib-2016-04/0126.html
-  Reported-by: Bru Rom
-
-Daniel Stenberg (28 Apr 2016)
-- curl_easy_getinfo.3: remove superfluous blank lines
-
-- test1139: verifies libcurl option man page presence
+  The new API added in Linux 4.11 only requires setting a socket option
+  before connecting, without the whole sento() machinery.
   
-  - checks that each option has its own man page present
+  Notably, this makes it possible to use TFO with SSL connections on Linux
+  as well, without the need to mess around with OpenSSL (or whatever other
+  SSL library) internals.
   
-  - checks that each option is mentioned in its corresponding index man
-    page
+  Closes #2056
 
-- curl_easy_getinfo.3: added missing mention of CURLINFO_TLS_SESSION
+- make: fix "make distclean"
   
-  ... although it is deprecated.
+  Fixes #2097
+  Closes #2108
 
-Jay Satiro (28 Apr 2016)
-- mbedtls: Fix session resume
-  
-  This also fixes PolarSSL session resume.
+- RELEASE-NOTES: synced with 31f18d272
+
+Jay Satiro (23 Nov 2017)
+- connect: improve the bind error message
   
-  Prior to this change the TLS session information wasn't properly
-  saved and restored for PolarSSL and mbedTLS.
+  eg consider a non-existent interface eth8, curl --interface eth8
   
-  Bug: https://curl.haxx.se/mail/lib-2016-01/0070.html
-  Reported-by: Thomas Glanzmann
+  Before: curl: (45) Could not resolve host: eth8
+  After: curl: (45) Couldn't bind to 'eth8'
   
-  Bug: https://curl.haxx.se/mail/lib-2016-04/0095.html
-  Reported-by: Moti Avrahami
+  Bug: https://github.com/curl/curl/issues/2104
+  Reported-by: Alfonso Martone
 
-Daniel Stenberg (27 Apr 2016)
-- RELEASE-NOTES: synced with f4298fcc6d2
+Daniel Stenberg (23 Nov 2017)
+- examples/rtsp: clear RANGE again after use
+  
+  Fixes #2106
+  Reported-by: youngchopin on github
 
 - [Michael Kaufmann brought this change]
 
-  opts: Fix some syntax errors in example code fragments
-  
-  Fixes #779
+  test1264: verify URL with space in host name being rejected
 
-- openssl: avoid BN_print a NULL bignum
+- url: reject ASCII control characters and space in host names
   
-  OpenSSL 1.1.0-pre seems to return NULL(?) for a whole lot of those
-  numbers so make sure the function handles this.
+  Host names like "127.0.0.1 moo" would otherwise be accepted by some
+  getaddrinfo() implementations.
   
-  Reported-by: Linus Nordberg
-
-- [Marcel Raad brought this change]
-
-  CONNECT_ONLY: don't close connection on GSS 401/407 reponses
+  Updated test 1034 and 1035 accordingly.
   
-  Previously, connections were closed immediately before the user had a
-  chance to extract the socket when the proxy required Negotiate
-  authentication.
-  
-  This regression was brought in with the security fix in commit
-  79b9d5f1a42578f
+  Fixes #2073
+  Closes #2092
+
+- Curl_open: fix OOM return error correctly
   
-  Closes #655
+  Closes #2098
 
-- CURLINFO_TLS_SESSION.3: clarify TLS library support before 7.48.0
+- http2: fix "Value stored to 'end' is never read" scan-build error
 
-- mbedtls.c: silly spellfix of a comment
+- http2: fix "Value stored to 'hdbuf' is never read" scan-build error
 
-- KNOWN_BUGS: 1.10 Strips trailing dot from host name
-  
-  Closes #716
+- openssl: fix "Value stored to 'rc' is never read" scan-build error
 
-- test1322: verify stripping of trailing dot from host name
-  
-  While being debated (in #716) and a violation of RFC 7230 section 5.4,
-  this test verifies that the existing functionality works as intended. It
-  strips the dot from the host name and uses the host without dot
-  throughout the internals.
+- mime: fix "Value stored to 'sz' is never read" scan-build error
 
-- multi: accidentally used resolved host name instead of proxy
+- Curl_llist_remove: fix potential NULL pointer deref
   
-  Regression introduced in 09b5a998
-  
-  Bug: https://curl.haxx.se/mail/lib-2016-04/0084.html
-  Reported-by: BoBo
-
-- symbols-in-versions: added new CURLSSLBACKEND_ symbols
+  Fixes a scan-build warning.
 
-- test148: fixed after the --ftp-create-dirs retry change
-  
-  follow-up commit to 3c1e84f569 as it made curl try a little harder
+- ntlm: remove unnecessary NULL-check to please scan-build
 
-- curl.h: clarify curl_sslbackend for openssl clones and renames
+- BUGS: spellchecked
 
-- [Karlson2k brought this change]
+Jay Satiro (18 Nov 2017)
+- [fmmedeiros brought this change]
 
-  url.c: fixed DEBUGASSERT() for WinSock workaround
+  examples/curlx: Fix code style
   
-  If buffer is allocated, but nothing is received during prereceive
-  stage, than number of processed bytes must be zero.
+  - Add braces around multi-line if statement.
   
-  Closes #778
+  Closes https://github.com/curl/curl/pull/2096
 
-- KNOWN_BUGS: --interface for ipv6 binds to unusable IP address
+Daniel Stenberg (17 Nov 2017)
+- resolve: allow IP address within [] brackets
   
-  Closes #686 for now.
-
-- TODO: 1.17 Add support for IRIs
+  ... so that IPv6 addresses can be passed like they can for connect-to
+  and how they're used in URLs.
   
-  Adding support for IRIs is a mouthful, but is probably interesting at
-  least for areas and countries where the use of such "URLs" are growing
-  popularity.
+  Added test 1324 to verify
+  Reported-by: Alex Malinovich
   
-  Closes #776
-
-- THANKS-filter: Travis Burtrum
-
-- lib1517: checksrc compliance
+  Fixes #2087
+  Closes #2091
 
-- [moparisthebest brought this change]
+- [Pavol Markovic brought this change]
 
-  PolarSSL: Implement public key pinning
+  macOS: Fix missing connectx function with Xcode version older than 9.0
+  
+  The previous fix https://github.com/curl/curl/pull/1788 worked just for
+  Xcode 9. This commit extends the fix to older Xcode versions effectively
+  by not using connectx function.
+  
+  Fixes https://github.com/curl/curl/issues/1330
+  Fixes https://github.com/curl/curl/issues/2080
+  Closes https://github.com/curl/curl/pull/1336
+  Closes #2082
 
-Patrick Monnerat (22 Apr 2016)
-- os400: upgrade ILE/RPG binding
+- [Dirk Feytons brought this change]
 
-- curl.h: CURLOPT_CONNECT_TO sets a struct slist *, not a string
+  openssl: fix too broad use of HAVE_OPAQUE_EVP_PKEY
+  
+  Fixes #2079
+  Closes #2081
 
-Daniel Stenberg (22 Apr 2016)
-- contributors.sh: make --releasenotes implied
+- TODO: ignore private IP addresses in PASV response
   
-  It got too annoying to type =)
+  Closes #1455
 
-- RELEASE-NOTES: synced with 3c1e84f5693d8093
+- RELEASE-NOTES: synced with ae7369b6d
 
-- curl: make --ftp-create-dirs retry on failure
-  
-  The underlying libcurl option used for this feature is
-  CURLOPT_FTP_CREATE_MISSING_DIRS which has the ability to retry the dir
-  creation, but it was never set to do that by the command line tool.
+Michael Kaufmann (14 Nov 2017)
+- URL: return error on malformed URLs with junk after IPv6 bracket
   
-  Now it does.
+  Follow-up to aadb7c7. Verified by new test 1263.
   
-  Bug: https://curl.haxx.se/mail/archive-2016-04/0021.html
-  Reported-by: John Wanghui
-  Help-by: Leif W
+  Closes #2072
 
-- [Henrik Gaßmann brought this change]
+Daniel Stenberg (14 Nov 2017)
+- INTERNALS: we may use libidn2 now, not libidn
 
-  winbuild: add mbedtls support
+Patrick Monnerat (13 Nov 2017)
+- zlib/brotli: only include header files in modules needing them
   
-  Add WITH_MBEDTLS option. Make WITH_SSL, WITH_MBEDTLS and ENABLE_WINSSL
-  options mutual exclusive.
+  There is a conflict on symbol 'free_func' between openssl/crypto.h and
+  zlib.h on AIX. This is an attempt to resolve it.
   
-  Closes #606
+  Bug: https://curl.haxx.se/mail/lib-2017-11/0032.html
+  Reported-By: Michael Felt
 
-- KNOWN_BUGS: fixed "5.6 Improper use of Autoconf cache variables"
+Daniel Stenberg (13 Nov 2017)
+- SMB: fix uninitialized local variable
   
-  As of commit d9f3b365a3
+  Reported-by: Brian Carpenter
 
-- [Irfan Adilovic brought this change]
+- [Orgad Shaneh brought this change]
 
-  configure: ac_cv_ -> curl_cv_ for write-only vars
+  connect.c: remove executable bit on file
   
-  These configure vars are modified in a curl-specific way but never
-  evaluated or loaded from cache, even though they are designated as
-  _cv_. We could either implement proper AC_CACHE_CHECKs for them, or
-  remove them completely.
+  Closes #2071
+
+- [hsiao yi brought this change]
+
+  README.md: fixed layout
   
-  Fixes #603 as ac_cv_func_gethostbyname is no longer clobbered, and
-  AC_CHECK_FUNC(gethostbyname...) will no longer spuriously succeed after
-  the first configure run with caching.
+  Closes #2069
+
+- setopt: split out curl_easy_setopt() to its own file
   
-  `ac_cv_func_strcasecmp` is curious, see #770.
+  ... to make url.c smaller.
   
-  `eval "ac_cv_func_$func=yes"` can still cause problems as it works in
-  tandem with AC_CHECK_FUNCS and then potentially modifies its result. It
-  would be best to rewrite this test to use a new CURL_CHECK_FUNCS macro,
-  which works the same as AC_CHECK_FUNCS but relies on caching the values
-  of curl_cv_func_* variables, without modifiying ac_cv_func_*.
+  Closes #1944
+
+Jay Satiro (10 Nov 2017)
+- [John Starks brought this change]
 
-- [Irfan Adilovic brought this change]
+  cmake: Add missing setmode check
+  
+  Ensure HAVE_SETMODE is set to 1 on OSes that have setmode. Without this,
+  curl will corrupt binary files when writing them to stdout on Windows.
+  
+  Closes https://github.com/curl/curl/pull/2067
 
-  configure: ac_cv_ -> curl_cv_ for r/w vars
+Daniel Stenberg (10 Nov 2017)
+- curl_share_setopt: va_end was not called if conncache errors
   
-  These configure vars are modified in a curl-specific way and modified by
-  the configure process, but are never loaded from cache, even though they
-  are designated as _cv_. We should implement proper AC_CACHE_CHECKs for
-  them eventually.
+  CID 984459, detected by Coverity
 
-- [Irfan Adilovic brought this change]
+Sergei Nikulov (10 Nov 2017)
+- [John Starks brought this change]
 
-  configure: ac_cv_func_clock_gettime -> curl_...
+  cmake: Correctly include curl.rc in Windows builds (#2064)
   
-  This variable must not be cached in its current form, as any cached
-  information will prevent the next configure run from determining the
-  correct LIBS needed for the function. Thus, rename prefix `ac_cv_` to
-  just `curl_`.
+  Update CMakeLists.txt to add curl.rc to the correct list.
 
-- [Irfan Adilovic brought this change]
+Daniel Stenberg (9 Nov 2017)
+- RELEASE-NOTES: synced with 32828cc4f
 
-  configure: ac_cv_ -> curl_cv_ for all cached vars
+- [Luca Boccassi brought this change]
+
+  --interface: add support for Linux VRF
   
-  This was automated by:
+  The --interface command (CURLOPT_INTERFACE option) already uses
+  SO_BINDTODEVICE on Linux, but it tries to parse it as an interface or IP
+  address first, which fails in case the user passes a VRF.
   
-  sed -b -i -f <(ack -A1 AC_CACHE_CHECK | \
-                 ack -o 'ac_cv_.*?\b' | \
-                 sort -u | xargs -n1 bash -c \
-                      'echo "s/$0/curl_cv_${0#ac_cv_}/g"') \
-      $(git ls-files)
+  Try to use the socket option immediately and parse it as a fallback
+  instead.  Update the documentation to mention this feature, and that it
+  requires the binary to be ran by root or with CAP_NET_RAW capabilities
+  for this to work.
   
-  This only changed the prefix for 16 variables actually checked with
-  AC_CACHE_CHECK.
+  Closes #2024
 
-- openssl: builds with OpenSSL 1.1.0-pre5
-  
-  The RSA, DSA and DH structs are now opaque and require use of new APIs
+- curl_share_setopt.3: document CURL_LOCK_DATA_CONNECT
   
-  Fixes #763
+  Closes #2043
 
-Steve Holme (20 Apr 2016)
-- url.c: Prefer we don't use explicit NULLs in conditions
-  
-  Fixed commit fa5fa65a30 to not use NULLs in if condition.
+- examples: add shared-connection-cache
 
-Daniel Stenberg (20 Apr 2016)
-- [Isaac Boukris brought this change]
+- test1554: verify connection cache sharing
 
-  NTLM: check for NULL pointer before deferencing
+- share: add support for sharing the connection cache
+
+- imap: deal with commands case insensitively
   
-  At ConnectionExists, both check->proxyuser and check->proxypasswd
-  could be NULL, so make sure to check first.
+  As documented in RFC 3501 section 9:
+  https://tools.ietf.org/html/rfc3501#section-9
   
-  Fixes #765
-
-- [Karlson2k brought this change]
+  Closes #2061
 
-  tests: added test1517
+- connect: store IPv6 connection status after valid connection
   
-  ... for checking ability to receive full HTTP response when POST request
-  is used with slow read callback function.
+  ... previously it would store it already in the happy eyeballs stage
+  which could lead to the IPv6 bit being set for an IPv4 connection,
+  leading to curl not wanting to do EPSV=>PASV for FTP transfers.
   
-  This test checks for bug #657 and verifies the work-around from
-  72d5e144fbc6.
-  
-  Closes #720
+  Closes #2053
 
-- [Karlson2k brought this change]
+- curl_multi_fdset.3: emphasize curl_multi_timeout
+  
+  ... even when there's no socket to wait for, the timeout can still be
+  very short.
 
-  sendf.c: added ability to call recv() before send() as workaround
+Jay Satiro (9 Nov 2017)
+- content_encoding: fix inflate_stream for no bytes available
   
-  WinSock destroys recv() buffer if send() is failed. As result - server
-  response may be lost if server sent it while curl is still sending
-  request. This behavior noticeable on HTTP server short replies if
-  libcurl use several send() for request (usually for POST request).
-  To workaround this problem, libcurl use recv() before every send() and
-  keeps received data in intermediate buffer for further processing.
+  - Don't call zlib's inflate() when avail_in stream bytes is 0.
   
-  Fixes: #657
-  Closes: #668
-
-Kamil Dudka (19 Apr 2016)
-- connect: make sure that rc is initialized in singleipconnect()
+  This is a follow up to the parent commit 19e66e5. Prior to that change
+  libcurl's inflate_stream could call zlib's inflate even when no bytes
+  were available, causing inflate to return Z_BUF_ERROR, and then
+  inflate_stream would treat that as a hard error and return
+  CURLE_BAD_CONTENT_ENCODING.
   
-  This commit fixes a Clang warning introduced in curl-7_48_0-190-g8f72b13:
+  According to the zlib FAQ, Z_BUF_ERROR is not fatal.
   
-  Error: CLANG_WARNING:
-  lib/connect.c:1120:11: warning: The right operand of '==' is a garbage value
-  1118|       }
-  1119|
-  1120|->     if(-1 == rc)
-  1121|         error = SOCKERRNO;
-  1122|     }
-
-Daniel Stenberg (19 Apr 2016)
-- make/checksrc: use $srcdir, not $top_srcdir
-
-- src/checksrc.whitelist: removed
-
-- tool_operate: switch to inline checksrc ignore
-
-- lib/checksrc.whitelist: not needed anymore
+  This bug would happen randomly since packet sizes are arbitrary. A test
+  of 10,000 transfers had 55 fail (ie 0.55%).
   
-  ... as checksrc now skips comments
-
-- vtls.h: remove a space before semicolon
+  Ref: https://zlib.net/zlib_faq.html#faq05
   
-  ... that the new checksrc detected
+  Closes https://github.com/curl/curl/pull/2060
 
-- darwinssl: removed commented out code
+Patrick Monnerat (7 Nov 2017)
+- content_encoding: do not write 0 length data
 
-- http_chunks: removed checksrc disable
+Daniel Stenberg (6 Nov 2017)
+- fnmatch: remove dead code
   
-  ... since checksrc now skips comments
-
-- imap: inlined checksrc disable instead of whitelist edit
-
-- checksrc: taught to skip comments
+  There was a duplicate check for backslashes in the setcharset()
+  function.
   
-  ... but output non-stripped version of the line, even if that then can
-  make the script identify the wrong position in the line at
-  times. Showing the line stripped (ie without comments) is just too
-  surprising.
+  Coverity CID 1420611
 
-- opts/Makefile.am: list all docs file one by one
+- url: remove unncessary NULL-check
   
-  ... to make it easier to add lines in patches that won't just break all
-  other patches trying to add lines too.
-
-- curl_easy_setopt.3: mention CURLOPT_TCP_FASTOPEN
-
-- RELEASE-NOTES: synced with 03de4e4b219
+  Since 'conn' won't be NULL in there and we also access the pointer in
+  there without the check.
   
-  (since we just merged two major features)
-
-- [Alessandro Ghedini brought this change]
+  Coverity CID 1420610
 
-  connect: implement TCP Fast Open for Linux
+Viktor Szakats (6 Nov 2017)
+- src/Makefile.m32: fix typo in brotli lib customization
   
-  Closes #660
-
-- [Alessandro Ghedini brought this change]
-
-  tool: add --tcp-fastopen option
-
-- [Alessandro Ghedini brought this change]
+  Ref cc1f4436099decb9d1a7034b2bb773a9f8379d31
 
-  connect: implement TCP Fast Open for OS X
+- Makefile.m32: allow to customize brotli libs
+  
+  It adds the ability to link against static brotli libs.
+  
+  Also fix brotli include path.
 
-- [Alessandro Ghedini brought this change]
+Patrick Monnerat (5 Nov 2017)
+- travis: add a job with brotli enabled
 
-  url: add CURLOPT_TCP_FASTOPEN option
+- [Viktor Szakats brought this change]
 
-- checksrc: pass on -D so the whitelists are found correctly
+  Makefile.m32: add brotli support
 
-- configure: remove check for libresolve
+- HTTP: implement Brotli content encoding
   
-  'strncasecmp' was once provided by libresolv (no trailing e) for SunOS,
-  but this check is broken and most likely adds nothing useful. Removing
-  now.
+  This uses the brotli external library (https://github.com/google/brotli).
+  Brotli becomes a feature: additional curl_version_info() bit and
+  structure fields are provided for it and CURLVERSION_NOW bumped.
   
-  Reported-by: Irfan Adilovic
+  Tests 314 and 315 check Brotli content unencoding with correct and
+  erroneous data.
   
-  Discussed in #770
+  Some tests are updated to accomodate with the now configuration dependent
+  parameters of the Accept-Encoding header.
 
-- scripts/make: use $(EXEEXT) for executables
+- HTTP: support multiple Content-Encodings
   
-  Reported-by: bodop
+  This is implemented as an output streaming stack of unencoders, the last
+  calling the client write procedure.
   
-  Fixes #771
-
-- includes: avoid duplicate memory callback typdefs even harder
-
-- checksrc/makefile.am: use $top_srcdir to find source files
+  New test 230 checks this feature.
   
-  ... to properly support out of source tree builds.
-
-- RELEASE-NOTES: synced with 26ec93dd6aeba8dfb5
-
-- opts: fix option references missing (section)
+  Bug: https://github.com/curl/curl/pull/2002
+  Reported-By: Daniel Bankhead
 
-- [Michael Kaufmann brought this change]
-
-  news: CURLOPT_CONNECT_TO and --connect-to
+Jay Satiro (4 Nov 2017)
+- url: remove arg value check from CURLOPT_SSH_AUTH_TYPES
+  
+  Since CURLSSH_AUTH_ANY (aka CURLSSH_AUTH_DEFAULT) is ~0 an arg value
+  check on this option is incorrect; we have to accept any value.
+  
+  Prior to this change since f121575 (7.56.1+) CURLOPT_SSH_AUTH_TYPES
+  erroneously rejected CURLSSH_AUTH_ANY with CURLE_BAD_FUNCTION_ARGUMENT.
   
-  Makes curl connect to the given host+port instead of the host+port found
-  in the URL.
+  Bug: https://github.com/curl/curl/commit/f121575#commitcomment-25347120
 
-- makefile.vc6: use d suffix on debug object
+Daniel Stenberg (4 Nov 2017)
+- ntlm: avoid malloc(0) for zero length passwords
   
-  To allow both release and debug builds in parallel.
+  It triggers an assert() when built with memdebug since malloc(0) may
+  return NULL *or* a valid pointer.
   
-  Reported-by: Rod Widdowson
+  Detected by OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4054
   
-  Fixes #769
+  Assisted-by: Max Dymond
+  Closes #2054
 
-Jay Satiro (12 Apr 2016)
-- http2: Use size_t type for data drain count
-  
-  Ref: https://github.com/curl/curl/issues/659
-  Ref: https://github.com/curl/curl/pull/663
+- RELEASE-NOTES: synced with ee8016b3d
 
-- http2: Improve header parsing
+- curl: speed up handling of many URLs
   
-  - Error if a header line is larger than supported.
+  By properly keeping track of the last entry in the list of URLs/uploads
+  to handle, curl now avoids many meaningless traverses of the list which
+  speeds up many-URL handling *MASSIVELY* (several magnitudes on 100K
+  URLs).
   
-  - Warn if cumulative header line length may be larger than supported.
+  Added test 1291, to verify that it doesn't take ages - but we don't have
+  any detection of "too slow" command in the test suite.
   
-  - Allow spaces when parsing the path component.
+  Reported-by: arainchik on github
+  Fixes #1959
+  Closes #2052
+
+- curl: pass through [] in URLs instead of calling globbing error
   
-  - Make sure each header line ends in \r\n. This fixes an out of bounds.
+  Assisted-by: Per Lundberg
+  Fixes #2044
+  Closes #2046
+  Closes #2048
+
+- CURLOPT_INFILESIZE: accept -1
   
-  - Disallow header continuation lines until we decide what to do.
+  Regression since f121575
   
-  Ref: https://github.com/curl/curl/issues/659
-  Ref: https://github.com/curl/curl/pull/663
+  Reported-by: Petr Voytsik
+  Fixes #2047
 
-- http2: Add Curl_http2_strerror for HTTP/2 error codes
+Jay Satiro (2 Nov 2017)
+- url: fix CURLOPT_DNS_CACHE_TIMEOUT arg value check to allow -1
   
-  Ref: https://github.com/curl/curl/issues/659
-  Ref: https://github.com/curl/curl/pull/663
-
-- [Tatsuhiro Tsujikawa brought this change]
+  Prior to this change since f121575 (7.56.1+) CURLOPT_DNS_CACHE_TIMEOUT
+  erroneously rejected -1 with CURLE_BAD_FUNCTION_ARGUMENT.
 
-  http2: Don't increment drain when one header field is received
+Dan Fandrich (1 Nov 2017)
+- http2: Fixed OOM handling in upgrade request
   
-  Sicne we write header field in temporary location, not in the memory
-  that upper layer provides, incrementing drain should not happen.
-  
-  Ref: https://github.com/curl/curl/issues/659
-  Ref: https://github.com/curl/curl/pull/663
-
-- [Tatsuhiro Tsujikawa brought this change]
+  This caused the torture tests on test 1800 to fail.
 
-  http2: Ensure that http2_handle_stream_close is called
+- tests: Fixed torture tests on tests 556 and 650
   
-  This commit ensures that streams which was closed in on_stream_close
-  callback gets passed to http2_handle_stream_close.  Previously, this
-  might not happen.  To achieve this, we increment drain property to
-  forcibly call recv function for that stream.
+  Test cleanup after OOM wasn't being consistently performed.
+
+Daniel Stenberg (1 Nov 2017)
+- CURLOPT_MAXREDIRS: allow -1 as a value
   
-  To more accurately check that we have no pending event before shutting
-  down HTTP/2 session, we sum up drain property into
-  http_conn.drain_total.  We only shutdown session if that value is 0.
+  ... which is valid according to documentation. Regression since
+  f121575c0b5f.
   
-  With this commit, when stream was closed before reading response
-  header fields, error code CURLE_HTTP2_STREAM is returned even if
-  HTTP/2 level error is NO_ERROR.  This signals the upper layer that
-  stream was closed by error just like TCP connection close in HTTP/1.
+  Verified now in test 501.
   
-  Ref: https://github.com/curl/curl/issues/659
-  Ref: https://github.com/curl/curl/pull/663
+  Reported-by: cbartl on github
+  Fixes #2038
+  Closes #2039
 
-- [Tatsuhiro Tsujikawa brought this change]
+- include: remove conncache.h inclusion from where its not needed
 
-  http2: Process paused data first before tear down http2 session
-  
-  This commit ensures that data from network are processed before HTTP/2
-  session is terminated.  This is achieved by pausing nghttp2 whenever
-  different stream than current easy handle receives data.
+Jay Satiro (1 Nov 2017)
+- url: fix CURLOPT_POSTFIELDSIZE arg value check to allow -1
   
-  This commit also fixes the bug that sometimes processing hangs when
-  multiple HTTP/2 streams are multiplexed.
+  .. also add same arg value check to CURLOPT_POSTFIELDSIZE_LARGE.
   
-  Ref: https://github.com/curl/curl/issues/659
-  Ref: https://github.com/curl/curl/pull/663
-
-- [Tatsuhiro Tsujikawa brought this change]
-
-  http2: Check session closure early in http2_recv
+  Prior to this change since f121575 (7.56.1+) CURLOPT_POSTFIELDSIZE
+  erroneously rejected -1 value with CURLE_BAD_FUNCTION_ARGUMENT.
   
-  Ref: https://github.com/curl/curl/issues/659
-  Ref: https://github.com/curl/curl/pull/663
+  Bug: https://curl.haxx.se/mail/lib-2017-11/0000.html
+  Reported-by: Andrew Lambert
 
-- [Tatsuhiro Tsujikawa brought this change]
-
-  http2: Add handling stream level error
+Daniel Stenberg (31 Oct 2017)
+- cookie: avoid NULL dereference
   
-  Previously, when a stream was closed with other than NGHTTP2_NO_ERROR
-  by RST_STREAM, underlying TCP connection was dropped.  This is
-  undesirable since there may be other streams multiplexed and they are
-  very much fine.  This change introduce new error code
-  CURLE_HTTP2_STREAM, which indicates stream error that only affects the
-  relevant stream, and connection should be kept open.  The existing
-  CURLE_HTTP2 means connection error in general.
+  ... when expiring old cookies.
   
-  Ref: https://github.com/curl/curl/issues/659
-  Ref: https://github.com/curl/curl/pull/663
+  Reported-by: Pavel Gushchin
+  Fixes #2032
+  Closes #2035
 
-Daniel Stenberg (11 Apr 2016)
-- http2: drain the socket better...
-  
-  ... but ignore EAGAIN if the stream has ended so that we don't end up in
-  a loop. This is a follow-up to c8ab613 in order to avoid the problem
-  d261652 was made to fix.
+Marcel Raad (30 Oct 2017)
+- memdebug: use send/recv signature for curl_dosend/curl_dorecv
   
-  Reported-by: Jay Satiro
-  Clues-provided-by: Tatsuhiro Tsujikawa
+  This avoids build errors and warnings caused by implicit casts.
   
-  Discussed in #750
+  Closes https://github.com/curl/curl/pull/2031
 
-- KNOWN_BUGS: added info for "Hangs with PolarSSL"
+Daniel Stenberg (30 Oct 2017)
+- [Juro Bystricky brought this change]
 
-- KNOWN_BUGS: 1.9 HTTP/2 frames while in the connection pool kill reuse
+  mkhelp.pl: support reproducible build
   
-  Closes #750
-
-- build: include scripts/ in the dist
-
-Steve Holme (9 Apr 2016)
-- CURLOPT_SOCKS5_GSSAPI_SERVICE: Merged with CURLOPT_PROXY_SERVICE_NAME
+  Do not generate line with the current date, such as:
   
-  As these two options provide identical functionality, the former for
-  SOCK5 proxies and the latter for HTTP proxies, merged the two options
-  together.
+  * Generation time: Tue Oct-24 18:01:41 2017
   
-  As such CURLOPT_SOCKS5_GSSAPI_SERVICE is marked as deprecated as of
-  7.49.0.
-
-- urldata: Use bool for socks5_gssapi_nec as it is a flag
+  This will improve reproducibility. The generated string is only
+  part of a comment, so there should be no adverse consequences.
   
-  This value is set to TRUE or FALSE so should be a bool and not a long.
+  Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
+  
+  closes #2026
 
-- url: Ternary operator code style changes
+Dan Fandrich (30 Oct 2017)
+- runtests.pl: Fixed typo in message
 
-- CODE_STYLE: Added ternary operator example to 'Space around operators'
+Daniel Stenberg (30 Oct 2017)
+- curlx: the timeval functions are no longer provided as curlx_*
   
-  Following conversation on the libcurl mailing list.
+  Pointed-out-by: Dmitri Tikhonov
+  Bug: #2034
 
-- sasl: Fixed compilation errors from commit 9d89a0387
+- select: update comments
   
-  ...when GSS-API or Windows SSPI are not used.
-
-- url: Corrected comments following 9d89a0387
-
-- docs: Added clarification following commit 9d89a0387
-
-- Makefile: Fixed echo of checksrc check
+  s/curlx_tvnow/Curl_now
 
-- checksrc: Fix issue with the autobuilds not picking up the whitelist
+- INTERNALS: remove curlx_tv* functions no longer provided
 
-- checksrc: Added missing vauth and vtls directories
+- [Dmitri Tikhonov brought this change]
 
-- ftp/imap/pop3/smtp: Allow the service name to be overridden
+  timeval: use mach time on MacOS
   
-  Allow the service name to be overridden for DIGIST-MD5 and Kerberos 5
-  authentication in FTP, IMAP, POP3 and SMTP.
-
-- http_negotiate: Calculate service name and proxy service name locally
+  If clock_gettime() is not supported, use mach_absolute_time() on MacOS.
   
-  Calculate the service name and proxy service names locally, rather than
-  in url.c which will allow for us to support overriding the service name
-  for other protocols such as FTP, IMAP, POP3 and SMTP.
+  closes #2033
 
-- ROADMAP: Updated following the move of the authentication code
+monnerat (29 Oct 2017)
+- [Patrick Monnerat brought this change]
 
-Patrick Monnerat (8 Apr 2016)
-- KNOWN_BUGS: openldap hangs. TODO: binary SASL.
+  cli tool: improve ";type=" handling in -F option arguments
 
-Daniel Stenberg (8 Apr 2016)
-- KNOWN_BUGS: 5.6 Improper use of Autoconf cache variables
-  
-  Closes #603
+- [Patrick Monnerat brought this change]
 
-- KNOWN_BUGS: 11.2 error buffer not set...
+  cli tool: in -F option arg, comma is a delimiter for files only
   
-  Closes #544
-
-- KNOWN_BUGS: 11.1 Curl leaks .onion hostnames in DNS
+  Also upgrade test 1133 to cover this case and clarify man page about
+  form data quoting.
   
-  Closes #543
+  Bug: https://github.com/curl/curl/issues/2022
+  Reported-By: omau on github
 
-- KNOWN_BUGS: 1.8 DNS timing is wrong for HTTP redirects
-  
-  Closes #522
+Daniel Stenberg (29 Oct 2017)
+- timeleft: made two more users of Curl_timeleft use timediff_t
 
-- TODO: HTTP/2 "prior knowledge" is implemented!
+Jakub Zakrzewski (28 Oct 2017)
+- cmake: Export libcurl and curl targets to use by other cmake projects
+  
+  The config files define curl and libcurl targets as imported targets
+  CURL::curl and CURL::libcurl. For backward compatibility with CMake-
+  provided find-module the CURL_INCLUDE_DIRS and CURL_LIBRARIES are
+  also set.
+  
+  Closes #1879
 
-- [Damien Vielpeau brought this change]
+Daniel Stenberg (28 Oct 2017)
+- RELEASE-NOTES: synced with f20cbac97
 
-  mbedtls: fix MBEDTLS_DEBUG builds
+- [Florin Petriuc brought this change]
 
-- mbedtls: implement and provide *_data_pending()
+  auth: Added test cases for RFC7616
   
-  ... as otherwise we might get stuck thinking there's no more data to
-  handle.
+  Updated docs to include support for RFC7616
   
-  Reported-by: Damien Vielpeau
+  Signed-off-by: Florin <petriuc.florin@gmail.com>
   
-  Fixes #737
+  Closes #1934
 
-- mbedtls: follow-up for the previous commit
+- [Florin Petriuc brought this change]
 
-- mbedtls.c: name space pollution fix, Use 'Curl_'
-
-- mbedtls.c: changed private prefix to mbed_
+  auth: add support for RFC7616 - HTTP Digest access authentication
   
-  mbedtls_ is the prefix used by the mbedTLS library itself so we should
-  avoid using that for our private functions.
+  Signed-off-by: Florin <petriuc.florin@gmail.com>
 
-- mbedtls.h: fix compiler warnings
+- [Daniel Bankhead brought this change]
 
-- Revert "winbuild: trying to set some files eol=crlf for git"
-  
-  This reverts commit 9c08b4f1e7eced5a4d3782a3e0daa484c9d77d21.
+  TODO: support multiple Content-Encodings
   
-  Didn't help. Caused problems.
-  
-  Fixes #756
+  Closes #2002
 
-- curl.1: use example.com more
+- ROADMAP: cleanup
   
-  Make (most) example snippets use the example.com domain instead of the
-  random ones picked and used before. Some of those were probably
-  legitimate sites and some not. example.com is designed for this purpose.
+  Removed done stuff. Removed entries no longer considered for the near
+  term.
 
-- [Michael Kaufmann brought this change]
+- [Magicansk brought this change]
 
-  HTTP2: Add a space character after the status code
+  ROADMAP.md: spelling fixes
   
-  The space character after the status code is mandatory, even if the
-  reason phrase is empty (see RFC 7230 section 3.1.2)
-  
-  Closes #755
-
-- [Viktor Szakats brought this change]
+  Closes #2028
 
-  URLs: change http to https in many places
+- Curl_timeleft: change return type to timediff_t
   
-  Closes #754
-
-- winbuild: trying to set some files eol=crlf for git
+  returning 'time_t' is problematic when that type is unsigned and we
+  return values less than zero to signal "already expired", used in
+  several places in the code.
   
-  Thinking it might help to apply patches etc with git.
+  Closes #2021
 
-- [Theodore Dubois brought this change]
+- appveyor: add a win32 build
 
-  curl.1: change example for -F
+- setopt: fix CURLOPT_SSH_AUTH_TYPES option read
   
-  It's a bad idea to send your passwords anywhere, especially over HTTP.
-  Modified example to send a picture instead.
+  Regression since f121575c0b5f
   
-  Fixes #752
+  Reported-by: Rob Cotrone
 
-- KNOWN_BUGS: reorganized and cleaned up
+Marcel Raad (27 Oct 2017)
+- resolvers: only include anything if needed
   
-  Now sorted into categories and organized in the same style we do the
-  TODO document. It will make each issue linked properly on the
-  https://curl.haxx.se/docs/knownbugs.html web page.
+  This avoids warnings about unused stuff.
   
-  The sections should make it easier to find issues and issues related to
-  areas of the reader's specific interest.
+  Closes https://github.com/curl/curl/pull/2023
 
-Jay Satiro (6 Apr 2016)
-- KNOWN_BUGS: #95 curl in Windows can't handle Unicode arguments
+Daniel Stenberg (27 Oct 2017)
+- HELP-US: rename the subtitle too since the label is changed
+  
+  "PR-welcome" was the former name.
 
-Steve Holme (6 Apr 2016)
-- KNOWN_BUGS: Use https://curl.haxx.se URL for github based issues
+- curl_setup.h: oops, shorten the too long line
 
-- CHECKSRC.md: Corrected some typos
+- [Martin Storsjo brought this change]
 
-- RELEASE-NOTES: Corrected last updated
+  curl_setup: Improve detection of CURL_WINDOWS_APP
   
-  Included a summary of the checksrc.bat updates and combined two krb5
-  changes as they should have been implemented at the same time.
-
-- vauth: Corrected a number of typos in comments
+  If WINAPI_FAMILY is defined, it should be safe to try to include
+  winapifamily.h to check what the define evaluates to.
   
-  Reported-by: Michael Osipov
-
-Jay Satiro (5 Apr 2016)
-- KNOWN_BUGS: #94 IMAP custom requests use the LIST handler
+  This should fix detection of CURL_WINDOWS_APP if building with
+  _WIN32_WINNT set to 0x0600.
   
-  Bug: https://github.com/curl/curl/issues/536
-  Reported-by: eXeC64@users.noreply.github.com
+  Closes #2025
 
-Daniel Stenberg (5 Apr 2016)
-- KNOWN_BUGS: remove 68, 70 and 72.
+Jay Satiro (26 Oct 2017)
+- transfer: Fix chunked-encoding upload bug
+  
+  - When uploading via chunked-encoding don't compare file size to bytes
+    sent to determine whether the upload has finished.
   
-  Due to their age (we don't fully know if they actually remain) and lack
-  of detail - very few people will bother to find out what they're about
-  or work on them. If people truly still suffer from any of these, I
-  assume they will be reported again and then we'll deal with them.
+  Chunked-encoding adds its own overhead which why the bytes sent is not
+  equal to the file size. Prior to this change if a file was uploaded in
+  chunked-encoding and its size was known it was possible that the upload
+  could end prematurely without sending the final few chunks. That would
+  result in a server hang waiting for the remaining data, likely followed
+  by a disconnect.
   
-  72. "Pausing pipeline problems."
-    https://curl.haxx.se/mail/lib-2009-07/0214.html
+  The scope of this bug is limited to some arbitrary file sizes which have
+  not been determined. One size that triggers the bug is 475020.
   
-  70. Problem re-using easy handle after call to curl_multi_remove_handle
-    https://curl.haxx.se/mail/lib-2009-07/0249.html
+  Bug: https://github.com/curl/curl/issues/2001
+  Reported-by: moohoorama@users.noreply.github.com
   
-  68. "More questions about ares behavior".
-    https://curl.haxx.se/mail/lib-2009-08/0012.html
+  Closes https://github.com/curl/curl/pull/2010
 
-- KNOWN_BUGS: remove 92 and 88, fixed
+Daniel Stenberg (26 Oct 2017)
+- timeval: make timediff_t also work on 32bit windows
+  
+  ... by using curl_off_t for the typedef if time_t is larger than 4
+  bytes.
+  
+  Reported-by: Gisle Vanem
+  Bug: https://github.com/curl/curl/commit/b9d25f9a6b3ca791385b80a6a3c3fa5ae113e1e0#co
+  mmitcomment-25205058
+  Closes #2019
 
-- http2: fix connection reuse when PING comes after last DATA
+- curl_fnmatch: return error on illegal wildcard pattern
   
-  It turns out the google GFE HTTP/2 servers send a PING frame immediately
-  after a stream ends and its last DATA has been received by curl. So if
-  we don't drain that from the socket, it makes the socket readable in
-  subsequent checks and libcurl then (wrongly) assumes the connection is
-  dead when trying to reuse the connection.
+  ... instead of doing an infinite loop!
   
-  Reported-by: Joonas Kuorilehto
+  Added test 1162 to verify.
   
-  Discussed in #750
-
-- multi: remove trailing space in debug output
-
-- RELEASE-NOTES: synced with 86e97b642fb
-
-- CHECKSRC.md: mention cmdline options, fix the bullet list
+  Reported-by: Max Dymond
+  Fixes #2015
+  Closes #2017
 
-- docs/CHECKSRC.md: initial version
+- [Max Dymond brought this change]
 
-Steve Holme (3 Apr 2016)
-- checksrc.bat: Added support for the examples
-
-Daniel Stenberg (3 Apr 2016)
-- lib/src: fix the checksrc invoke
+  wildcards: don't use with non-supported protocols
+  
+  Fixes timeouts in the fuzzing tests for non-FTP protocols.
   
-  ... now works correctly when invoke from the root makefile
+  Closes #2016
 
-- nw: please the stricter checksrc
+- [Max Dymond brought this change]
 
-Steve Holme (3 Apr 2016)
-- checksrc.bat: Re-enabled the tests directory by default
+  multi: allow table handle sizes to be overridden
   
-  Following the recent changes to the source in the tests directory,
-  re-enabled tests for the default scan.
+  Allow users to specify their own hash define for
+  CURL_CONNECTION_HASH_SIZE so that both values can be overridden.
+  
+  Closes #1982
 
-- checksrc.bat: Added tests/server directory support
+- time: rename Curl_tvnow to Curl_now
+  
+  ... since the 'tv' stood for timeval and this function does not return a
+  timeval struct anymore.
   
-  In addition to commit 83b174b3f0 and following the recent changes.
+  Also, cleaned up the Curl_timediff*() functions to avoid typecasts and
+  clean up the descriptive comments.
+  
+  Closes #2011
 
-- tests: Fixed header files to comply with our code style
+- ftplistparser: follow-up cleanup to remove PL_ERROR()
 
-Daniel Stenberg (3 Apr 2016)
-- make checksrc: run it in docs/examples too by default
+- [Max Dymond brought this change]
 
-- docs/examples: remove spurious white spaces all over
+  ftplistparser: free off temporary memory always
+  
+  When using the FTP list parser, ensure that the memory that's
+  allocated is always freed.
   
-  ... to please the new, slightly picker, checksrc.pl
+  Detected by OSS-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3682
+  Closes #2013
 
-- tests: fix make checksrc in servers/
+- timediff: return timediff_t from the time diff functions
+  
+  ... to cater for systems with unsigned time_t variables.
+  
+  - Renamed the functions to curlx_timediff and Curl_timediff_us.
+  
+  - Added overflow protection for both of them in either direction for
+    both 32 bit and 64 bit time_ts
+  
+  - Reprefixed the curlx_time functions to use Curl_*
+  
+  Reported-by: Peter Piekarski
+  Fixes #2004
+  Closes #2005
 
-- tests: 'make checksrc' now checks server/ too
+- [Paul Howarth brought this change]
 
-- root/make: have checksrc run in include/curl too
+  libtest: Add required test libraries for lib1552 and lib1553
+  
+  They use $(TESTUTIL) and thus should use $(TESTUTIL_LIBS) too.
+  
+  This fixes build failures on Fedora 13.
+  
+  Closes #2006
 
-- tests/server: comply with our code style
+- [Alessandro Ghedini brought this change]
 
-- code: style updates
+  libcurl-tutorial.3: fix typo
+  
+  closes #2008
 
-- checksrc: check for more malplaced spaces
+Alessandro Ghedini (23 Oct 2017)
+- curl_mime_filedata.3: fix typos
 
-- unit: make unit test source code checksrc compliant
+Daniel Stenberg (23 Oct 2017)
+- RELEASE-NOTES: clean slate towards 7.57.0
 
-- checksrc: run checksrc in tests when 'make checksrc' in root
+- [Max Dymond brought this change]
 
-- checksrc: remove debug crap
+  travis: exit if any steps fail
+  
+  We don't expect any steps to fail in travis. Exit the script if they do.
+  
+  Closes #1966
 
-- lib557: allow too long lines
+Version 7.56.1 (23 Oct 2017)
 
-- checksrc: allow ignore of specific warnings within a file (section)
+Daniel Stenberg (23 Oct 2017)
+- RELEASE-NOTES: 7.56.1
 
-- checksrc: add warning names, explain on help output
+- THANKS: update at 7.56.1 release time
 
-Steve Holme (3 Apr 2016)
-- checksrc.bat: Disable tests by default until warnings are fixed
+- [Jon DeVree brought this change]
 
-- checksrc.bat: Added support for the tests directory
+  mk-ca-bundle: Remove URL for aurora
+  
+  Aurora is no longer used by Mozilla
+  https://hacks.mozilla.org/2017/04/simplifying-firefox-release-channels/
 
-- vauth: Removed the need for a separate GSS-API based SPN function
+- [Jon DeVree brought this change]
 
-- curl_sasl: Fixed potential null pointer utilisation
-  
-  Although this should never happen due to the relationship between the
-  'mech' and 'resp' variables, and the way they are allocated together,
-  it does cause problems for code analysis tools:
+  mk-ca-bundle: Fix URL for NSS
   
-  V595 The 'mech' pointer was utilized before it was verified against
-       nullptr. Check lines: 376, 381. curl_sasl.c 376
+  The 'tip' is the most recent branch committed to, this should be
+  'default' like the URLs for the browser are.
   
-  Bug: https://github.com/curl/curl/issues/745
-  Reported-by: Alexis La Goutte
+  Closes #1998
 
-- spnego: Small code tidy up
+- imap: if a FETCH response has no size, don't call write callback
   
-  * Prefer dereference of string pointer rather than strlen()
-  * Free challenge pointer in one place
-  * Additional comments
-
-- krb5: Small code tidy up
+  CVE-2017-1000257
   
-  * Prefer dereference of string pointer rather than strlen()
-  * Free challenge pointer in one place
-  * Additional comments
+  Reported-by: Brian Carpenter and 0xd34db347
+  Also detected by OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3586
 
-- krb5_gssapi: Only process challenge when present
+- ftp: reject illegal IP/port in PASV 227 response
   
-  This wouldn't cause a problem because of the way the function is called,
-  but prior to this change, we were processing the challenge message when
-  the credentials were NULL rather than when the challenge message was
-  populated.
+  ... by using range checks. Among other things, this avoids an undefined
+  behavior for a left shift that could happen on negative or very large
+  values.
   
-  This also brings this part of the Kerberos 5 code in line with the
-  Negotiate code.
-
-- krb5: Fixed missing client response when mutual authentication enabled
+  Closes #1997
   
-  Although mutual authentication is currently turned off and can only be
-  enabled by changing libcurl source code, authentication using Kerberos
-  5 has been broken since commit 79543caf90 in this use case.
+  Detected by OSS-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3694
 
-- krb5_sspi: Only process challenge when present
+Patrick Monnerat (20 Oct 2017)
+- test653: check reuse of easy handle after mime data change
   
-  This wouldn't cause a problem because of the way the function is called,
-  but prior to this change, we were processing the challenge message when
-  the credentials were NULL rather than when the challenge message was
-  populated.
-  
-  This also brings this part of the Kerberos 5 code in line with the
-  Negotiate code.
+  See issue #1999
 
-- krb5_sspi: Only generate the output token when its not allocated
+- mime: do not reuse previously computed multipart size
   
-  Prior to this change, we were generating the output token when the
-  credentials were NULL rather than when the output token was NULL.
+  The contents might have changed: size must be recomputed.
   
-  This also brings this part of the Kerberos 5 code in line with the
-  Negotiate code.
+  Reported-by: moteus on github
+  Fixes #1999
 
-- krb5: Only generate a SPN when its not known
+- test308: disable if MultiSSL feature enabled
   
-  Prior to this change, we were generating the SPN in the SSPI code when
-  the credentials were NULL and in the GSS-API code when the context was
-  empty. It is better to decouple the SPN generation from these checks
-  and only generate it when the SPN itself is NULL.
+  Even if OpenSSL is enabled, it might not be the default backend when
+  multi-ssl is enabled, causing the test to fail.
+
+- runtests: support MultiSSL client feature
+
+- vtls: change struct Curl_ssl `close' field name to `close_one'.
   
-  This also brings this part of the Kerberos 5 code in line with the
-  Negotiate code.
+  On OS/400, `close' is an ASCII system macro that corrupts the code if
+  not used in a context not targetting the close() system API.
 
-Daniel Stenberg (3 Apr 2016)
-- tests/libtest: follow our code style guidelines better
+- os400: add missing symbols in config file.
   
-  ... checksrc of all test code is pending.
+  Also adjust makefile to renamed files and warn about installation dirs mix-up.
+
+- test652: curl_mime_data + base64 encoder with large contents
 
-- checksrc.whitelist: remove fopen() uses
+- mime: limit bas64-encoded lines length to 76 characters
 
-- formdata: use appropriate fopen() macros
+Daniel Stenberg (16 Oct 2017)
+- RELEASE-NOTES: synced with f121575c0
 
-- checksrc: improve the fopen() parser somewhat
+- setopt: range check most long options
   
-  The quote scanner was too fragile, now look for a comma instead to find
-  the mode argument.
+  ... filter early instead of risking "funny values" having to be dealt
+  with elsewhere.
 
-- unit1604: fix snprintf
+- setopt: avoid integer overflows when setting millsecond values
   
-  follow-up to 0326b06
+  ... that are multiplied by 1000 when stored.
   
-  sizeof(pointer) is no good for the buffer size!
+  For 32 bit long systems, the max value accepted (2147483 seconds) is >
+  596 hours which is unlikely to ever be set by a legitimate application -
+  and previously it didn't work either, it just caused undefined behavior.
   
-  Reported-by: Viktor Szakats
+  Also updated the man pages for these timeout options to mention the
+  return code.
+  
+  Closes #1938
 
-Steve Holme (3 Apr 2016)
-- unittests: Fixed compilation warnings
+Viktor Szakats (15 Oct 2017)
+- makefile.m32: allow to override gcc, ar and ranlib
   
-  warning: implicit declaration of function 'sprintf_was_used'
-           [-Wimplicit-function-declaration]
+  Allow to ovverride certain build tools, making it possible to
+  use LLVM/Clang to build curl. The default behavior is unchanged.
+  To build with clang (as offered by MSYS2), these settings can
+  be used:
   
-  Follow up to the modications made to tests/libtest in commit 55452ebdff
-  as we prefer not to use sprintf() now.
-
-Daniel Stenberg (2 Apr 2016)
-- curl.1: -w filename_effective was introduced in 7.26.0
+  CURL_CC=clang
+  CURL_AR=llvm-ar
+  CURL_RANLIB=llvm-ranlib
   
-  We never made a 7.25.1 release
-
-- 7.49.0: next release version
+  Closes https://github.com/curl/curl/pull/1993
 
-- http2: make use of the nghttp2 error callback
+- ldap: silence clang warning
   
-  It offers extra info from nghttp2 in certain error cases. Like for
-  example when trying prior-knowledge http2 on a server that doesn't speak
-  http2 at all. The error message is passed on as a verbose message to
-  libcurl.
+  Use memset() to initialize a structure to avoid LLVM/Clang warning:
+  ldap.c:193:39: warning: missing field 'UserLength' initializer [-Wmissing-field-initializers]
   
-  Discussed in #722
-  
-  The error callback was added in nghttp2 1.9.0
+  Closes https://github.com/curl/curl/pull/1992
 
-Steve Holme (2 Apr 2016)
-- spnego: Renamed the context's SPN variable
+Daniel Stenberg (14 Oct 2017)
+- runtests: use valgrind for torture as well
   
-  To be consistent with the Kerberos 5 context and other authentication
-  code.
+  NOTE: it makes them terribly slow. I recommend only using valgrind for
+  specific torture tests or using lots of patience.
 
-- krb5_gssapi: Renamed the status variables
+- memdebug: trace send, recv and socket
+  
+  ... to allow them to be included in torture tests too.
   
-  For consistency with the spnego code.
+  closes #1980
 
-- krb5: Moved host from Curl_auth_create_gssapi_user_message() to be argument
+- configure: remove the C++ compiler check
   
-  For consistency with the spnego and oauth2 code moved the setting of
-  the host name outside of the Curl_auth_create_gssapi_user_messag()
-  function.
+  ... we used it only for the fuzzer, which we now have in a separate git
+  repo.
   
-  This will allow us to more easily override it in the future.
+  Closes #1990
 
-- test1119: Fixed missing CURL_DID_MEMORY_FUNC_TYPEDEFS symbol
+Patrick Monnerat (13 Oct 2017)
+- mime: do not call failf() if easy handle is NULL.
 
-- RELEASE-NOTES: Removed "http_negotiate: Corrected host and proxy host name"
-  
-  As this was introduced in the recent vauth changes and not a prior
-  release.
+Daniel Stenberg (13 Oct 2017)
+- test651: curl_formadd with huge COPYCONTENTS
 
-Daniel Stenberg (1 Apr 2016)
-- RELEASE-NOTES: synced with 0aa8da10bbdafa
+- mime: fix the content reader to handle >16K data properly
+  
+  Reported-by: Jeroen Ooms
+  Closes #1988
 
-Steve Holme (1 Apr 2016)
-- http_negotiate: Corrected host and proxy host name being wrong way round
+Patrick Monnerat (12 Oct 2017)
+- mime: keep "text/plain" content type if user-specified.
   
-  I had accidentally used the proxy server name for the host and the host
-  server name for the proxy in commit ad5e9bfd5d and 6d6f9ca1d9. Whilst
-  Windows SSPI was quite happy with this, GSS-API wasn't.
+  Include test cases in 554, 587, 650.
   
-  Thanks-to:  Michael Osipov
+  Fixes https://github.com/curl/curl/issues/1986
 
-- build: Changed the Visual Studio projects warning level from 3 to 4
+- cli tool: use file2memory() to buffer stdin in -F option.
   
-  After squashing most of our compiler warnings, up'ed the default
-  warning level from 3 to 4 in order to increase the likelyhood of
-  catching future warnings.
-
-Daniel Stenberg (1 Apr 2016)
-- [ehlertjd@gmail.com brought this change]
+  Closes PR https://github.com/curl/curl/pull/1985
 
-  IMAP: check pointer before dereferencing it
+- cli tool: reimplement stdin buffering in -F option.
   
-  may be null in the CURLOPT_CONNECT_ONLY case
+  If stdin is not a regular file, its content is memory-buffered to enable
+  a possible data "rewind".
+  In all cases, stdin data size is determined before real use to avoid
+  having an unknown part's size.
   
-  Fixes #747
+  --libcurl generated code is left as an unbuffered stdin fread/fseek callback
+  part with unknown data size.
+  
+  Buffering is not supported in deprecated curl_formadd() API.
 
-Steve Holme (1 Apr 2016)
-- .gitignore: Added new VC14 SQLite based program database files
+Daniel Stenberg (12 Oct 2017)
+- winbuild/BUILD.WINDOWS.txt: mention WITH_NGHTTP2
 
-- curl_memory.h: Fixed typo in comment
+- HELP-US: the label "PR-welcome" is now renamed to "help wanted"
   
-  From commit 7218b52c49.
+  following the new github "standard"
 
-- spnego: Corrected some typos in comments
-  
-  Corrected typos from commit ad5e9bfd5d and 6d6f9ca1d9.
+- RELEASE-NOTES: synced with 5505df7d2
 
-- memdebug: Ensure curl/curl.h is included before curl_memory.h
-  
-  Follow up to commit 7db9782dd6.
+Jay Satiro (11 Oct 2017)
+- [Artak Galoyan brought this change]
 
-Daniel Stenberg (1 Apr 2016)
-- upload: missing rewind call could make libcurl hang
+  url: Update current connection SSL verify params in setopt
   
-  When an upload is done, there are two places where that can be detected
-  and only one of them would rewind the input stream - which sometimes is
-  necessary for example when doing NTLM HTTP POSTs and more.
+  Now VERIFYHOST, VERIFYPEER and VERIFYSTATUS options change during active
+  connection updates the current connection's (i.e.'connectdata'
+  structure) appropriate ssl_config (and ssl_proxy_config) structures
+  variables, making these options effective for ongoing connection.
   
-  This could then end up libcurl hanging.
+  This functionality was available before and was broken by the
+  following change:
+  "proxy: Support HTTPS proxy and SOCKS+HTTP(s)"
+  CommitId: cb4e2be7c6d42ca0780f8e0a747cecf9ba45f151.
   
-  Figured-out-by: Isaac Boukris
-  Reported-by: Anatol Belski
+  Bug: https://github.com/curl/curl/issues/1941
   
-  Fixes #741
+  Closes https://github.com/curl/curl/pull/1951
 
-- curl.h: define CURL_DID_MEMORY_FUNC_TYPEDEFS
-  
-  So that we only do the extra typedefs in curl_memory.h when we really
-  need to and avoid double typedefs.
+Daniel Stenberg (11 Oct 2017)
+- [David Benjamin brought this change]
+
+  openssl: don't use old BORINGSSL_YYYYMM macros
   
-  follow-up commit to 7218b52c49aeb1
+  Those were temporary things we'd add and remove for our own convenience
+  long ago. The last few stayed around for too long as an oversight but
+  have since been removed. These days we have a running
+  BORINGSSL_API_VERSION counter which is bumped when we find it
+  convenient, but 2015-11-19 was quite some time ago, so just check
+  OPENSSL_IS_BORINGSSL.
   
-  Thanks-to: Steve Holme
+  Closes #1979
 
-- curl/mprintf.h: remove support for _MPRINTF_REPLACE
-  
-  The define is not in our name space and is therefore not protected by
-  our API promises.
+- test950; verify SMTP with custom request
+
+- ftpserver: support case insensitive commands
+
+- smtp_done: free data before returning (on send failure)
   
-  It was only really used by libcurl internals but was mostly erased from
-  there already in 8aabbf5 (March 2015). This is supposedly the final
-  death blow to that define from everywhere.
+  ... as otherwise it could leak that memory.
   
-  As a side-effect, making sure _MPRINTF_REPLACE is gone and not used, I
-  made the lib tests in tests/libtest/ use curl_printf.h for its redefine
-  magic and then subsequently the use of sprintf() got banned in the tests
-  as well (as it is in libcurl internals) and I then replaced them all
-  with snprintf().
+  Detected by OSS-fuzz:
+  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3600
   
-  In the unlikely event that any users is actually using this define and
-  gets sad by this change, it is very easily copied to the user's own
-  code.
+  Assisted-by: Max Dymond
+  Closes #1977
 
-- curl_memory.h: avoid the curl/curl.h include
+- FTP: URL decode path for dir listing in nocwd mode
   
-  Discussed in #743
-
-Steve Holme (1 Apr 2016)
-- url: Corrected get protocol family for FTP and LDAP
+  Reported-by: Zenju on github
   
-  Fixed copy/paste error from commit a5aec58726.
+  Test 244 added to verify
+  Fixes #1974
+  Closes #1976
 
-Jay Satiro (31 Mar 2016)
-- strerror: don't bit shift a signed integer
+- test298: verify --ftp-method nowcwd with URL encoded path
   
-  Bug: https://github.com/curl/curl/issues/744
-  Reported-by: Alexis La Goutte
+  Ref: #1974
 
-Daniel Stenberg (31 Mar 2016)
-- http2: more documentation for prior knowledge
+- CURLOPT_XFERINFODATA.3: fix duplicate see also
 
-- [Diego Bes brought this change]
+- CURLOPT_NOPROGRESS.3: also refer to xferinfofunction
 
-  http2: support "prior knowledge", no upgrade from HTTP/1.1
-  
-  Supports HTTP/2 over clear TCP
-  
-  - Optimize switching to HTTP/2 by removing calls to init and setup
-  before switching. Switching will eventually call setup and setup calls
-  init.
-  
-  - Supports new version to “force” the use of HTTP/2 over clean TCP
-  
-  - Add common line parameter “--http2-prior-knowledge” to the Curl
-    command line tool.
+- FAQ: s/CURLOPT_PROGRESSFUNCTION/CURLOPT_XFERINFOFUNCTION
 
-- imap: remove duplicated function
+- openssl: enable PKCS12 support for !BoringSSL
   
-  The list and search response functions were identical! Merged into one
-  now. Detected by PVS Studio.
+  Enable PKCS12 for all non-boringssl builds without relying on configure
+  or cmake checks.
   
-  Reported-by: Alexis La Goutte
+  Bug: https://curl.haxx.se/mail/lib-2017-10/0007.html
+  Reported-by: Christian Schmitz
+  Closes #1948
 
-- SOCKS5_gssapi_negotiate: don't assume little-endian ints
+- [Kristiyan Tsaklev brought this change]
+
+  curl: don't pass semicolons when parsing Content-Disposition
   
-  The code copied one byte from a 32bit integer, which works fine as long
-  as the byte order is the same. Not a fine assumption. Reported by PVS
-  Studio.
+  Test 1422 updated to verify.
   
-  Reported-by: Alexis La Goutte
-
-- http: remove ((expression)) double parentheses
+  Closes #1964
 
-- Curl_add_buffer_send: avoid possible NULL dereference
+Patrick Monnerat (9 Oct 2017)
+- mime: properly unbind mime structure in curl_mime_free().
   
-  ... as we check for a NULL pointer below, we move the derefence to after
-  the check. Detected by PVS Studio.
+  This allows freeing a mime structure bound to the easy handle before
+  curl_easy_cleanup().
   
-  Reported-by: Alexis La Goutte
+  Fixes #1970.
 
-- file: remove duplicate checks of the same variable
+Daniel Stenberg (9 Oct 2017)
+- RTSP: avoid integer overflow on funny RTSP response
   
-  ... as it doesn't change in between. Deteced by PVS Studio.
+  ... like a very large non-existing RTSP version number.
   
-  Reported-by: Alexis La Goutte
+  Added test 577 to verify.
+  
+  Detected by OSS-fuzz.
+  Closes #1969
 
-Steve Holme (30 Mar 2016)
-- [Marcel Raad brought this change]
+Patrick Monnerat (8 Oct 2017)
+- ftpserver: properly reset $ftptargetdir.
 
-  openssl: Fix compilation warnings
-  
-  When compiling with OpenSSL 1.1.0 (so that the HAVE_X509_GET0_SIGNATURE
-  && HAVE_X509_GET0_EXTENSIONS pre-processor block is active), Visual C++
-  14 complains:
-  
-  warning C4701: potentially uninitialized local variable 'palg' used
-  warning C4701: potentially uninitialized local variable 'psig' used
+- test643: verify curl_mime_subparts() rejects cyclic additions.
 
-Daniel Stenberg (30 Mar 2016)
-- multi: turn Curl_done into file local multi_done
+- mime: refuse to add subparts to one of their own descendants.
   
-  ... as it now is used by multi.c only.
+  Reported-by: Alexey Melnichuk
+  Fixes #1962
 
-- multi: multi_reconnect_request is the former Curl_reconnect_request
-  
-  now a file local function in multi.c
+- mime: avoid resetting a part's encoder when part's contents change.
 
-- multi: move Curl_do and Curl_do_done to multi.c and make static
+- mime: improve unbinding top multipart from easy handle.
   
-  ... called multi_do and multi_do_done as they're file local now.
+  Also avoid dangling pointers in referencing parts.
 
-Jay Satiro (29 Mar 2016)
-- wolfssl: Use ECC supported curves extension
-  
-  https://github.com/wolfSSL/wolfssl/issues/366
+Daniel Stenberg (8 Oct 2017)
+- RELEASE-NOTES: synced with a4c1c75da30af1
 
-- build-wolfssl: Allow a broader range of ciphers (Visual Studio)
-  
-  This is an update to the build-time options used to build wolfSSL in
-  Visual Studio for greater compatibility, and make it behave similar to
-  the way OpenSSL 1.0.2 behaves. Starting in wolfSSL v3.6.6 static ciphers
-  and SSLv3 are disabled by default at build time, but we can use both.
-  
-  - Enable static cipher suites TLS_ECDH_ and TLS_RSA_.
-  
-  - Enable SSLv3 hello. Though in libcurl we disable it by default at
-  runtime, we make it available so the user can manually select it if
-  necessary.
+- curlver.h: next expected release is 7.57.0
 
-Daniel Stenberg (29 Mar 2016)
-- [Isaac Boukris brought this change]
+Patrick Monnerat (8 Oct 2017)
+- mime: be tolerant about setting twice the same header list in a part.
+
+- docs: clarify form/mime usage of non-regular data files.
 
-  GSS: make Curl_gss_log_error more verbose
+Daniel Stenberg (8 Oct 2017)
+- Revert "multi_done: wait for name resolve to finish if still ongoing"
   
-  Also display the GSS_C_GSS_CODE (major code) when specified instead of
-  only GSS_C_MECH_CODE (minor code).
+  This reverts commit f3e03f6c0ac52a1bf396e03f7d7e9b5b3b7165fe.
   
-  In addition, the old code was printing a colon twice after the prefix
-  and also miscalculated the length of the buffer in between calls to
-  gss_display_status (the length of ": " was missing).
+  Caused memory leaks in the fuzzer, needs to be done differently.
   
-  Also, gss_buffer is not guaranteed to be NULL terminated and thus need
-  to restrict reading by its length.
+  Disable test 1553 for now too, as it causes memory leaks without this
+  commit!
+
+- remove_handle: call multi_done() first, then clear dns cache pointer
   
-  Closes #738
+  Closes #1960
 
-- build: use roffit 0.11 feature
+- multi_done: wait for name resolve to finish if still ongoing
   
-  ... load file specified as argument.
+  ... as we must clean up memory.
 
-- http2: set correct scheme in handler structs [regression]
+- pingpong: return error when trying to send without connection
   
-  Since commit a5aec58 the handler schemes need to match for the
-  connections to be reused and for HTTP/2 multiplexing to work, reusing
-  connections is very important!
+  When imap_done() got called before a connection is setup, it would try
+  to "finish up" and dereffed a NULL pointer.
   
-  Closes #736
-
-- hostip.c: minor white space edit for style
-
-- [Viktor Szakats brought this change]
-
-  TODO: use secure protocol in recently added URL
+  Test case 1553 managed to reproduce. I had to actually use a host name
+  to try to resolve to slow it down, as using the normal local server IP
+  will make libcurl get a connection in the first curl_multi_perform()
+  loop and then the bug doesn't trigger.
   
-  Closes #733
-
-- HTTP2.md: mention libressl and boringssl too
+  Fixes #1953
+  Assisted-by: Max Dymond
 
-- docs/HTTP-COOKIES: converted to markdown
-
-- HTTP2: s/polarssl/mbedtls
-
-Jay Satiro (28 Mar 2016)
-- wolfssl: Add ALPN support
-
-- tool_operate: remove mixed declaration
+Dan Fandrich (6 Oct 2017)
+- tests: added flaky keyword to tests 587 and 644
   
-  This is a follow up to the previous commit.
+  These are around 5% flaky in my Linux x86 autobuilds.
 
-Daniel Stenberg (28 Mar 2016)
-- curl: warn for --capath use if not supported by libcurl
+Marcel Raad (6 Oct 2017)
+- vtls: fix warnings with --disable-crypto-auth
   
-  Closes #492
-
-- TODO: 2.5 Edge-triggered sockets should work
+  When CURL_DISABLE_CRYPTO_AUTH is defined, Curl_none_md5sum's parameters
+  are not used.
 
-- Makefile.am: skip the scripts dir
+Daniel Stenberg (6 Oct 2017)
+- multi_cleanup: call DONE on handles that never got that
   
-  Skipping the scripts dir is primarily done for 'make install' so that it
-  does not attempt to install the zsh completion script as we've not yet
-  found a proper way to do/run that at install time.
+  ... fixes a memory leak with at least IMAP when remove_handle is never
+  called and the transfer is abruptly just abandoned early.
   
-  By leaving the script dir's Makefile in place, a user can still opt to
-  run make install manually in there.
+  Test 1552 added to verify
   
-  Closes #620
+  Detected by OSS-fuzz
+  Assisted-by: Max Dymond
+  Closes #1954
 
-- CURLMOPT_SOCKETFUNCTION.3: describe the 'what' argument
+- [Benbuck Nason brought this change]
 
-- curl_multi_socket_action.3: mark the options properly
+  strtoofft: Remove extraneous null check
   
-  ... to make them appear as links on the html version.
-
-Steve Holme (27 Mar 2016)
-- RELEASE-NOTES: Synced with f0bdd72c10
-
-- http_ntlm: Renamed from curl_ntlm.[c|h]
+  Fixes #1950: curlx_strtoofft() doesn't fully protect against null 'str'
+  argument.
   
-  Renamed the header and source files for this module as they are HTTP
-  specific and as such, they should use the naming convention as other
-  HTTP authentication source files do - this revert commit 260ee6b7bf.
-  
-  Note: We could also rename curl_ntlm_wb.[c|h], however, the Winbind
-  code needs separating from the HTTP protocol and migrating into the
-  vauth directory, thus adding support for Winbind to the SASL based
-  protocols such as IMAP, POP3 and SMTP.
-
-Daniel Stenberg (27 Mar 2016)
-- [marquis-de-muesli brought this change]
+  Closes #1952
 
-  docs: curlinfo_filetime sftp support, new curlopt_quote "statvfs"
+- openssl: fix build without HAVE_OPAQUE_EVP_PKEY
   
-  Closes #677
+  Reported-by: Javier Sixto
+  Fixes #1955
+  Closes #1956
 
-- [marquis-de-muesli brought this change]
-
-  SSH: new CURLOPT_QUOTE command "statvfs"
+Viktor Szakats (6 Oct 2017)
+- lib/config-win32.h: let SMB/SMBS be enabled with OpenSSL/NSS
   
-  usage: "statvfs path"
-  returns remote file system statistics
-
-- [marquis-de-muesli brought this change]
-
-  SSH: support CURLINFO_FILETIME
-
-- [Karlson2k brought this change]
-
-  sshserver.pl: use quotes for given options
+  The source code is now prepared to handle the case when both
+  Win32 Crypto and OpenSSL/NSS crypto backends are enabled
+  at the same time, making it now possible to enable `USE_WIN32_CRYPTO`
+  whenever the targeted Windows version supports it. Since this
+  matches the minimum Windows version supported by curl
+  (Windows 2000), enable it unconditionally for the Win32 platform.
   
-  Fixed failed redirection of stderr with some options. At least on Msys2,
-  perl fails to redirect stderr if $value contains newline or other weird
-  characters.
-
-Jay Satiro (26 Mar 2016)
-- url: don't use bad offset in tld_check_name to show error
+  This in turn enables SMB (and SMBS) protocol support whenever
+  Win32 Crypto is available, regardless of what other crypto backends
+  are enabled.
   
-  libidn's tld_check_lz returns an error offset of the first character
-  that it failed to process, however that offset is not a byte offset and
-  may not even be in the locale encoding therefore we can't use it to show
-  the user the character that failed to process.
+  Ref: https://github.com/curl/curl/pull/1840#issuecomment-325682052
   
-  Bug: https://github.com/curl/curl/issues/731
-  Reported-by: Karlson2k
+  Closes https://github.com/curl/curl/pull/1943
 
-Steve Holme (26 Mar 2016)
-- http_negotiate: Combine GSS-API and SSPI source files
+Daniel Stenberg (5 Oct 2017)
+- build: fix --disable-crypto-auth
   
-  As the GSS-API and SSPI based source files are no longer library/API
-  specific, following the extraction of that authentication code to the
-  vauth directory, combine these files rather than maintain two separate
-  versions.
+  Reported-by: Wyatt O'Day
+  Fixes #1945
+  Closes #1947
 
-- vauth: Moved the Negotiate authentication code to the new vauth directory
-  
-  Part 2 of 2 - Moved the GSS-API based Negotiate authentication code.
+Jay Satiro (5 Oct 2017)
+- [Nick Zitzmann brought this change]
 
-- vauth: Moved the Negotiate authentication code to the new vauth directory
+  darwinssl: add support for TLSv1.3
   
-  Part 1 of 2 - Moved the SSPI based Negotiate authentication code.
+  Closes https://github.com/curl/curl/pull/1794
 
-- warnless.h: Removed spurious character from commit 696bc6b9c9
-  
-  Not picked up by checksrc or Visual Studio but my own code review, this
-  would haven broken Intel based Unix builds - Perhaps I should learn to
-  type on my laptop's keyboard before committing!
+Daniel Stenberg (4 Oct 2017)
+- [Felix Kaiser brought this change]
 
-- schannel: Fixed compilation warning from commit f8d88a4913
+  docs: fix typo in curl_mime_data_cb man page
   
-  warning C4244: '=': conversion from 'int' to 'unsigned short', possible
-                      loss of data
+  Closes #1946
 
-- warnless?: Added some integer based conversion functions
-
-Daniel Stenberg (25 Mar 2016)
-- [Dusty Mabe brought this change]
-
-  docs/TODO: Add feature request for metalink in HTTP headers
+Viktor Szakats (4 Oct 2017)
+- lib/Makefile.m32: allow customizing dll suffixes
   
-  Closes #729
-  Closes #728
-
-Steve Holme (25 Mar 2016)
-- build: Corrected typos from commit 70e56939aa
-
-- vauth: Refactored function names after move to new vauth directory
+  - New `CURL_DLL_SUFFIX` envvar will add a suffix to the generated
+    libcurl dll name. Useful to add `-x64` to 64-bit builds so that
+    it can live in the same directory as the 32-bit one. By default
+    this is empty.
   
-  Renamed all the SASL functions that moved to the new vauth directory to
-  include the correct module name.
-
-- vauth: Updated the copyright year after recent changes
+  - New `CURL_DLL_A_SUFFIX` envvar to customize the suffix of the
+    generated import library (implib) for libcurl .dll. It defaults
+    to `dll`, and it's useful to modify that to `.dll` to have the
+    standard naming scheme for mingw-built .dlls, i.e. `libcurl.dll.a`.
   
-  As most of this work was performed in 2015 but not pushed until 2016
-  updated the copyright year to reflect the public facing changes.
-
-- vauth: Moved the OAuth 2.0 authentication code to the new vauth directory
+  Closes https://github.com/curl/curl/pull/1942
 
-- vauth: Moved the NTLM authentication code to the new vauth directory
+Daniel Stenberg (4 Oct 2017)
+- [Max Dymond brought this change]
 
-- vauth: Moved the Kerberos V5 authentication code to the new vauth directory
+  fuzzer: move to using external curl-fuzzer
+  
+  Use the external curl-fuzzer repository for fuzzing.
+  
+  Closes #1923
 
-- digest.c: Fixed checksrc warnings
+- failf: skip the sprintf() if there are no consumers
+  
+  Closes #1936
 
-- vauth: Moved the DIGEST authentication code to the new vauth directory
+- ftp: UBsan fixup 'pointer index expression overflowed'
+  
+  Closes #1939
 
-- vauth: Moved the CRAM-MD5 authentication code to the new vauth directory
+- RELEASE-PROCEDURE: update the release schedule
 
-- vauth: Moved the ClearText authentication code to the new vauth directory
+Version 7.56.0 (4 Oct 2017)
 
-- vauth: Moved Curl_sasl_build_spn() to create the initial vauth source files
+Daniel Stenberg (4 Oct 2017)
+- RELEASE-NOTES: curl 7.56.0
 
-- checksrc.bat: Added support for checking the new vauth directory
+- THANKS: added new 7.56.0 contributors
 
-- build: Updated all makefiles and project files for the new vauth directory
+Jay Satiro (4 Oct 2017)
+- build-openssl.bat: Warn OpenSSL 1.1.0 not yet supported
   
-  Updated the makefiles and Visual Studio project files to support moving
-  the authentication code to the new lib/vauth directory that was started
-  in commit 0d04e859e1.
+  Ref: https://github.com/curl/curl/issues/1002
 
-Daniel Stenberg (24 Mar 2016)
-- [JDepooter brought this change]
+Michael Kaufmann (3 Oct 2017)
+- idn: fix source code comment
 
-  schannel: Add ALPN support
+- vtls: compare and clone ssl configs properly
   
-  Add ALPN support for schannel. This allows cURL to negotiate
-  HTTP/2.0 connections when built with schannel.
-  
-  Closes #724
-
-Steve Holme (24 Mar 2016)
-- http: Minor update based on CODE_STYLE guidelines
-
-Daniel Stenberg (23 Mar 2016)
-- multi: fix "Operation timed out after" timer
+  Compare these settings in Curl_ssl_config_matches():
+  - verifystatus (CURLOPT_SSL_VERIFYSTATUS)
+  - random_file (CURLOPT_RANDOM_FILE)
+  - egdsocket (CURLOPT_EGDSOCKET)
   
-  Use the local, reasonably updated, 'now' value when creating the message
-  string to output for the timeout condition.
+  Also copy the setting "verifystatus" in Curl_clone_primary_ssl_config(),
+  and copy the setting "sessionid" unconditionally.
   
-  Fixes #619
-
-- openssl: boringssl provides the same numbering as openssl
+  This means that reusing connections that are secured with a client
+  certificate is now possible, and the statement "TLS session resumption
+  is disabled when a client certificate is used" in the old advisory at
+  https://curl.haxx.se/docs/adv_20170419.html is obsolete.
   
-  ... so we don't need extra boringssl precautions for for
-  HAVE_ERR_REMOVE_THREAD_STATE_NOARG.
+  Reviewed-by: Daniel Stenberg
   
-  Pointed-out-by: David Benjamin
+  Closes #1917
 
-- openssl: fix ERR_remove_thread_state() for boringssl/libressl
+- proxy: read the "no_proxy" variable only if necessary
   
-  The removed arg is only done in OpenSSL
+  Reviewed-by: Daniel Stenberg
   
-  Bug: https://twitter.com/xtraemeat/status/712564874098917376
+  Closes #1919
 
-- bump: work on 7.48.1
+Patrick Monnerat (3 Oct 2017)
+- libcurl-tutorial: add casts in example to avoid compilation warnings.
 
-- RELEASE-PROCEDURE: mention the github release tag edit
+Daniel Stenberg (3 Oct 2017)
+- examples: bring back curl_formadd-using examples
   
-  ... and update the coming release dates a bit
+  ... now with a -formadd suffix. While the new mime API is introduced in
+  7.56.0 we must acknowledge that lots of users can't upgrade their curl
+  versions immediately.
+
+- test1153: verify quoted double-qoutes in PWD response
 
-Steve Holme (23 Mar 2016)
-- checksrc.bat: Updated the help to be consistent with generate.bat
+- FTP: zero terminate the entry path even on bad input
   
-  Follow up to commit a8c7f0fcbf prior to release.
+  ... a single double quote could leave the entry path buffer without a zero
+  terminating byte. CVE-2017-1000254
+  
+  Test 1152 added to verify.
+  
+  Reported-by: Max Dymond
+  Bug: https://curl.haxx.se/docs/adv_20171004.html
+
+Jay Satiro (2 Oct 2017)
+- [Sergei Nikulov brought this change]
 
-Version 7.48.0 (23 Mar 2016)
+  cmake: disable tests and man generation if perl/nroff not found
+  
+  Fixes https://github.com/curl/curl/issues/1500
+  Reported-by: Jay Satiro
+  
+  Fixes https://github.com/curl/curl/pull/1662
+  Assisted-by: Tom Seddon
+  Assisted-by: dpull@users.noreply.github.com
+  Assisted-by: elelel@users.noreply.github.com
+  
+  Closes https://github.com/curl/curl/pull/1924
 
-Daniel Stenberg (23 Mar 2016)
-- RELEASE-NOTES: curl 7.48.0
+Patrick Monnerat (2 Oct 2017)
+- libcurl-tutorial: fix two typos.
 
-- THANKS: 15 new contributors from 7.48.0 release
+- TODO: remove deprecated form API items.
 
-Jay Satiro (23 Mar 2016)
-- CURLINFO_TLS_SSL_PTR.3: Warn about limitations
+- libcurl-tutorial: describe MIME API and deprecate form API.
   
-  Bug: https://github.com/curl/curl/issues/685
+  Include a guide to form/mime API conversion.
 
-Daniel Stenberg (22 Mar 2016)
-- Revert "sshserver: remove use of AuthorizedKeysFile2"
+Daniel Stenberg (30 Sep 2017)
+- cookie: fix memory leak if path was set twice in header
   
-  It seems we may have some autobuild problems after this commit went
-  in. Trying to see if a revert helps to get them back.
+  ... this will let the second occurance override the first.
   
-  This reverts commit 2716350d1f3edc8e929f6ceeee05051090f6d642.
-
-- maketgz: add -j to make dist
+  Added test 1161 to verify.
   
-  ... makes it a lot faster
+  Reported-by: Max Dymond
+  Fixes #1932
+  Closes #1933
 
-- libcurl-thread.3: minor nroff format fix
+Dan Fandrich (30 Sep 2017)
+- test650: Use variable replacement to set the host address and port
+  
+  Otherwise, the test fails when the -b test option is used to set a
+  different test port range.
 
-- CURLINFO_TLS_SSL_PTR.3: minor nroff format fix
+- Set and use more necessary options when some protocols are disabled
+  
+  When curl and libcurl are built with some protocols disabled, they stop
+  setting and receiving some options that don't make sense with those
+  protocols.  In particular, when HTTP is disabled many options aren't set
+  that are used only by HTTP.  However, some options that appear to be
+  HTTP-only are actually used by other protocols as well (some despite
+  having HTTP in the name) and should be set, but weren't. This change now
+  causes some of these options to be set and used for more (or for all)
+  protocols. In particular, this fixes tests 646 through 649 in an
+  HTTP-disabled build, which use the MIME API in the mail protocols.
 
-- CODE_STYLE: indend example code
+Daniel Stenberg (29 Sep 2017)
+- test1160: verifies cookie leak for large cookies
   
-  ... to make it look nicer in markdown outputa
+  The fix done in 20ea22ff735
 
-Jay Satiro (22 Mar 2016)
-- build-wolfssl: Update VS properties for wolfSSL v3.9.0
+- cookie: fix memory leak on oversized rejection
   
-  - Do not use wolfSSL's sample user-setting files.
+  Regression brought by 2bc230de63b
   
-  wolfSSL starting in v3.9.0 has added their own sample user settings that
-  are applied by default, but we don't use them because we have our own
-  settings.
+  Detected by OSS-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3513
+  Assisted-by: Max Dymond
   
-  - Do not use wolfSSL's Visual Studio Unicode character setting.
+  Closes #1930
+
+- [Anders Bakken brought this change]
+
+  connect: fix race condition with happy eyeballs timeout
   
-  wolfSSL Visual Studio projects use the Unicode character set however our
-  settings and options imitate mingw build which does not use the Unicode
-  character set. This does not appear to have any effect at the moment but
-  better safe than sorry.
+  The timer should be started after conn->connecttime is set. Otherwise
+  the timer could expire without this condition being true:
   
+      /* should we try another protocol family? */
+      if(i == 0 && conn->tempaddr[1] == NULL &&
+        curlx_tvdiff(now, conn->connecttime) >= HAPPY_EYEBALLS_TIMEOUT) {
   
-  These changes are backwards compatible with earlier versions.
+  Ref: #1928
 
-Steve Holme (22 Mar 2016)
-- hostip6: Fixed compilation warnings when verbose strings disabled
+Michael Kaufmann (28 Sep 2017)
+- docs: link CURLOPT_CONNECTTIMEOUT and CURLOPT_CONNECTTIMEOUT_MS
   
-  warning C4189: 'data': local variable is initialized but not referenced
-  
-  ...and some minor formatting/spacing changes.
+  Closes #1922
 
-Daniel Stenberg (21 Mar 2016)
-- sshserver: remove use of AuthorizedKeysFile2
-  
-  Support for the (undocumented) AuthorizedKeysFile2 was removed in
-  OpenSSH 5.9, released in September 2011
+- docs: clarify the use of environment variables for proxy
   
-  Closes #715
+  Closes #1921
 
-Steve Holme (20 Mar 2016)
-- connect/ntlm/http: Fixed compilation warnings when verbose strings disabled
+- http: add custom empty headers to repeated requests
   
-  warning C4189: 'data': local variable is initialized but not referenced
+  Closes #1920
 
-- openssl: Fixed compilation warning when /Wall enabled
+- reuse_conn: don't copy flags that are known to be equal
   
-  warning C4706: assignment within conditional expression
+  A connection can only be reused if the flags "conn_to_host" and
+  "conn_to_port" match. Therefore it is not necessary to copy these flags
+  in reuse_conn().
+  
+  Closes #1918
 
-- CODE_STYLE: Use boolean conditions
+Daniel Stenberg (27 Sep 2017)
+- curl.h: include <sys/select.h> on cygwin too
   
-  Rather than use TRUE, FALSE, NULL, 0 or != 0 in if/while conditions.
+  When building with -std=c++14 on cygwin, this header won't be
+  automatically included as it otherwise is.
   
-  Additionally, corrected some example code to adhere to the recommended
-  coding style.
-
-- inet_pton.c: Fixed compilation warnings
+  The <sys/select.h> include decision should ideally be reversed and be
+  avoided where that header file doesn't exist.
   
-  warning: conversion to 'unsigned char' from 'int' may alter its value
+  Reported-by: Ian Fette
+  Fixes #1925
 
-Daniel Stenberg (19 Mar 2016)
-- RELEASE-NOTES: synced with 80851028efc2fa9
+- RELEASE-NOTES: synced with d8ab5dc50
 
-- mbedtls: fix compiler warning
-  
-  vtls/mbedtls.h:67:36: warning: implicit declaration of function
-  ‘mbedtls_sha256’ [-Wimplicit-function-declaration]
+Michael Kaufmann (24 Sep 2017)
+- tests: adjust .gitignore for new tests
 
-Steve Holme (19 Mar 2016)
-- easy: Minor coding standard and style updates
+Jay Satiro (23 Sep 2017)
+- ntlm: move NTLM_NEEDS_NSS_INIT define into core NTLM header
+  
+  .. and include the core NTLM header in all NTLM-related source files.
   
-  Following commit c5744340db. Additionally removes the need for a second
-  'result code' variable as well.
+  Follow up to 6f86022. Since then http_ntlm checks NTLM_NEEDS_NSS_INIT
+  but did not include vtls.h where it was defined.
+  
+  Closes https://github.com/curl/curl/pull/1911
 
-Jay Satiro (19 Mar 2016)
-- easy: Remove poll failure check in easy_transfer
+Daniel Stenberg (23 Sep 2017)
+- file_range: avoid integer overflow when figuring out byte range
   
-  .. because curl_multi_wait can no longer signal poll failure.
+  When trying to bump the value with one and the value is already at max,
+  it causes an integer overflow.
   
-  follow-up to 77e1726
+  Closes #1908
+  Detected by oss-fuzz:
+  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3465
   
-  Bug: https://github.com/curl/curl/issues/707
+  Assisted-by: Max Dymond
+
+Michael Kaufmann (23 Sep 2017)
+- tests: fix a compiler warning in test 643
 
-Steve Holme (19 Mar 2016)
-- build: Added missing Visual Studio filter files for VC10 onwards
+Jay Satiro (23 Sep 2017)
+- symbols-in-versions: fix CURLSSLSET_NO_BACKENDS entry
   
-  As these files don't need to contain references to the source files,
-  although typically do, added basic files which only include three
-  filters and don't require the project file generator to be modified.
+  - Use spaces instead of tabs as the delimiter.
   
-  These files allow the source code to be viewed in the Solution Explorer
-  in versions of Visual Studio from 2010 onwards in the same manner as
-  previous versions did rather than one large view of files.
+  Follow up to 7c52b12 which added the entry. The entry had used tabs but
+  the symbol-scan parser doesn't recognize tabs and would fail the symbol.
 
-- ftp/imap/pop3/smtp: Fixed compilation warning when /Wall enabled
+Viktor Szakats (22 Sep 2017)
+- metalink: fix NSS issue in MultiSSL builds
   
-  warning C4706: assignment within conditional expression
-
-- config-w32.h: Fixed compilation warning when /Wall enabled
+  In MultiSSL mode (i.e. when more than one SSL backend is compiled
+  in), we cannot use the compile time flag `USE_NSS` as indicator that
+  the NSS backend is in use. As far as Metalink is concerned, the SSL
+  backend is only used for MD5, SHA-1 and SHA-256 calculations,
+  therefore one of the available SSL backends is selected at compile
+  time, in a strict order of preference.
+  
+  Let's introduce a new `HAVE_NSS_CONTEXT` constant that can be used
+  to determine whether the SSL backend used for Metalink is the NSS
+  backend, and use that to guard the code that wants to de-initialize
+  the NSS-specific data structure.
   
-  warning C4668: 'USE_IPV6' is not defined as a preprocessor macro,
-                 replacing with '0' for '#if/#elif'
+  Ref: https://github.com/curl/curl/pull/1848
 
-- imap.c: Fixed compilation warning with /Wall enabled
+- ntlm: use strict order for SSL backend #if branches
   
-  warning C4701: potentially uninitialized local variable 'size' used
+  With the recently introduced MultiSSL support multiple SSL backends
+  can be compiled into cURL That means that now the order of the SSL
   
-  Technically this can't happen, as the usage of 'size' is protected by
-  'if(parsed)' and 'parsed' is only set after 'size' has been parsed.
+  One option would be to use the same SSL backend as was configured
+  via `curl_global_sslset()`, however, NTLMv2 support would appear
+  to be available only with some SSL backends. For example, when
+  eb88d778e (ntlm: Use Windows Crypt API, 2014-12-02) introduced
+  support for NTLMv1 using Windows' Crypt API, it specifically did
+  *not* introduce NTLMv2 support using Crypt API at the same time.
   
-  Anyway, lets keep the compiler happy.
-
-- KNOWN_BUGS: #93 Issue with CURLFORM_CONTENTLEN in arrays on 32-bit platforms
+  So let's select one specific SSL backend for NTLM support when
+  compiled with multiple SSL backends, using a priority order such
+  that we support NTLMv2 even if only one compiled-in SSL backend can
+  be used for that.
+  
+  Ref: https://github.com/curl/curl/pull/1848
 
-Daniel Stenberg (18 Mar 2016)
-- bump: the coming release is 7.48.0
+Daniel Stenberg (22 Sep 2017)
+- symbols-in-versions: add CURLSSLSET_NO_BACKENDS
+  
+  ...fixup from b8e0fe19ec
 
-- configure: use cpp -P when needed
+- imap: quote atoms properly when escaping characters
   
-  Since gcc 5, the processor output can get split up on multiple lines
-  that made the configure script fail to figure out values from
-  definitions. The fix is to use cpp -P, and this fix now first checks if
-  cpp -P is necessary and then if cpp -P works before it uses that to
-  extract defined values.
+  Updates test 800 to verify
   
-  Fixes #719
+  Fixes #1902
+  Closes #1903
 
-Steve Holme (18 Mar 2016)
-- formdata.c: Fixed compilation warning
+- tests: make the imap server not verify user+password
   
-  formdata.c:390: warning: cast from pointer to integer of different size
+  ... as the test cases themselves do that and it makes it easier to add
+  crazy test cases.
   
-  Introduced in commit ca5f9341ef this happens because a char*, which is
-  32-bits wide in 32-bit land, is being cast to a curl_off_t which is
-  64-bits wide where 64-bit integers are supported by the compiler.
+  Test 800 updated to use user name + password that need quoting.
   
-  This doesn't happen in 64-bit land as a pointer is the same size as a
-  curl_off_t.
+  Test 856 updated to trigger an auth fail differently.
   
-  This fix doesn't address the fact that a 64-bit value cannot be used
-  for CURLFORM_CONTENTLEN when set in a form array and compiled on a
-  32-bit platforms, it does at least suppress the compilation warning.
-
-Daniel Stenberg (18 Mar 2016)
-- FAQ: 2.5 Install libcurl for both 32bit and 64bit?
+  Ref: #1902
 
-- [Gisle Vanem brought this change]
-
-  openssl: adapt to API breakage in ERR_remove_thread_state()
+- vtls: provide curl_global_sslset() even in non-SSL builds
   
-  The OpenSSL API change that broke this is "Convert ERR_STATE to new
-  multi-threading API": openssl commit 8509dcc.
+  ... it just returns error:
   
-  Closes #713
-
-- version: init moved to private name space, added protos
+  Bug: https://github.com/curl/curl/commit/1328f69d53f2f2e937696ea954c480412b018451#commitcomment-24470367
+  Reported-by: Marcel Raad
   
-  follow-up to 80015cdd52145
+  Closes #1906
 
-- openssl: verbose: show matching SAN pattern
-  
-  ... to allow users to see which specfic wildcard that matched when such
-  is used.
+Patrick Monnerat (22 Sep 2017)
+- form/mime: field names are not allowed to contain zero-valued bytes.
   
-  Also minor logic cleanup to simplify the code, and I removed all tabs
-  from verbose strings.
+  Also suppress length argument of curl_mime_name() (names are always
+  zero-terminated).
 
-Jay Satiro (16 Mar 2016)
-- version: thread safety
+Daniel Stenberg (21 Sep 2017)
+- [Dirk Feytons brought this change]
 
-Steve Holme (16 Mar 2016)
-- transfer: Removed redundant HTTP authentication include files
+  openssl: only verify RSA private key if supported
   
-  It would also seem that share.h is not required here either as there
-  are no references to the Curl_share structure or functions.
-
-- easy: Removed redundant HTTP authentication include files
-
-Jay Satiro (15 Mar 2016)
-- CURLOPT_SSLENGINE.3: Only for OpenSSL built with engine support
+  In some cases the RSA key does not support verifying it because it's
+  located on a smart card, an engine wants to hide it, ...
+  Check the flags on the key before trying to verify it.
+  OpenSSL does the same thing internally; see ssl/ssl_rsa.c
   
-  Bug: https://curl.haxx.se/mail/lib-2016-03/0150.html
-  Reported-by: Oliver Graute
+  Closes #1904
 
-Steve Holme (15 Mar 2016)
-- curl_sasl: Minor code indent fixes
-
-Daniel Stenberg (14 Mar 2016)
-- runtests: mention when run event-based
+Marcel Raad (21 Sep 2017)
+- examples/post-callback: use long for CURLOPT_POSTFIELDSIZE
+  
+  Otherwise, typecheck-gcc.h warns on MinGW-w64.
 
-- easy: add check to malloc() when running event-based
+Patrick Monnerat (20 Sep 2017)
+- mime: rephrase the multipart output state machine (#1898) ...
   
-  ... to allow torture tests then too.
+  ... in hope coverity will like it much.
 
-- memdebug: skip logging the limit countdown, fflush when reached
+- mime: fix an explicit null dereference (#1899)
 
-- CODE_STYLE: Space around operators
+Daniel Stenberg (20 Sep 2017)
+- curl: check fseek() return code and bail on error
   
-  As just discussed on the mailing list, also document how we prefer
-  spacing in expressions.
+  Detected by coverity. CID 1418137.
 
-- curl: glob_range: no need to check unsigned variable for negative
+- smtp: fix memory leak in OOM
   
-  cppcheck warned:
+  Regression since ce0881edee
   
-  [src/tool_urlglob.c:283]: (style) Checking if unsigned variable 'step_n'
-  is less than zero.
+  Coverity CID 1418139 and CID 1418136 found it, but it was also seen in
+  torture testing.
 
-- CODE_STYLE: add example for indent style as well
+- RELEASE-NOTES: synced with 5fe85587c
 
-- CODE_STYLE: mention braces for functions too
+- [Pavel Pavlov brought this change]
 
-- docs/Makefile.am: include CODE_STYLE in tarball too
-
-- CONTRIBUTE: moved out code style to a separate document
-
-- CODE_STYLE: initial version
+  cookies: use lock when using CURLINFO_COOKIELIST
   
-  Ripped out from CONTRIBUTE into its own document, but also extended from
-  there.
+  Closes #1896
 
-- curl_sasl.c: minor code indent fixes
+- [Max Dymond brought this change]
 
-- multi: simplified singlesocket
+  ossfuzz: changes before merging the generated corpora
   
-  Since sh_getentry() now checks for invalid sockets itself and by
-  narrowing the scope of the remove_sock_from_hash variable.
-
-- multi: introduce sh_getentry() for looking up sockets in the sockhash
+  Before merging in the oss-fuzz corpora from Google, there are some changes
+  to the fuzzer.
+  - Add a read corpus script, to display corpus files nicely.
+  - Change the behaviour of the fuzzer so that TLV parse failures all now
+    go down the same execution paths, which should reduce the size of the
+    corpora.
+  - Make unknown TLVs a failure to parse, which should decrease the size
+    of the corpora as well.
   
-  Simplify the code by using a single entry that looks for a socket in the
-  socket hash. As indicated in #712, the code looked for CURL_SOCKET_BAD
-  at some point and that is ineffective/wrong and this makes it easier to
-  avoid that.
-
-- [Jaime Fullaondo brought this change]
+  Closes #1881
 
-  multi hash: ensure modulo performed on curl_socket_t
+- mime:escape_string minor clarification change
   
-  Closes #712
-
-Steve Holme (13 Mar 2016)
-- base64: Minor coding standard and style updates
-
-- base64: Use 'CURLcode result' for curl result codes
-
-- negotiate: Use 'CURLcode result' for curl result codes
-
-Daniel Stenberg (13 Mar 2016)
-- [Maksim Kuzevanov brought this change]
-
-  multi_runsingle: avoid loop in CURLM_STATE_WAITPROXYCONNECT
+  ... as it also removes a warning with old gcc versions.
   
-  Closes #703
-
-- TODO: Use the RFC6265 test suite
+  Bug: https://curl.haxx.se/mail/lib-2017-09/0049.html
+  Reported-by: Ben Greear
 
-Steve Holme (13 Mar 2016)
-- checksrc.bat: Added the ability to scan src and lib source independently
+- [Max Dymond brought this change]
 
-- digest: Use boolean based success code for Curl_sasl_digest_get_pair()
+  ossfuzz: don't write out to stdout
   
-  Rather than use a 0 and 1 integer base result code use a TRUE / FALSE
-  based success code.
-
-- digest: Corrected some typos in comments
-
-- krb5: Corrected some typos in function descriptions
-
-- ntlm: Corrected some typos in function descriptions
-
-- url: Corrected indentation when calling idna_to_ascii_lz()
-
-- idn_win32: Use boolean based success codes
+  Don't make the fuzzer write out to stdout - instead write some of the
+  contents to a memory block so we exercise the data output code but
+  quietly.
   
-  Rather than use 0 and 1 integer base result codes use a FALSE / TRUE
-  based success code.
-
-Daniel Stenberg (10 Mar 2016)
-- idn_win32.c: warning: Trailing whitespace
+  Closes #1885
 
-Steve Holme (10 Mar 2016)
-- idn_win32.c: Fixed compilation warning from commit 9e7fcd4291
+- cookies: reject oversized cookies
   
-  warning C4267: 'function': conversion from 'size_t' to 'int',
-                 possible loss of data
-
-Daniel Stenberg (10 Mar 2016)
-- THANKS-filter: unify Michael König
-
-- RELEASE-NOTES: synced with 863c5766dd
-
-- ftp: remove a check for NULL(!)
+  ... instead of truncating them.
   
-  ... as it implies we need to check for that on all the other variable
-  references as well (as Coverity otherwise warns us for missing NULL
-  checks), and we're alredy making sure that the pointer is never NULL.
-
-- cookies: first n/v pair in Set-Cookie: is the cookie, then parameters
+  There's no fixed limit for acceptable cookie names in RFC 6265, but the
+  entire cookie is said to be less than 4096 bytes (section 6.1). This is
+  also what browsers seem to implement.
   
-  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.
+  We now allow max 5000 bytes cookie header. Max 4095 bytes length per
+  cookie name and value. Name + value together may not exceed 4096 bytes.
   
-  libcurl previously had a more liberal approach which causes significant
-  problems when introducing new cookie parameters, like the suggested new
-  cookie priority draft.
+  Added test 1151 to verify
   
-  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'.
+  Bug: https://curl.haxx.se/mail/lib-2017-09/0062.html
+  Reported-by: Kevin Smith
   
-  Fixes #709
+  Closes #1894
 
-- krb5: improved type handling to avoid clang compiler warnings
-
-- url.c: fix clang warning: no newline at end of file
-
-- curl_multi_wait: never return -1 in 'numfds'
+- travis: on mac, don't install openssl or libidn
   
-  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.
+  - openssl is already installed and causes warnings when trying to
+    install again
   
-  Reported-by: Jay Satiro
-  Closes #707
-
-- HTTP2.md: add CURL_HTTP_VERSION_2TLS and updated alt-svc link
-
-- curl_multi_wait.3: add example
+  - libidn isn't used these days, and homebrew doesn't seem to have a
+    libidn2 package to replace with easily
+  
+  Closes #1895
 
-Steve Holme (8 Mar 2016)
-- imap/pop3/smtp: Fixed connections upgraded with TLS are not reused
+- curl: make str2udouble not return values on error
   
-  Regression since commit 710f14edba.
+  ... previously it would store a return value even when it returned
+  error, which could make the value get used anyway!
   
-  Bug: https://github.com/curl/curl/issues/422
-  Reported-by: Justin Ehlert
+  Reported-by: Brian Carpenter
+  Closes #1893
 
-Jay Satiro (8 Mar 2016)
-- opt-docs: fix heading macros
+Jay Satiro (18 Sep 2017)
+- socks: fix incorrect port number in SOCKS4 error message
   
-  ..SH should be .SH
+  Prior to this change it appears the SOCKS5 port parsing was erroneously
+  used for the SOCKS4 error message, and as a result an incorrect port
+  would be shown in the error message.
   
-  Bug: https://github.com/curl/curl/issues/705
-  Reported-by: Eric S. Raymond
+  Bug: https://github.com/curl/curl/issues/1892
+  Reported-by: Jackarain@users.noreply.github.com
 
-Kamil Dudka (8 Mar 2016)
-- [Tim Rühsen brought this change]
+- [Marc Aldorasi brought this change]
 
-  cookie: do not refuse cookies for localhost
+  schannel: Support partial send for when data is too large
+  
+  Schannel can only encrypt a certain amount of data at once.  Instead of
+  failing when too much data is to be sent at once, send as much data as
+  we can and let the caller send the remaining data by calling send again.
+  
+  Bug: https://curl.haxx.se/mail/lib-2014-07/0033.html
   
-  Closes #658
+  Closes https://github.com/curl/curl/pull/1890
 
-Daniel Stenberg (8 Mar 2016)
-- ftp_done: clear tunnel_state when secondary socket closes
+- [David Benjamin brought this change]
+
+  openssl: add missing includes
   
-  Introducing a function for closing the secondary connection to make this
-  bug less likely to happen again.
+  lib/vtls/openssl.c uses OpenSSL APIs from BUF_MEM and BIO APIs. Include
+  their headers directly rather than relying on other OpenSSL headers
+  including things.
   
-  Reported-by: daboul
-  Closes #701
+  Closes https://github.com/curl/curl/pull/1891
 
-- [Gisle Vanem brought this change]
+Daniel Stenberg (15 Sep 2017)
+- conversions: fix several compiler warnings
+
+- server/getpart: provide dummy function to build conversion enabled
 
-  openssl: use the correct OpenSSL/BoringSSL/LibreSSL in messages
+- non-ascii: use iconv() with 'char **' argument
+  
+  Bug: https://curl.haxx.se/mail/lib-2017-09/0031.html
 
-- HTTP2.md: HTTP/2 by default for curl's HTTPS connections
+- escape.c: error: pointer targets differ in signedness
 
-- [Anders Bakken brought this change]
+- docs: clarify the CURLOPT_INTERLEAVE* options behavior
 
-  pipeline: Sanity check pipeline pointer before accessing it.
+- [Max Dymond brought this change]
+
+  rtsp: Segfault in rtsp.c when using WRITEDATA
   
-  I got a crash with this stack:
+  If the INTERLEAVEFUNCTION is defined, then use that plus the
+  INTERLEAVEDATA information when writing RTP. Otherwise, use
+  WRITEFUNCTION and WRITEDATA.
   
-  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)
+  Fixes #1880
+  Closes #1884
+
+Marcel Raad (15 Sep 2017)
+- [Isaac Boukris brought this change]
+
+  tests: enable gssapi in travis-ci linux build
   
-  Closes #704
+  Closes https://github.com/curl/curl/pull/1687
 
-- HTTP2.md: mention the disable ALPN and NPN options
+- [Isaac Boukris brought this change]
 
-- TODO: 17.12 keep running, read instructions from pipe/socket
+  tests: add initial gssapi test using stub implementation
   
-  And delete trailing whitespace
-  And rename section 17 to "command line tool" from "client"
+  The stub implementation is pre-loaded using LD_PRELOAD
+  and emulates common gssapi uses (only builds if curl is
+  initially built with gssapi support).
   
-  Closes #702
-
-- README.md: linkified
+  The initial tests are currently disabled for debug builds
+  as LD_PRELOAD is not used then.
   
-  It also makes it less readable as plain text, so let's keep this
-  primarily for github use.
+  Ref: https://github.com/curl/curl/pull/1687
+
+Daniel Stenberg (15 Sep 2017)
+- test1150: verify same host fetch using different ports over proxy
   
-  Removed the top ascii art logo, as it looks weird when markdownified.
+  Closes #1889
 
-- README.md: markdown version of README
+- URL: on connection re-use, still pick the new remote port
+  
+  ... as when a proxy connection is being re-used, it can still get a
+  different remote port.
   
-  Attempt to make it look more appealing on github
+  Fixes #1887
+  Reported-by: Oli Kingshott
 
-Jay Satiro (6 Mar 2016)
-- mprintf: update trio project link
+- RELEASE-NOTES: synced with 87501e57f
 
-Daniel Stenberg (6 Mar 2016)
-- CURLOPT_ACCEPTTIMEOUT_MS.3: added example
+- code style: remove wrong uses of multiple spaces
+  
+  Closes #1878
 
-- CURLOPT_ACCEPT_ENCODING.3: added example
+- checksrc: detect and warn for multiple spaces
 
-- CURLOPT_APPEND.3: added example
+- code style: use space after semicolon
 
-- CURLOPT_NOPROGRESS.3: added example, conform to stardard style
+- checksrc: verify space after semicolons
 
-Steve Holme (6 Mar 2016)
-- 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.
+- code style: use spaces around pluses
 
-Daniel Stenberg (6 Mar 2016)
-- opts: added two examples
+- checksrc: detect and warn for lack of spaces next to plus signs
 
-- CURLOPT_SSL_CTX_FUNCTION.3: use .NF for example
+- code style: use spaces around equals signs
 
-- CURLOPT_SSL_CTX_FUNCTION.3: added example
+- checksrc: verify spaces around equals signs
   
-  and removed erroneous reference to test case lib509
+  ... as the code style mandates.
 
-- curlx.c: use more curl style code
-
-- test46: change cookie expiry date
+- Curl_checkheaders: make it available for IMAP and SMTP too
   
-  Since two of the cookies would now otherwise expire and cause the test
-  to fail after commit 20de9b4f09
+  ... not only HTTP uses this now.
   
-  Discussed in #697
+  Closes #1875
 
-Jay Satiro (5 Mar 2016)
-- [Viktor Szakats brought this change]
+- travis: add build without HTTP/SMTP/IMAP
 
-  makefile.m32: add missing libs for static -winssl-ssh2 builds
+Jay Satiro (10 Sep 2017)
+- mbedtls: enable CA path processing
   
-  Bug: https://github.com/curl/curl/pull/693
-
-- mbedtls: fix user-specified SSL protocol version
+  CA path processing was implemented when mbedtls.c was added to libcurl
+  in fe7590f, but it was never enabled.
   
-  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.
-
-Steve Holme (5 Mar 2016)
-- .gitignore: Added *.VC.opendb and *.vcxproj.user files for VC14
+  Bug: https://github.com/curl/curl/issues/1877
+  Reported-by: SBKarr@users.noreply.github.com
 
-- build-openssl.bat: Fixed cannot find perl if installed but not in path
-
-- checksrc.bat: Fixed cannot find perl if installed but not in path
-
-Jay Satiro (5 Mar 2016)
-- [Viktor Szakats brought this change]
-
-  makefile.m32: fix to allow -ssh2-winssl combination
+Daniel Stenberg (8 Sep 2017)
+- rtsp: do not call fwrite() with NULL pointer FILE *
   
-  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.
-
-- cookie: Don't expire session cookies in remove_expired
+  If the default write callback is used and no destination has been set, a
+  NULL pointer would be passed to fwrite()'s 4th argument.
   
-  Prior to this change cookies with an expiry date that failed parsing
-  and were converted to session cookies could be purged in remove_expired.
+  OSS-fuzz bug https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3327
+  (not publicly open yet)
   
-  Bug: https://github.com/curl/curl/issues/697
-  Reported-by: Seth Mos
+  Detected by OSS-fuzz
+  Closes #1874
 
-Daniel Stenberg (3 Mar 2016)
-- cookie: remove redundant check
-  
-  ... as it was already checked previously within the function.
+- configure: use -Wno-varargs on clang 3.9[.X] debug builds
   
-  Reported-by: Dmitry-Me
-  Closes #695
+  ... to avoid a clang bug
 
-Jay Satiro (1 Mar 2016)
-- [Anders Bakken brought this change]
+- [Max Dymond brought this change]
+
+  ossfuzz: add some more handled CURL options
+  
+  Add support for HEADER, COOKIE, RANGE, CUSTOMREQUEST, MAIL_RECIPIENT,
+  MAIL_FROM and uploading data.
 
-  url: if Curl_done is premature then pipeline not in use
+- configure: check for C++ compiler after C, to make it non-fatal
   
-  Prevent a crash if 2 (or more) requests are made to the same host and
-  pipelining is enabled and the connection does not complete.
+  The tests for object file/executable file extensions are presumably only
+  done for the first of these macros in the configure file.
   
-  Bug: https://github.com/curl/curl/pull/690
+  Bug: https://github.com/curl/curl/pull/1851#issuecomment-327597515
+  Reported-by: Marcel Raad
+  Closes #1873
 
-- [Viktor Szakats brought this change]
+Patrick Monnerat (7 Sep 2017)
+- form API: add new test 650.
+  
+  Now that the form API is deprecated and not used anymore in curl tool,
+  a lot of its features left untested. Test 650 attempts to check all these
+  features not tested elsewhere.
 
-  makefile.m32: allow to pass .dll/.exe-specific LDFLAGS
+Jay Satiro (7 Sep 2017)
+- configure: fix curl_off_t check's include order
   
-  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.
+  - Prepend srcdir include path instead of append.
   
-  Ref: https://github.com/curl/curl/pull/670#issuecomment-190863985
+  Prior to this change it was possible that during the check for the size
+  of curl_off_t the include path of a user's already installed curl could
+  come before the include path of the to-be-built curl, resulting in the
+  system.h of the former being incorrectly included for that check.
   
-  Closes https://github.com/curl/curl/pull/689
+  Closes https://github.com/curl/curl/pull/1870
 
-Daniel Stenberg (29 Feb 2016)
-- formpost: fix memory leaks in AddFormData error branches
-  
-  Reported-by: Dmitry-Me
-  Fixes #688
+Daniel Stenberg (7 Sep 2017)
+- [Jakub Zakrzewski brought this change]
 
-Jay Satiro (28 Feb 2016)
-- getinfo: Fix syntax error when mbedTLS
+  KNOWN_BUGS: Remove CMake symbol hiding issue
   
-  The assignment of the mbedTLS TLS session info in the parent commit was
-  incorrect. Change the assignment to a pointer to the session structure.
+  It has already been fixed in 6140dfc
 
-- getinfo: Add support for mbedTLS TLS session info
+- http-proxy: when not doing CONNECT, that phase is done immediately
   
-  .. and preprocessor check TLS session info is defined for all backends.
+  `conn->connect_state` is NULL when doing a regular non-CONNECT request
+  over the proxy and should therefor be considered complete at once.
+  
+  Fixes #1853
+  Closes #1862
+  Reported-by: Lawrence Wagerfield
 
-Daniel Stenberg (26 Feb 2016)
-- ROADMAP: clarify on the TLS proxy, mention HTTP cookies to work on
+- [Johannes Schindelin brought this change]
 
-- file: try reading from files with no size
+  OpenSSL: fix yet another mistake while encapsulating SSL backend data
   
-  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.
+  Another mistake in my manual fixups of the largely mechanical
+  search-and-replace ("connssl->" -> "BACKEND->"), just like the previous
+  commit concerning HTTPS proxies (and hence not caught during my
+  earlier testing).
   
-  Reported-by: Jesse Tan
+  Fixes #1855
+  Closes #1871
   
-  Closes #681
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
 
-Jay Satiro (25 Feb 2016)
-- configure: warn on invalid ca bundle or path
-  
-  - Warn if --with-ca-bundle file does not exist.
+- [Johannes Schindelin brought this change]
+
+  OpenSSL: fix erroneous SSL backend encapsulation
   
-  - Warn if --with-ca-path directory does not contain certificates.
+  In d65e6cc4f (vtls: prepare the SSL backends for encapsulated private
+  data, 2017-06-21), this developer prepared for a separation of the
+  private data of the SSL backends from the general connection data.
   
-  - Improve help messages for both.
+  This conversion was partially automated (search-and-replace) and
+  partially manual (e.g. proxy_ssl's backend data).
   
-  Example configure output:
+  Sadly, there was a crucial error in the manual part, where the wrong
+  handle was used: rather than connecting ssl[sockindex]' BIO to the
+  proxy_ssl[sockindex]', we reconnected proxy_ssl[sockindex]. The reason
+  was an incorrect location to paste "BACKEND->"... d'oh.
   
-    ca cert bundle:   /some/file   (warning: certs not found)
-    ca cert path:     /some/dir   (warning: certs not found)
+  Reported by Jay Satiro in https://github.com/curl/curl/issues/1855.
   
-  Bug: https://github.com/curl/curl/issues/404
-  Reported-by: Jeffrey Walton
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Jay Satiro brought this change]
 
-Daniel Stenberg (24 Feb 2016)
-- Curl_read: check for activated HTTP/1 pipelining, not only requested
+  vtls: fix memory corruption
   
-  ... 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.
+  Ever since 70f1db321 (vtls: encapsulate SSL backend-specific data,
+  2017-07-28), the code handling HTTPS proxies was broken because the
+  pointer to the SSL backend data was not swapped between
+  conn->ssl[sockindex] and conn->proxy_ssl[sockindex] as intended, but
+  instead set to NULL (causing segmentation faults).
   
-  Reported-by: Anders Bakken
-
-Patrick Monnerat (24 Feb 2016)
-- os400: Fix ILE/RPG definition of CURLOPT_TFTP_NO_OPTIONS
+  [jes: provided the commit message, tested and verified the patch]
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
 
-Jay Satiro (23 Feb 2016)
-- getinfo: CURLINFO_TLS_SSL_PTR supersedes CURLINFO_TLS_SESSION
+- vtls: switch to CURL_SHA256_DIGEST_LENGTH define
   
-  The two options are almost the same, except in the case of OpenSSL:
+  ... instead of the prefix-less version since WolfSSL 3.12 now uses an
+  enum with that name that causes build failures for us.
   
-  CURLINFO_TLS_SESSION OpenSSL session internals is SSL_CTX *.
+  Fixes #1865
+  Closes #1867
+  Reported-by: Gisle Vanem
+
+- travis: add c-ares enabled builds linux + osx
+  
+  Closes #1868
+
+- HISTORY: added some recent items
+
+Jay Satiro (6 Sep 2017)
+- SSL: fix unused parameter warnings
+
+Patrick Monnerat (6 Sep 2017)
+- mime: drop internal FILE * support.
   
-  CURLINFO_TLS_SSL_PTR OpenSSL session internals is SSL *.
+  - The part kind MIMEKIND_FILE and associated code are suppressed.
+  - Seek data origin offset not used anymore: suppressed.
+  - MIMEKIND_NAMEDFILE renamed MIMEKIND_FILE; associated fields/functions
+    renamed accordingly.
+  - Curl_getformdata() processes stdin via a callback.
+
+Daniel Stenberg (6 Sep 2017)
+- configure: remove --enable-soname-bump and SONAME_BUMP
   
-  For backwards compatibility we couldn't modify CURLINFO_TLS_SESSION to
-  return an SSL pointer for OpenSSL.
+  Back in 2008, (and commit 3f3d6ebe665f3) we changed the logic in how we
+  determine the native type for `curl_off_t`. To really make sure we
+  didn't break ABI without bumping SONAME, we introduced logic that
+  attempted to detect that it would use a different size and thus not be
+  compatible. We also provided a manual switch that allowed users to tell
+  configure to bump SONAME by force.
   
-  Also, add support for the 'internals' member to point to SSL object for
-  the other backends axTLS, PolarSSL, Secure Channel, Secure Transport and
-  wolfSSL.
+  Today, we know of no one who ever got a SONAME bump auto-detected and we
+  don't know of anyone who's using the manual bump feature. The auto-
+  detection is also no longer working since we introduced defining
+  curl_off_t in system.h (7.55.0).
   
-  Bug: https://github.com/curl/curl/issues/234
-  Reported-by: dkjjr89@users.noreply.github.com
+  Finally, this bumping logic is not present in the cmake build.
   
-  Bug: https://curl.haxx.se/mail/lib-2015-09/0127.html
-  Reported-by: Michael König
+  Closes #1861
+
+Jay Satiro (6 Sep 2017)
+- [Gisle Vanem brought this change]
 
-Daniel Stenberg (23 Feb 2016)
-- multi_remove_handle: keep the timeout list until after disconnect
+  vtls: select ssl backend case-insensitive (follow-up)
   
-  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.
+  - Do a case-insensitive comparison of CURL_SSL_BACKEND env as well.
   
-  Reported-by: 蔡文凱
-  Bug: https://curl.haxx.se/mail/lib-2016-02/0097.html
-
-Kamil Dudka (23 Feb 2016)
-- tests/sshserver.pl: use RSA instead of DSA for host auth
+  - Change Curl_strcasecompare calls to strcasecompare
+    (maps to the former but shorter).
   
-  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.
+  Follow-up to c290b8f.
   
-  Reported-by: Karlson2k
+  Bug: https://github.com/curl/curl/commit/c290b8f#commitcomment-24094313
   
-  Closes #676
+  Co-authored-by: Jay Satiro
 
-Jay Satiro (23 Feb 2016)
-- TFTP: add option to suppress TFTP option requests (Part 2)
+- openssl: Integrate Peter Wu's SSLKEYLOGFILE implementation
   
-  - Add tests.
+  This is an adaptation of 2 of Peter Wu's SSLKEYLOGFILE implementations.
   
-  - Add an example to CURLOPT_TFTP_NO_OPTIONS.3.
+  The first one, written for old OpenSSL versions:
+  https://git.lekensteyn.nl/peter/wireshark-notes/tree/src/sslkeylog.c
   
-  - Add --tftp-no-options to expose CURLOPT_TFTP_NO_OPTIONS.
+  The second one, written for BoringSSL and new OpenSSL versions:
+  https://github.com/curl/curl/pull/1346
   
-  Bug: https://github.com/curl/curl/issues/481
-
-- [Michael Koenig brought this change]
-
-  TFTP: add option to suppress TFTP option requests (Part 1)
+  Note the first one is GPL licensed but the author gave permission to
+  waive that license for libcurl.
   
-  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.
+  As of right now this feature is disabled by default, and does not have
+  a configure option to enable it. To enable this feature define
+  ENABLE_SSLKEYLOGFILE when building libcurl and set environment
+  variable SSLKEYLOGFILE to a pathname that will receive the keys.
   
-  Bug: https://github.com/curl/curl/issues/481
-
-Daniel Stenberg (22 Feb 2016)
-- [Karlson2k brought this change]
-
-  runtests: Fixed usage of %PWD on MinGW64
+  And in Wireshark change your preferences to point to that key file:
+  Edit > Preferences > Protocols > SSL > Master-Secret
   
-  Closes #672
-
-Jay Satiro (20 Feb 2016)
-- CURLOPT_DEBUGFUNCTION.3: Fix example
-
-- [Viktor Szakats brought this change]
-
-  src/Makefile.m32: add CURL_{LD,C}FLAGS_EXTRAS support
+  Co-authored-by: Peter Wu
   
-  Sync with lib/Makefile.m32 which already uses those variables.
+  Ref: https://github.com/curl/curl/pull/1030
+  Ref: https://github.com/curl/curl/pull/1346
   
-  Bug: https://github.com/curl/curl/pull/670
+  Closes https://github.com/curl/curl/pull/1866
 
-Dan Fandrich (20 Feb 2016)
-- Enabled test 1437 after the bug fix in commit 3fa220a6
+Patrick Monnerat (5 Sep 2017)
+- mime: fix a trivial warning.
 
-Jay Satiro (19 Feb 2016)
-- [Emil Lerner brought this change]
-
-  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.
+- mime: replace 'struct Curl_mimepart' by 'curl_mimepart' in encoder code.
   
-  Bug: https://github.com/curl/curl/pull/667
+  mime_state is now a typedef.
 
-Dan Fandrich (19 Feb 2016)
-- Added test 1437 to verify a memory leak
+- mime: implement encoders.
   
-  Reported-by: neex@users.noreply.github.com
+  curl_mime_encoder() is operational and documented.
+  curl tool -F option is extended with ";encoder=".
+  curl tool --libcurl option generates calls to curl_mime_encoder().
+  New encoder tests 648 & 649.
+  Test 1404 extended with an encoder specification.
 
-Jay Satiro (18 Feb 2016)
-- 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
+- runtests.pl: support attribute "nonewline" in part verify/upload.
 
-- 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
+- [Daniel Stenberg brought this change]
 
-Daniel Stenberg (18 Feb 2016)
-- curl.1: add a missing dash
+  fixup data/test1135
 
-- CONTRIBUTING.md: fix links
+- [Daniel Stenberg brought this change]
 
-- ISSUE_TEMPLATE: github issue template
+  mime: unified to use the typedef'd mime structs everywhere
   
-  First version, try this out!
+  ... and slightly edited to follow our code style better.
 
-- CONTRIBUTING.md: move into .github
-  
-  To hide github specific files somewhat from the rest.
+- [Daniel Stenberg brought this change]
 
-- opts: add references
+  curl.h: use lower case curl_mime* as for all public symbols
 
-- examples/make: add 'checksrc' target
+- [Daniel Stenberg brought this change]
 
-- 10-at-a-time: typecast the argument passed to sleep()
+  docs/curl_mime_*.3: use correct variable types in examples
 
-- externalsocket.c: fix compiler warning for fwrite return type
+Kamil Dudka (5 Sep 2017)
+- openssl: use OpenSSL's default ciphers by default
+  
+  Up2date versions of OpenSSL maintain the default reasonably secure
+  without breaking compatibility, so it is better not to override the
+  default by curl.  Suggested at https://bugzilla.redhat.com/1483972
+  
+  Closes #1846
 
-- anyauthput.c: fix compiler warnings
+Viktor Szakats (5 Sep 2017)
+- examples/mime: minor example code fixes
 
-- simplessl.c: warning: while with space
+Daniel Stenberg (5 Sep 2017)
+- docs/curl_mime_*.3: added examples
 
-- curlx.c: i2s_ASN1_IA5STRING() clashes with an openssl function
+- configure: add MultiSSL to FEATURES when enabled
   
-  Reported-By: Gisle Vanem
+  ...for curl-config and its corresponding test 1014
 
-- http2: don't decompress gzip decoding automatically
+- http-proxy: treat all 2xx as CONNECT success
   
-  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.
+  Added test 1904 to verify.
   
-  Reported-by: Kazuho Oku
-  
-  Closes #661
+  Reported-by: Lawrence Wagerfield
+  Fixes #1859
+  Closes #1860
 
-Jay Satiro (16 Feb 2016)
-- [Tatsuhiro Tsujikawa brought this change]
+- MAIL-ETIQUETTE: added "1.9 Your emails are public"
 
-  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.
+- curl.h: fix "unused checksrc ignore", remove dangling reference
   
-  Bug: https://github.com/curl/curl/issues/659
-  Reported-by: Kazuho Oku
+  ... to a README file that doesn't exist anymore
 
-Daniel Stenberg (16 Feb 2016)
-- [Viktor Szakats brought this change]
-
-  openssl: use macro to guard the opaque EVP_PKEY branch
+Viktor Szakats (4 Sep 2017)
+- docs: Update to secure URL versions
 
-- [Viktor Szakats brought this change]
+- mime: use CURL_ZERO_TERMINATED in examples
+  
+  and some minor whitespace fixes
 
-  openssl: avoid direct PKEY access with OpenSSL 1.1.0
+Daniel Stenberg (4 Sep 2017)
+- schannel: return CURLE_SSL_CACERT on failed verification
   
-  by using API instead of accessing an internal structure.
-  This is required starting OpenSSL 1.1.0-pre3.
+  ... not *CACERT_BADFILE as it isn't really because of a bad file.
   
-  Closes #650
+  Bug: https://curl.haxx.se/mail/lib-2017-09/0002.html
+  Closes #1858
 
-- RELEASE-NOTES: synced with ede0bfc079da
+- test1135: fixed after bd8070085f9
 
-- [Clint Clayton brought this change]
-
-  CURLOPT_CONNECTTIMEOUT_MS.3: Fix example to use milliseconds option
+- examples/post-callback: stop returning one byte at a time
   
-  Change the example in the docs for CURLOPT_CONNECTTIMEOUT_MS to use
-  CURLOPT_CONNECTTIMEOUT_MS instead of CURLOPT_CONNECTTIMEOUT.
+  ... since people copy and paste code from this example and thus they get
+  an inefficient POST operation without a good reason and sometimes
+  without understanding why.
   
-  Closes #653
-
-- opt-docs: add more references
+  Instead this now returns as much data as possible.
 
-- [David Byron brought this change]
+- RELEASE-NOTES: fixed the function counter script
 
-  SCP: use libssh2_scp_recv2 to support > 2GB files on windows
+- curl.h: make the curl_strequal() protos use the same style
   
-  libssh2_scp_recv2 is introduced in libssh2 1.7.0 - to be released "any
-  day now.
-  
-  Closes #451
+  ... as the other functions. Makes it easier to machine-parse!
 
-Jay Satiro (13 Feb 2016)
-- [Shine Fan brought this change]
+- docs: curl_mime_*.3 man page formatting edits
 
-  gtls: fix for builds lacking encrypted key file support
-  
-  Bug: https://github.com/curl/curl/pull/651
+- RELEASE-NOTES: synced with 1ab9e9b50
 
-Dan Fandrich (13 Feb 2016)
-- test1604: Add to Makefile.inc so it gets run
+Patrick Monnerat (4 Sep 2017)
+- lib: bump version info (soname). Adapt and reenable test 1135.
 
-Jay Satiro (12 Feb 2016)
-- generate.bat: Fix comment bug by removing old comments
+Daniel Stenberg (3 Sep 2017)
+- headers: move the global_sslset() proto from multi.h to curl.h
   
-  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.
+  As it was added to multi.h simply to not break test 1135, which now has
+  been disabled due to the mime API addition anyway and su we can now move
+  the sslset stuff to where the other curl_global_* prototypes are.
+
+Patrick Monnerat (3 Sep 2017)
+- mime: fix signed/unsigned conversions.
   
-  Closes https://github.com/curl/curl/issues/649
+  Use and generate CURL_ZERO_TERMINATED in curl tool and tests.
+
+Jay Satiro (3 Sep 2017)
+- tool_formparse: fix some trivial warnings
 
-Kamil Dudka (12 Feb 2016)
-- curl.1: --disable-{eprt,epsv} are ignored for IPv6 hosts
+Patrick Monnerat (3 Sep 2017)
+- mime: use size_t instead of ssize_t in public API interface.
   
-  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.
+  To support telling a string is nul-terminated, symbol CURL_ZERO_TERMINATED
+  has been introduced.
   
-  Bug: https://bugzilla.redhat.com/1305970
-
-Daniel Stenberg (12 Feb 2016)
-- dist: ship buildconf.bat too
+  Documentation updated accordingly.
   
-  As the winbuild/* stuff uses it!
+  symbols in versions updated. Added form API symbols deprecation info.
 
-- curlx_tvdiff: handle 32bit time_t overflows
+- mime: remove support "-" stdin pseudo-file name in curl_mime_filedata().
+  
+  This feature is badly supported in Windows: as a replacement, a caller has
+  to use curl_mime_data_cb() with fread, fseek and possibly fclose
+  callbacks to process opened files.
   
-  On 32bit systems, make sure we don't overflow and return funky values
-  for very large time differences.
+  The cli tool and documentation are updated accordingly.
   
-  Reported-by: Anders Bakken
+  The feature is however kept internally for form API compatibility, with
+  the known caveats it always had.
   
-  Closes #646
+  As a side effect, stdin size is not determined by the cli tool even if
+  possible and this results in a chunked transfer encoding. Test 173 is
+  updated accordingly.
 
-- examples: fix some compiler warnings
+- mime: fix some implicit curl_off_t --> size_t conversion warnings.
 
-- simplessl.c: fix my breakage
+- mime: tests and examples.
+  
+  Additional mime-specific tests.
+  Existing tests updated to reflect small differences (Expect: 100-continue,
+  data size change due to empty lines, etc).
+  Option -F headers= keyword added to tests.
+  test1135 disabled until the entry point order change is resolved.
+  New example smtp-mime.
+  Examples postit2 and multi-post converted from form API to mime API.
 
-- examples: adhere to curl code style
+- mime: use in curl cli tool instead of form API.
   
-  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.
+  Extended -F option syntax to support multipart mail messages.
+  -F keyword headers= added to include custom headers in parts.
+  Documentation upgraded.
+
+- mime: new MIME API.
   
-  573 checksrc warnings were addressed.
+  Available in HTTP, SMTP and IMAP.
+  Deprecates the FORM API.
+  See CURLOPT_MIMEPOST.
+  Lib code and associated documentation.
 
-- examples/cookie_interface.c: add cleanup call
+- test564: Add a warning comment about shell profile output.
   
-  cleaning up handles is a good idea as we leak memory otherwise
+  Shell profile output makes the SSH server failing and this problem reason
+  is not easy to find when no hint is given.
+
+- checksrc: disable SPACEBEFOREPAREN for case statement.
   
-  Also, line wrapped before 80 columns.
+  The case keyword may be followed by a constant expression and thus should
+  allow it to start with an open parenthesis.
 
-Kamil Dudka (10 Feb 2016)
-- nss: search slash in forward direction in dup_nickname()
+- runtests.pl: allow <file[1-4]> tags in client section.
   
-  It is wasteful to search it backwards if we look for _any_ slash.
+  This enables tests to create more than one file on the client side.
 
-- nss: do not count enabled cipher-suites
+- runtests.pl: Apply strippart to upload too.
   
-  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.
+  This will allow substitution of boundaries in mail messages.
 
-Daniel Stenberg (10 Feb 2016)
-- contributors.sh: make 79 the max column width (from 80)
+- Curl_base64_encode: always call with a real data handle.
+  
+  Some calls in different modules were setting the data handle to NULL, causing
+  segmentation faults when using builds that enable character code conversions.
 
-- RELEASE-NOTES: synced with c276aefee3995
+- non-ascii: allow conversion functions to be called with a NULL data handle.
 
-- mbedtls.c: re-indent to better match curl standards
+- http: fix a memory leakage in checkrtspprefix().
 
-- [Rafael Antonio brought this change]
+Daniel Stenberg (2 Sep 2017)
+- [Max Dymond brought this change]
 
-  mbedtls: fix memory leak when destroying SSL connection data
+  ossfuzz: Move to C++ for curl_fuzzer.
   
-  Closes #626
+  Automake gets confused if you want to use C++ static libraries with C
+  code - basically we need to involve the clang++ linker. The easiest way
+  of achieving this is to rename the C code as C++ code. This gets us a
+  bit further along the path and ought to be compatible with Google's
+  version of clang.
 
-- mbedtls: fix ALPN usage segfault
+- curl_global_sslset: select backend by name case insensitively
   
-  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
+  Closes #1849
 
-Jay Satiro (9 Feb 2016)
-- [Timotej Lazar brought this change]
+- [Max Dymond brought this change]
 
-  opts: update references to renamed options
+  ossfuzz: additional seed corpora
+  
+  Create simple seed corpora for:
+  - FTP
+  - telnet
+  - dict
+  - tftp
+  - imap
+  - pop3
+  
+  based off the tests of the same number.
+  
+  Closes #1842
 
-- KNOWN_BUGS: Update #92 - Windows device prefix
+- [Max Dymond brought this change]
 
-- tool_doswin: Support for literal path prefix \\?\
+  ossfuzz: moving towards the ideal integration
   
-  For example something like --output \\?\C:\foo
+  - Start with the basic code from the ossfuzz project.
+  - Rewrite fuzz corpora to be binary files full of Type-Length-Value
+    data, and write a glue layer in the fuzzing function to convert
+    corpora into CURL options.
+  - Have supporting functions to generate corpora from existing tests
+  - Integrate with Makefile.am
 
-Daniel Stenberg (9 Feb 2016)
-- configure: state "BoringSSL" in summary when that was detected
+- strcase: corrected comment header for Curl_strcasecompare()
 
-- [David Benjamin brought this change]
+- unit1301: fix error message on first test
+
+- curl_global_sslset.3: show the struct and enum too
+  
+  ... so that users can actually write code based on the man page alone,
+  not having to read the header file.
 
-  openssl: remove most BoringSSL #ifdefs.
+Jay Satiro (31 Aug 2017)
+- darwinssl: handle long strings in TLS certs (follow-up)
+  
+  - Fix handling certificate subjects that are already UTF-8 encoded.
   
-  As of https://boringssl-review.googlesource.com/#/c/6980/, almost all of
-  BoringSSL #ifdefs in cURL should be unnecessary:
+  Follow-up to b3b75d1 from two days ago. Since then a copy would be
+  skipped if the subject was already UTF-8, possibly resulting in a NULL
+  deref later on.
   
-  - BoringSSL provides no-op stubs for compatibility which replaces most
-    #ifdefs.
+  Ref: https://github.com/curl/curl/issues/1823
+  Ref: https://github.com/curl/curl/pull/1831
   
-  - DES_set_odd_parity has been in BoringSSL for nearly a year now. Remove
-    the compatibility codepath.
+  Closes https://github.com/curl/curl/pull/1836
+
+Daniel Stenberg (31 Aug 2017)
+- cyassl: call it the "WolfSSL" backend
+  
+  ... instead of cyassl, as this is the current name for it.
   
-  - With a small tweak to an extend_key_56_to_64 call, the NTLM code
-    builds fine.
+  Closes #1844
+
+- polarssl: fix multissl breakage
   
-  - Switch OCSP-related #ifdefs to the more generally useful
-    OPENSSL_NO_OCSP.
+  Reported-by: Dan Fandrich
+  Bug: https://curl.haxx.se/mail/lib-2017-08/0121.html
+  Closes #1843
+
+- configure: remove the leading comma from the backends list
   
-  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.)
+  ... when darwinssl is used.
   
-  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!)
+  Reported-by: Viktor Szakats
+  Bug: https://github.com/curl/curl/commit/b0989cd3abaff4f9a0717b4875022fa79e33b481#commitcomment-23943493
   
-  Closes #640
+  Closes #1845
 
-Jay Satiro (8 Feb 2016)
-- KNOWN_BUGS: Windows device prefix is required for devices
+Kamil Dudka (30 Aug 2017)
+- examples/sslbackend.c: fix failure of 'make checksrc'
+  
+  ./sslbackend.c:58:3: warning: else after closing brace on same line (BRACEELSE)
+     } else if(isdigit(*name)) {
+     ^
+  ./sslbackend.c:62:3: warning: else after closing brace on same line (BRACEELSE)
+     } else
+     ^
 
-- tool_urlglob: Allow reserved dos device names (Windows)
+Viktor Szakats (30 Aug 2017)
+- makefile.m32: add multissl support
   
-  Allow --output to reserved dos device names without the device prefix
-  for backwards compatibility.
+  Closes https://github.com/curl/curl/pull/1840
+
+Daniel Stenberg (30 Aug 2017)
+- curl.h: CURLSSLBACKEND_WOLFSSL used wrong value
   
-  Example: --output NUL can be used instead of --output \\.\NUL
+  The CURLSSLBACKEND_WOLFSSL is supposed to be an alias for
+  CURLSSLBACKEND_CYASSL, but used an erronous value. To reduce the risk
+  for a similar mistake, define the backend aliases to use the enum values
+  instead.
   
-  Bug: https://github.com/curl/curl/commit/4520534#commitcomment-15954863
   Reported-by: Gisle Vanem
+  Bug: https://curl.haxx.se/mail/lib-2017-08/0120.html
 
-Daniel Stenberg (8 Feb 2016)
-- cookies: allow spaces in cookie names, cut of trailing spaces
+- curl_global_sslset.3: clarify
   
-  It turns out Firefox and Chrome both allow spaces in cookie names and
-  there are sites out there using that.
+  it is a one time *set*, not necessarily a one time use... it can be
+  called again if the first call failed or just listed the alternatives.
   
-  Turned out the code meant to strip off trailing space from cookie names
-  didn't work. Fixed now.
+  clarify that the available backends are the ones this build supports
   
-  Test case 8 modified to verify both these changes.
+  plus add some formatting
   
-  Closes #639
-
-Patrick Monnerat (8 Feb 2016)
-- Merge branch 'master' of github.com:curl/curl
+  Reported-by: Rich Gray
+  Bug: https://curl.haxx.se/mail/lib-2017-08/0119.html
 
-- os400: sync ILE/RPG definitions with latest public header files.
-
-Daniel Stenberg (8 Feb 2016)
-- [Ludwig Nussel brought this change]
+- curl/multi.h: remove duplicated closing c++ brace
+  
+  Regression since 1328f69d53f2f2e93
+  
+  Fixes #1841
+  Reported-by: Andrei Karas
 
-  SSLCERTS: update wrt SSL CA certificate store
+- RELEASE-NOTES: synced with 8c33c963a
 
-- [Ludwig Nussel brought this change]
+- HELP-US.md: spelling
 
-  configure: --with-ca-fallback: use built-in TLS CA fallback
-  
-  When trying to verify a peer without having any root CA certificates
-  set, this makes libcurl use the TLS library's built in default as
-  fallback.
+- HELP-US.md: "How to get started helping out in the curl project"
   
-  Closes #569
+  Closes #1837
 
-- Proxy-Connection: stop sending this header by default
+Dan Fandrich (29 Aug 2017)
+- asyn-thread: Fixed cleanup after OOM
   
-  RFC 7230 says we should stop. Firefox already stopped.
-  
-  Bug: https://github.com/curl/curl/issues/633
-  Reported-By: Brad Fitzpatrick
-  
-  Closes #633
+  destroy_async_data() assumes that if the flag "done" is not set yet, the
+  thread itself will clean up once the request is complete.  But if an
+  error (generally OOM) occurs before the thread even has a chance to
+  start, it will never get a chance to clean up and memory will be leaked.
+  By clearing "done" only just before starting the thread, the correct
+  cleanup sequence will happen in all cases.
 
-- bump: work toward the next release
+Daniel Stenberg (28 Aug 2017)
+- curl_global_init.3: mention curl_global_sslset(3)
 
-- THANKS: 2 contributors from the 7.47.1 release
+Dan Fandrich (28 Aug 2017)
+- unit1606: Fixed shadowed variable warning
 
-- RELEASE-PROCEDURE: remove the github upload part
-  
-  ... as we're HTTPS on the main site now, there's no point in that
-  extra step
+- asyn-thread: Improved cleanup after OOM situations
 
-Version 7.47.1 (8 Feb 2016)
+- asyn-thread: Set errno to the proper value ENOMEM in OOM situation
+  
+  This used to be set in some configurations to EAI_MEMORY which is not a
+  valid value for errno and caused Curl_strerror to fail an assertion.
 
-Daniel Stenberg (8 Feb 2016)
-- RELEASE-NOTES: curl 7.47.1 time!
+Daniel Stenberg (28 Aug 2017)
+- [Johannes Schindelin brought this change]
 
-Jay Satiro (8 Feb 2016)
-- tool_operhlp: Check for backslashes in get_url_file_name
+  configure: Handle "MultiSSL" specially When versioning symbols
   
-  Extract the filename from the last slash or backslash. Prior to this
-  change backslashes could be part of the filename.
+  There is a mode in which libcurl is compiled with versioned symbols,
+  depending on the active SSL backend.
   
-  This change needed for the curl tool built for Cygwin. Refer to the
-  CYGWIN addendum in advisory 20160127B.
+  When multiple SSL backends are active, it does not make sense to favor
+  one over the others, so let's not: introduce a new prefix for the case
+  where multiple SSL backends are compiled into cURL.
   
-  Bug: https://curl.haxx.se/docs/adv_20160127B.html
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
 
-Daniel Stenberg (7 Feb 2016)
-- RELEASE-NOTES: synced with d6a8869ea34
+- [Johannes Schindelin brought this change]
 
-Jay Satiro (6 Feb 2016)
-- openssl: Fix signed/unsigned mismatch warning in X509V3_ext
+  configure: allow setting the default SSL backend
   
-  sk_X509_EXTENSION_num may return an unsigned integer, however the value
-  will fit in an int.
+  Previously, we used as default SSL backend whatever was first in the
+  `available_backends` array.
   
-  Bug: https://github.com/curl/curl/commit/dd1b44c#commitcomment-15913896
-  Reported-by: Gisle Vanem
+  However, some users may want to override that default without patching
+  the source code.
+  
+  Now they can: with the --with-default-ssl-backend=<backend> option of
+  the ./configure script.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
 
-Daniel Stenberg (7 Feb 2016)
-- TODO: 17.11 -w output to stderr
+  vtls: use Curl_ssl_multi pseudo backend only when needed
+  
+  When only one SSL backend is configured, it is totally unnecessary to
+  let multissl_init() configure the backend at runtime, we can select the
+  correct backend at build time already.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
 
-Jay Satiro (6 Feb 2016)
-- [Michael Kaufmann brought this change]
+- [Johannes Schindelin brought this change]
 
-  idn_win32: Better error checking
+  version: if built with more than one SSL backend, report all of them
   
-  .. also fix a conversion bug in the unused function
-  curl_win32_ascii_to_idn().
+  To discern the active one from the inactive ones, put the latter into
+  parentheses.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  version: add the CURL_VERSION_MULTI_SSL feature flag
   
-  And remove wprintfs on error (Jay).
+  This new feature flag reports When cURL was built with multiple SSL
+  backends.
   
-  Bug: https://github.com/curl/curl/pull/637
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
 
-- [Gisle Vanem brought this change]
+- [Johannes Schindelin brought this change]
 
-  examples/asiohiper: Avoid function name collision on Windows
+  metalink: allow compiling with multiple SSL backends
   
-  closesocket => close_socket
-  Winsock already has the former.
+  Previously, the code assumed that at most one of the SSL backends would
+  be compiled in, emulating OpenSSL's functions if the configured backend
+  was not OpenSSL itself.
   
-  Bug: https://curl.haxx.se/mail/lib-2016-02/0016.html
+  However, now we allow building with multiple SSL backends and choosing
+  one at runtime. Therefore, metalink needs to be adjusted to handle this
+  scenario, too.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
 
-- [Gisle Vanem brought this change]
+- [Johannes Schindelin brought this change]
 
-  examples/htmltitle: Use _stricmp on Windows
+  docs/examples: demonstrate how to select SSL backends
   
-  Bug: https://curl.haxx.se/mail/lib-2016-02/0017.html
+  The newly-introduced curl_global_sslset() function deserves to be
+  show-cased.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
 
-Daniel Stenberg (6 Feb 2016)
-- COPYING: clarify that Daniel is not the sole author
+- [Johannes Schindelin brought this change]
+
+  Add a man page for curl_global_sslset()
   
-  ... done on request and as it is a fair point.
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
 
-Jay Satiro (5 Feb 2016)
-- unit1604: Fix unit setup return code
+- [Johannes Schindelin brought this change]
 
-- tool_doswin: Use type SANITIZEcode in sanitize_file_name
+  vtls: introduce curl_global_sslset()
+  
+  Let's add a compile time safe API to select an SSL backend. This
+  function needs to be called *before* curl_global_init(), and can be
+  called only once.
+  
+  Side note: we do not explicitly test that it is called before
+  curl_global_init(), but we do verify that it is not called multiple times
+  (even implicitly).
+  
+  If SSL is used before the function was called, it will use whatever the
+  CURL_SSL_BACKEND environment variable says (or default to the first
+  available SSL backend), and if a subsequent call to
+  curl_global_sslset() disagrees with the previous choice, it will fail
+  with CURLSSLSET_TOO_LATE.
+  
+  The function also accepts an "avail" parameter to point to a (read-only)
+  NULL-terminated list of available backends. This comes in real handy if
+  an application wants to let the user choose between whatever SSL backends
+  the currently available libcurl has to offer: simply call
+  
+          curl_global_sslset(-1, NULL, &avail);
+  
+  which will return CURLSSLSET_UNKNOWN_BACKEND and populate the avail
+  variable to point to the relevant information to present to the user.
+  
+  Just like with the HTTP/2 push functions, we have to add the function
+  declaration of curl_global_sslset() function to the header file
+  *multi.h* because VMS and OS/400 require a stable order of functions
+  declared in include/curl/*.h (where the header files are sorted
+  alphabetically). This looks a bit funny, but it cannot be helped.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  vtls: refactor out essential information about the SSL backends
+  
+  There is information about the compiled-in SSL backends that is really
+  no concern of any code other than the SSL backend itself, such as which
+  function (if any) implements SHA-256 summing.
+  
+  And there is information that is really interesting to the user, such as
+  the name, or the curl_sslbackend value.
+  
+  Let's factor out the latter into a publicly visible struct. This
+  information will be used in the upcoming API to set the SSL backend
+  globally.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  vtls: allow selecting which SSL backend to use at runtime
+  
+  When building software for the masses, it is sometimes not possible to
+  decide for all users which SSL backend is appropriate.
+  
+  Git for Windows, for example,  uses cURL to perform clones, fetches and
+  pushes via HTTPS, and some users strongly prefer OpenSSL, while other
+  users really need to use Secure Channel because it offers
+  enterprise-ready tools to manage credentials via Windows' Credential
+  Store.
+  
+  The current Git for Windows versions use the ugly work-around of
+  building libcurl once with OpenSSL support and once with Secure Channel
+  support, and switching out the binaries in the installer depending on
+  the user's choice.
+  
+  Needless to say, this is a super ugly workaround that actually only
+  works in some cases: Git for Windows also comes in a portable form, and
+  in a form intended for third-party applications requiring Git
+  functionality, in which cases this "swap out libcurl-4.dll" simply is
+  not an option.
+  
+  Therefore, the Git for Windows project has a vested interest in teaching
+  cURL to make the SSL backend a *runtime* option.
+  
+  This patch makes that possible.
+  
+  By running ./configure with multiple --with-<backend> options, cURL will
+  be built with multiple backends.
+  
+  For the moment, the backend can be configured using the environment
+  variable CURL_SSL_BACKEND (valid values are e.g. "openssl" and
+  "schannel").
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  vtls: fold the backend ID into the Curl_ssl structure
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  curl_ntlm_core: don't complain but #include OpenSSL header if needed
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  vtls: encapsulate SSL backend-specific data
+  
+  So far, all of the SSL backends' private data has been declared as
+  part of the ssl_connect_data struct, in one big #if .. #elif .. #endif
+  block.
+  
+  This can only work as long as the SSL backend is a compile-time option,
+  something we want to change in the next commits.
+  
+  Therefore, let's encapsulate the exact data needed by each SSL backend
+  into a private struct, and let's avoid bleeding any SSL backend-specific
+  information into urldata.h. This is also necessary to allow multiple SSL
+  backends to be compiled in at the same time, as e.g. OpenSSL's and
+  CyaSSL's headers cannot be included in the same .c file.
+  
+  To avoid too many malloc() calls, we simply append the private structs
+  to the connectdata struct in allocate_conn().
+  
+  This requires us to take extra care of alignment issues: struct fields
+  often need to be aligned on certain boundaries e.g. 32-bit values need to
+  be stored at addresses that divide evenly by 4 (= 32 bit / 8
+  bit-per-byte).
+  
+  We do that by assuming that no SSL backend's private data contains any
+  fields that need to be aligned on boundaries larger than `long long`
+  (typically 64-bit) would need. Under this assumption, we simply add a
+  dummy field of type `long long` to the `struct connectdata` struct. This
+  field will never be accessed but acts as a placeholder for the four
+  instances of ssl_backend_data instead. the size of each ssl_backend_data
+  struct is stored in the SSL backend-specific metadata, to allow
+  allocate_conn() to know how much extra space to allocate, and how to
+  initialize the ssl[sockindex]->backend and proxy_ssl[sockindex]->backend
+  pointers.
+  
+  This would appear to be a little complicated at first, but is really
+  necessary to encapsulate the private data of each SSL backend correctly.
+  And we need to encapsulate thusly if we ever want to allow selecting
+  CyaSSL and OpenSSL at runtime, as their headers cannot be included within
+  the same .c file (there are just too many conflicting definitions and
+  declarations for that).
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  vtls: prepare the SSL backends for encapsulated private data
+  
+  At the moment, cURL's SSL backend needs to be configured at build time.
+  As such, it is totally okay for them to hard-code their backend-specific
+  data in the ssl_connect_data struct.
+  
+  In preparation for making the SSL backend a runtime option, let's make
+  the access of said private data a bit more abstract so that it can be
+  adjusted later in an easy manner.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  urldata.h: move SSPI-specific #include to correct location
+  
+  In 86b889485 (sasl_gssapi: Added GSS-API based Kerberos V5 variables,
+  2014-12-03), an SSPI-specific field was added to the kerberos5data
+  struct without moving the #include "curl_sspi.h" later in the same file.
+  
+  This broke the build when SSPI was enabled, unless Secure Channel was
+  used as SSL backend, because it just so happens that Secure Channel also
+  requires "curl_sspi.h" to be #included.
+  
+  In f4739f639 (urldata: include curl_sspi.h when Windows SSPI is enabled,
+  2017-02-21), this bug was fixed incorrectly: Instead of moving the
+  appropriate conditional #include, the Secure Channel-conditional part
+  was now also SSPI-conditional.
+  
+  Fix this problem by moving the correct #include instead.
+  
+  This is also required for an upcoming patch that moves all the Secure
+  Channel-specific stuff out of urldata.h and encapsulates it properly in
+  vtls/schannel.c instead.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  urldata.h: remove support for obsolete PolarSSL version
+  
+  Since 5017d5ada (polarssl: now require 1.3.0+, 2014-03-17), we require
+  a newer PolarSSL version. No need to keep code trying to support any
+  older version.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  getinfo: access SSL internals via Curl_ssl
+  
+  In the ongoing endeavor to abstract out all SSL backend-specific
+  functionality, this is the next step: Instead of hard-coding how the
+  different SSL backends access their internal data in getinfo.c, let's
+  implement backend-specific functions to do that task.
+  
+  This will also allow for switching SSL backends as a runtime option.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  vtls: move SSL backends' private constants out of their header files
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  axtls: use Curl_none_* versions of init() and cleanup()
+  
+  There are convenient no-op versions of the init/cleanup functions now,
+  no need to define private ones for axTLS.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  vtls: remove obsolete declarations of SSL backend functionality
+  
+  These functions are all available via the Curl_ssl struct now, no need
+  to declare them separately anymore.
+  
+  As the global declarations are removed, the corresponding function
+  definitions are marked as file-local. The only two exceptions here are
+  Curl_mbedtls_shutdown() and Curl_polarssl_shutdown(): only the
+  declarations were removed, there are no function definitions to mark
+  file-local.
+  
+  Please note that Curl_nss_force_init() is *still* declared globally, as
+  the only SSL backend-specific function, because it was introduced
+  specifically for the use case where cURL was compiled with
+  `--without-ssl --with-nss`. For details, see f3b77e561 (http_ntlm: add
+  support for NSS, 2010-06-27).
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  schannel: reorder functions topologically
+  
+  The _shutdown() function calls the _session_free() function; While this
+  is not a problem now (because schannel.h declares both functions), a
+  patch looming in the immediate future with make all of these functions
+  file-local.
+  
+  So let's just move the _session_free() function's definition before it
+  is called.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  axtls: reorder functions topologically
+  
+  The connect_finish() function (like many other functions after it) calls
+  the Curl_axtls_close() function; While this is not a problem now
+  (because axtls.h declares the latter function), a patch looming in the
+  immediate future with make all of these functions file-local.
+  
+  So let's just move the Curl_axtls_close() function's definition before
+  it is called.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  vtls: move the SUPPORT_HTTPS_PROXY flag into the Curl_ssl struct
+  
+  That will allow us to choose the SSL backend at runtime.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  vtls: convert the have_curlssl_* constants to runtime flags
+  
+  The entire idea of introducing the Curl_ssl struct to describe SSL
+  backends is to prepare for choosing the SSL backend at runtime.
+  
+  To that end, convert all the #ifdef have_curlssl_* style conditionals
+  to use bit flags instead.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  vtls: move sha256sum into the Curl_ssl struct
+  
+  The SHA-256 checksumming is also an SSL backend-specific function.
+  Let's include it in the struct declaring the functionality of SSL
+  backends.
+  
+  In contrast to MD5, there is no fall-back code. To indicate this, the
+  respective entries are NULL for those backends that offer no support for
+  SHA-256 checksumming.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  vtls: move md5sum into the Curl_ssl struct
+  
+  The MD5 summing is also an SSL backend-specific function. So let's
+  include it, offering the previous fall-back code as a separate function
+  now: Curl_none_md5sum(). To allow for that, the signature had to be
+  changed so that an error could be returned from the implementation
+  (Curl_none_md5sum() can run out of memory).
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  vtls: use the Curl_ssl struct to access all SSL backends' functionality
+  
+  This is the first step to unify the SSL backend handling. Now all the
+  SSL backend-specific functionality is accessed via a global instance of
+  the Curl_ssl struct.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  vtls: declare Curl_ssl structs for every SSL backend
+  
+  The idea of introducing the Curl_ssl struct was to unify how the SSL
+  backends are declared and called. To this end, we now provide an
+  instance of the Curl_ssl struct for each and every SSL backend.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  vtls: introduce a new struct for SSL backends
+  
+  This new struct is similar in nature to Curl_handler: it will define the
+  functions and capabilities of all the SSL backends (where Curl_handler
+  defines the functions and capabilities of protocol handlers).
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  vtls: make sure every _sha256sum()'s first arg is const
+  
+  This patch makes the signature of the _sha256sum() functions consistent
+  among the SSL backends, in preparation for unifying the way all SSL
+  backends are accessed.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  vtls: make sure all _data_pending() functions return bool
+  
+  This patch makes the signature of the _data_pending() functions
+  consistent among the SSL backends, in preparation for unifying the way
+  all SSL backends are accessed.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  vtls: make sure all _cleanup() functions return void
+  
+  This patch makes the signature of the _cleanup() functions consistent
+  among the SSL backends, in preparation for unifying the way all SSL
+  backends are accessed.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- [Johannes Schindelin brought this change]
+
+  vtls: use consistent signature for _random() implementations
+  
+  This will make the upcoming multissl backend much easier to implement.
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- strtooff: fix build for systems with long long but no strtoll option
+  
+  Closes #1829
+  
+  Reported-by: Dan Fandrich
+  Bug: https://github.com/curl/curl/pull/1758#issuecomment-324861615
+
+- darwinssl: handle long strings in TLS certs
+  
+  ... as the previous fixed length 128 bytes buffer was sometimes too
+  small.
+  
+  Fixes #1823
+  Closes #1831
+  
+  Reported-by: Benjamin Sergeant
+  Assisted-by: Bill Pyne, Ray Satiro, Nick Zitzmann
+
+- system.h: include sys/poll.h for AIX
+  
+  ... to get the event/revent defines that might be used for the poll
+  struct.
+  
+  Reported-by: Michael Smith
+  Fixes #1828
+  Closes #1833
+
+Dan Fandrich (26 Aug 2017)
+- tests: Make sure libtests & unittests call curl_global_cleanup()
+  
+  These were missed in commit c468c27b.
+
+Jay Satiro (26 Aug 2017)
+- [theantigod brought this change]
+
+  winbuild: fix embedded manifest option
+  
+  Embedded manifest option didn't work due to incorrect path.
+  
+  Fixes https://github.com/curl/curl/issues/1832
+
+Daniel Stenberg (25 Aug 2017)
+- fuzz/Makefile.am: remove curlbuild.h leftovers
+
+- examples/threaded-ssl: mention that this is for openssl before 1.1
+
+- imap: use defined names for response codes
+  
+  When working on this code I found the previous setup a bit weird while
+  using proper defines increases readability.
+  
+  Closes #1824
+
+- CURLOPT_USERPWD.3: see also CURLOPT_PROXYUSERPWD
+
+- imap: support PREAUTH
+  
+  It is a defined possible greeting at server startup that means the
+  connection is already authenticated. See
+  https://tools.ietf.org/html/rfc3501#section-7.1.4
+  
+  Test 846 added to verify.
+  
+  Fixes #1818
+  Closes #1820
+
+Jay Satiro (23 Aug 2017)
+- config-tpf: define SIZEOF_LONG
+  
+  Recent changes that replaced CURL_SIZEOF_LONG in the source with
+  SIZEOF_LONG broke builds that use the premade configuration files and
+  don't have SIZEOF_LONG defined.
+  
+  Bug: https://github.com/curl/curl/issues/1816
+
+Dan Fandrich (23 Aug 2017)
+- test1453: Fixed <features>
+
+Daniel Stenberg (22 Aug 2017)
+- [Gisle Vanem brought this change]
+
+  config-dos: add missing defines, SIZEOF_* and two others
+  
+  Bug: #1816
+
+- curl: shorten and clean up CA cert verification error message
+  
+  The previous message was just too long for ordinary people and it was
+  encouraging users to use `--insecure` a little too easy.
+  
+  Based-on-work-by: Frank Denis
+  
+  Closes #1810
+  Closes #1817
+
+- request-target.d: mention added in 7.55.0
+
+Marcel Raad (22 Aug 2017)
+- tool_main: turn off MinGW CRT's globbing
+  
+  By default, the MinGW CRT globs command-line arguments. This prevents
+  getting a single asterisk into an argument as test 1299 does. Turn off
+  globbing by setting the global variable _CRT_glob to 0 for MinGW.
+  
+  Fixes https://github.com/curl/curl/issues/1751
+  Closes https://github.com/curl/curl/pull/1813
+
+Viktor Szakats (22 Aug 2017)
+- makefile.m32: add support for libidn2
+  
+  libidn was replaced with libidn2 last year in configure.
+  Caveat: libidn2 may depend on a list of further libs.
+  These can be manually specified via CURL_LDFLAG_EXTRAS.
+  
+  Closes https://github.com/curl/curl/pull/1815
+
+Jay Satiro (22 Aug 2017)
+- [Viktor Szakats brought this change]
+
+  config-win32: define SIZEOF_LONG
+  
+  Recent changes that replaced CURL_SIZEOF_LONG in the source with
+  SIZEOF_LONG broke builds that use the premade configuration files and
+  don't have SIZEOF_LONG defined.
+  
+  Closes https://github.com/curl/curl/pull/1814
+
+Daniel Stenberg (20 Aug 2017)
+- cmake: enable picky compiler options with clang and gcc
+  
+  closes #1799
+
+- curl/system.h: fix build for hppa
+  
+  Reported-by: John David Anglin
+  Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872502#10
+
+- [Even Rouault brought this change]
+
+  tftp: fix memory leak on too long filename
+  
+  Fixes
+  
+  $ valgrind --leak-check=full ~/install-curl-git/bin/curl tftp://localhost/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaz
+  
+  ==9752== Memcheck, a memory error detector
+  ==9752== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
+  ==9752== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
+  ==9752== Command: /home/even/install-curl-git/bin/curl tftp://localhost/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaz
+  ==9752==
+  curl: (71) TFTP file name too long
+  
+  ==9752==
+  ==9752== HEAP SUMMARY:
+  ==9752== 505 bytes in 1 blocks are definitely lost in loss record 11 of 11
+  ==9752==    at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
+  ==9752==    by 0x4E61CED: Curl_urldecode (in /home/even/install-curl-git/lib/libcurl.so.4.4.0)
+  ==9752==    by 0x4E75868: tftp_state_machine (in /home/even/install-curl-git/lib/libcurl.so.4.4.0)
+  ==9752==    by 0x4E761B6: tftp_do (in /home/even/install-curl-git/lib/libcurl.so.4.4.0)
+  ==9752==    by 0x4E711B6: multi_runsingle (in /home/even/install-curl-git/lib/libcurl.so.4.4.0)
+  ==9752==    by 0x4E71D00: curl_multi_perform (in /home/even/install-curl-git/lib/libcurl.so.4.4.0)
+  ==9752==    by 0x4E6950D: curl_easy_perform (in /home/even/install-curl-git/lib/libcurl.so.4.4.0)
+  ==9752==    by 0x40E0B7: operate_do (in /home/even/install-curl-git/bin/curl)
+  ==9752==    by 0x40E849: operate (in /home/even/install-curl-git/bin/curl)
+  ==9752==    by 0x402693: main (in /home/even/install-curl-git/bin/curl)
+  
+  Fixes https://oss-fuzz.com/v2/testcase-detail/5232311106797568
+  Credit to OSS Fuzz
+  
+  Closes #1808
+
+Dan Fandrich (19 Aug 2017)
+- runtests: fixed case insensitive matching of keywords
+  
+  Commit 5c2aac71 didn't work in the case of mixed-case keywords given on
+  the command-line.
+
+- tests: Make sure libtests call curl_global_cleanup()
+  
+  This ensures that global data allocations are freed so Valgrind stays
+  happy. This was a problem with at least PolarSSL and mbedTLS.
+
+Daniel Stenberg (18 Aug 2017)
+- RELEASE-NOTES: synced with 8baead425
+
+- scripts/contri*sh: use "git log --use-mailmap"
+
+- mailmap: de-duplify some git authors
+
+- http2_recv: return error better on fatal h2 errors
+  
+  Ref #1012
+  Figured-out-by: Tatsuhiro Tsujikawa
+
+- KNOWN_BUGS: HTTP test server 'connection-monitor' problems
+  
+  Closes #868
+
+- curl/system.h: check for __ppc__ as well
+  
+  ... regression since issue #1774 (commit 10b3df10596a) since obviously
+  some older gcc doesn't know __powerpc__ while some newer doesn't know
+  __ppc__ ...
+  
+  Fixes #1797
+  Closes #1798
+  Reported-by: Ryan Schmidt
+
+- [Jan Alexander Steffens (heftig) brought this change]
+
+  http: Don't wait on CONNECT when there is no proxy
+  
+  Since curl 7.55.0, NetworkManager almost always failed its connectivity
+  check by timeout. I bisected this to 5113ad04 (http-proxy: do the HTTP
+  CONNECT process entirely non-blocking).
+  
+  This patch replaces !Curl_connect_complete with Curl_connect_ongoing,
+  which returns false if the CONNECT state was left uninitialized and lets
+  the connection continue.
+  
+  Closes #1803
+  Fixes #1804
+  
+  Also-fixed-by: Gergely Nagy
+
+- [Johannes Schindelin brought this change]
+
+  metalink: adjust source code style
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
+
+- CURL_SIZEOF_LONG: removed, use only SIZEOF_LONG
+
+- lib557: no longer use CURL_SIZEOF_* defines
+
+- config-win32: define SIZEOF_CURL_OFF_T
+
+- cmake: sizeof curl_off_t, remove unused detections
+
+- system.h: remove all CURL_SIZEOF_* defines
+  
+  ... as they're not used externally and internally we check for the sizes
+  already in configure etc.
+  
+  Closes #1767
+
+- ftp: fix CWD when doing multicwd then nocwd on same connection
+  
+  Fixes #1782
+  Closes #1787
+  Reported-by: Peter Lamare
+
+- CURLOPT_SSH_COMPRESSION.3: enable with 1L
+  
+  (leaves other values reserved for the future)
+
+- compressed-ssh.d: "Added: 7.56.0"
+
+- curl/system.h: checksrc compliance
+
+Jay Satiro (17 Aug 2017)
+- [Viktor Szakats brought this change]
+
+  ssh: add the ability to enable compression (for SCP/SFTP)
+  
+  The required low-level logic was already available as part of
+  `libssh2` (via `LIBSSH2_FLAG_COMPRESS` `libssh2_session_flag()`[1]
+  option.)
+  
+  This patch adds the new `libcurl` option `CURLOPT_SSH_COMPRESSION`
+  (boolean) and the new `curl` command-line option `--compressed-ssh`
+  to request this `libssh2` feature. To have compression enabled, it
+  is required that the SSH server supports a (zlib) compatible
+  compression method and that `libssh2` was built with `zlib` support
+  enabled.
+  
+  [1] https://www.libssh2.org/libssh2_session_flag.html
+  
+  Ref: https://github.com/curl/curl/issues/1732
+  Closes https://github.com/curl/curl/pull/1735
+
+- examples/ftpuploadresume: checksrc compliance
+
+- [Maksim Stsepanenka brought this change]
+
+  http_proxy: fix build error for CURL_DOES_CONVERSIONS
+  
+  Closes https://github.com/curl/curl/pull/1793
+
+GitHub (16 Aug 2017)
+- [Nick Zitzmann brought this change]
+
+  configure: check for __builtin_available() availability (#1788)
+  
+  This change does two things:
+  1. It un-breaks the build in Xcode 9.0. (Xcode 9.0 is currently
+     failing trying to compile connectx() in lib/connect.c.)
+  2. It finally weak-links the connectx() function, and falls back on
+     connect() when run on older operating systems.
+
+Daniel Stenberg (16 Aug 2017)
+- travis: add metalink to some osx builds
+  
+  Closes #1790
+
+- [Max Dymond brought this change]
+
+  coverage: Use two coveralls commands to get lib/vtls results
+  
+  closes #1747
+
+- darwinssi: fix error: variable length array used
+
+- m4/curl-compilers.m4: use proper quotes around string, not backticks
+  
+  ... when setting clang version to assume 3.7
+  
+  Caused a lot of "integer expression expected" warnings by configure.
+
+- [Benbuck Nason brought this change]
+
+  cmake: remove dead code for DISABLED_THREADSAFE
+  
+  Closes #1786
+
+Jay Satiro (15 Aug 2017)
+- [Jakub Zakrzewski brought this change]
+
+  curl-confopts.m4: fix --disable-threaded-resolver
+  
+  Closes https://github.com/curl/curl/issues/1784
+
+Daniel Stenberg (15 Aug 2017)
+- [Ryan Winograd brought this change]
+
+  progress: Track total times following redirects
+  
+  Update the progress timers `t_nslookup`, `t_connect`, `t_appconnect`,
+  `t_pretransfer`, and `t_starttransfer` to track the total times for
+  these activities when a redirect is followed. Previously, only the times
+  for the most recent request would be tracked.
+  
+  Related changes:
+  
+    - Rename `Curl_pgrsResetTimesSizes` to `Curl_pgrsResetTransferSizes`
+      now that the function only resets transfer sizes and no longer
+      modifies any of the progress timers.
+  
+    - Add a bool to the `Progress` struct that is used to prevent
+      double-counting `t_starttransfer` times.
+  
+  Added test case 1399.
+  
+  Fixes #522 and Known Bug 1.8
+  Closes #1602
+  Reported-by: joshhe on github
+
+- [Benbuck Nason brought this change]
+
+  cmake: remove dead code for CURL_DISABLE_RTMP
+  
+  Closes #1785
+
+Kamil Dudka (15 Aug 2017)
+- zsh.pl: produce a working completion script again
+  
+  Commit curl-7_54_0-118-g8b2f22e changed the output format of curl --help
+  to use <file> and <dir> instead of FILE and DIR, which caused zsh.pl to
+  produce a broken completion script:
+  
+  % curl --<TAB>
+  _curl:10: no such file or directory: seconds
+  
+  Closes #1779
+
+Daniel Stenberg (15 Aug 2017)
+- curlver: toward 7.56.0?
+
+- RELEASE-NOTES: synced with 91c46dc44
+
+- test1449: FTP download range with an too large size
+
+- strtoofft: reduce integer overflow risks globally
+  
+  ... make sure we bail out on overflows.
+  
+  Reported-by: Brian Carpenter
+  Closes #1758
+
+- travis: build the examples too
+  
+  to make sure they keep building warning-free
+  
+  Closes #1777
+
+- runtests: match keywords case insensitively
+
+- examples/ftpuploadresume.c: use portable code
+  
+  ... converted from the MS specific _snscanf()
+
+Version 7.55.1 (13 Aug 2017)
+
+Daniel Stenberg (13 Aug 2017)
+- RELEASE-NOTES/THANKS: curl 7.55.1 release time
+
+- gitignore: ignore .xz now instead of .lzma
+
+- [Sergei Nikulov brought this change]
+
+  cmake: Threads detection update. ref: #1702
+  
+  Closes #1719
+
+- ipv6_scope: support unique local addresses
+  
+  Fixes #1764
+  Closes #1773
+  Reported-by: James Slaughter
+
+- [Alex Potapenko brought this change]
+
+  curl/system.h: GCC doesn't define __ppc__ on PowerPC, uses __powerpc__
+  
+  Closes #1774
+
+- test1448: verify redirect to IDN using URL
+  
+  Closes #1772
+
+- [Salah-Eddin Shaban brought this change]
+
+  redirect: skip URL encoding for host names
+  
+  This fixes redirects to IDN URLs
+  
+  Fixes #1441
+  Closes #1762
+  Reported by: David Lord
+
+- test2032: mark as flaky (again)
+
+- travis: test cmake build on tarball too
+  
+  Could've prevented #1755
+
+- [Simon Warta brought this change]
+
+  cmake: allow user to override CMAKE_DEBUG_POSTFIX
+  
+  Closes #1763
+
+- connect-to.d: better language
+
+- connect-to.d: clarified
+
+- bagder/Curl_tvdiff_us: fix the math
+  
+  Regression since adef394ac5 (released in 7.55.0)
+  
+  Reported-by: Han Qiao
+  Fixes #1769
+  Closes #1771
+
+- curl/system.h: add Oracle Solaris Studio
+  
+  Fixes #1752
+
+- [Alessandro Ghedini brought this change]
+
+  docs: fix typo funtion -> function
+  
+  Closes #1770
+
+Alessandro Ghedini (12 Aug 2017)
+- docs: fix grammar in CURL_SSLVERSION_MAX_DEFAULT description
+
+- docs: fix typo stuct -> struct
+
+Dan Fandrich (12 Aug 2017)
+- test1447: require a curl with http support
+
+Daniel Stenberg (11 Aug 2017)
+- [Thomas Petazzoni brought this change]
+
+  curl/system.h: support more architectures
+  
+  The long list of architectures in include/curl/system.h is annoying to
+  maintain, and needs to be extended for each and every architecture to
+  support.
+  
+  Instead, let's rely on the __SIZEOF_LONG__ define of the gcc compiler
+  (we are in the GNUC condition anyway), which tells us if long is 4
+  bytes or 8 bytes.
+  
+  This fixes the build of libcurl 7.55.0 on architectures such as
+  OpenRISC or ARC.
+  
+  Closes #1766
+  
+  Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+
+- test2033: this went flaky again
+  
+  Suspicion: when we enabled the threaded resolver by default.
+
+- test1447: verifies the parse proxy fix in 6e0e152ce5c
+
+- [Even Rouault brought this change]
+
+  parse_proxy(): fix memory leak in case of invalid proxy server name
+  
+  Fixes the below leak:
+  
+  $ valgrind --leak-check=full ~/install-curl-git/bin/curl --proxy "http://a:b@/x" http://127.0.0.1
+  curl: (5) Couldn't resolve proxy name
+  ==5048==
+  ==5048== HEAP SUMMARY:
+  ==5048==     in use at exit: 532 bytes in 12 blocks
+  ==5048==   total heap usage: 5,288 allocs, 5,276 frees, 445,271 bytes allocated
+  ==5048==
+  ==5048== 2 bytes in 1 blocks are definitely lost in loss record 1 of 12
+  ==5048==    at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
+  ==5048==    by 0x4E6CB79: parse_login_details (url.c:5614)
+  ==5048==    by 0x4E6BA82: parse_proxy (url.c:5091)
+  ==5048==    by 0x4E6C46D: create_conn_helper_init_proxy (url.c:5346)
+  ==5048==    by 0x4E6EA18: create_conn (url.c:6498)
+  ==5048==    by 0x4E6F9B4: Curl_connect (url.c:6967)
+  ==5048==    by 0x4E86D05: multi_runsingle (multi.c:1436)
+  ==5048==    by 0x4E88432: curl_multi_perform (multi.c:2160)
+  ==5048==    by 0x4E7C515: easy_transfer (easy.c:708)
+  ==5048==    by 0x4E7C74A: easy_perform (easy.c:794)
+  ==5048==    by 0x4E7C7B1: curl_easy_perform (easy.c:813)
+  ==5048==    by 0x414025: operate_do (tool_operate.c:1563)
+  ==5048==
+  ==5048== 2 bytes in 1 blocks are definitely lost in loss record 2 of 12
+  ==5048==    at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
+  ==5048==    by 0x4E6CBB6: parse_login_details (url.c:5621)
+  ==5048==    by 0x4E6BA82: parse_proxy (url.c:5091)
+  ==5048==    by 0x4E6C46D: create_conn_helper_init_proxy (url.c:5346)
+  ==5048==    by 0x4E6EA18: create_conn (url.c:6498)
+  ==5048==    by 0x4E6F9B4: Curl_connect (url.c:6967)
+  ==5048==    by 0x4E86D05: multi_runsingle (multi.c:1436)
+  ==5048==    by 0x4E88432: curl_multi_perform (multi.c:2160)
+  ==5048==    by 0x4E7C515: easy_transfer (easy.c:708)
+  ==5048==    by 0x4E7C74A: easy_perform (easy.c:794)
+  ==5048==    by 0x4E7C7B1: curl_easy_perform (easy.c:813)
+  ==5048==    by 0x414025: operate_do (tool_operate.c:1563)
+  
+  Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2984
+  Credit to OSS Fuzz for discovery
+  
+  Closes #1761
+
+- RELEASE-NOTES: synced with 37f2195a9
+
+- curlver: bump to 7.55.1
+
+- openssl: fix "error: this statement may fall through"
+  
+  A gcc7 warning.
+
+- [David Benjamin brought this change]
+
+  openssl: remove CONST_ASN1_BIT_STRING.
+  
+  Just making the pointer as const works for the pre-1.1.0 path too.
+  
+  Closes #1759
+
+- maketgz: remove old *.dist files before making the tarball
+  
+  To avoid "old crap" unintentionally getting shipped.
+  
+  Bug: https://curl.haxx.se/mail/lib-2017-08/0050.html
+  Reported-by: Christian Weisgerber
+
+Jay Satiro (10 Aug 2017)
+- mkhelp.pl: allow executing this script directly
+  
+  - Enable execute permission (chmod +x)
+  
+  - Change interpreter to /usr/bin/env perl
+  
+  Ref: https://github.com/curl/curl/issues/1743
+
+Daniel Stenberg (10 Aug 2017)
+- configure: use the threaded resolver backend by default if possible
+  
+  Closes #1647
+
+- cmake: move cmake_uninstall.cmake to CMake/
+  
+  Closes #1756
+
+- metalink: fix error: ‘*’ in boolean context, suggest ‘&&’ instead
+
+- dist: fix the cmake build by shipping cmake_uninstall.cmake.in too
+  
+  Fixes #1755
+
+- travis: verify "make install"
+  
+  Help-by: Jay Satiro
+  Closes #1753
+
+Marcel Raad (10 Aug 2017)
+- build: check out *.sln files with Windows line endings
+  
+  Visual Studio doesn't like LF line endings in solution files and always
+  converts them to CRLF when doing changes to the solution. Notably, this
+  affects the solutions in the release archive.
+  
+  Closes https://github.com/curl/curl/pull/1746
+
+- gitignore: ignore top-level .vs folder
+  
+  This folder is generated when using the CMake build system from within
+  Visual Studio.
+  
+  Closes https://github.com/curl/curl/pull/1746
+
+Jay Satiro (10 Aug 2017)
+- digest_sspi: Don't reuse context if the user/passwd has changed
+  
+  Bug: https://github.com/curl/curl/issues/1685
+  Reported-by: paulharris@users.noreply.github.com
+  
+  Assisted-by: Isaac Boukris
+  
+  Closes https://github.com/curl/curl/pull/1742
+
+Daniel Stenberg (9 Aug 2017)
+- [Adam Sampson brought this change]
+
+  dist: Add dictserver.py/negtelnetserver.py to EXTRA_DIST
+  
+  These weren't included in the 7.55.0 release, but are required in order
+  to run the full test suite.
+  
+  Closes #1744
+
+- [Adam Sampson brought this change]
+
+  curl: do bounds check using a double comparison
+  
+  The fix for this in 8661a0aacc01492e0436275ff36a21734f2541bb wasn't
+  complete: if the parsed number in num is larger than will fit in a long,
+  the conversion is undefined behaviour (causing test1427 to fail for me
+  on IA32 with GCC 7.1, although it passes on AMD64 and ARMv7).  Getting
+  rid of the cast means the comparison will be done using doubles.
+  
+  It might make more sense for the max argument to also be a double...
+  
+  Fixes #1750
+  Closes #1749
+
+- make install: add 8 missing man pages to the installation
+
+- build: fix 'make install' with configure, install docs/libcurl/* too
+  
+  Broken since d24838d4da9faa
+  
+  Reported-by: Bernard Spil
+
+Version 7.55.0 (9 Aug 2017)
+
+Daniel Stenberg (9 Aug 2017)
+- RELEASE-NOTES: curl 7.55.0
+
+- THANKS: 20 new contributors in 7.55.0
+
+- [Viktor Szakats brought this change]
+
+  docs/comments: Update to secure URL versions
+  
+  Closes #1741
+
+- configure: fix recv/send/select detection on Android
+  
+  ... since they now provide several functions as
+  __attribute__((overloadable)), the argument detection logic need
+  updates.
+  
+  Patched-by: destman at github
+  
+  Fixes #1738
+  Closes #1739
+
+Marcel Raad (8 Aug 2017)
+- ax_code_coverage.m4: update to latest version
+  
+  This updates the script to aad5ad5fedb306b39f901a899b7bd305b66c418d
+  from August 01, 2017. Notably, this removes the lconv version whitelist.
+  
+  Closes https://github.com/curl/curl/pull/1716
+
+Daniel Stenberg (7 Aug 2017)
+- test1427: verify command line parser integer overflow detection
+
+- curl: detect and bail out early on parameter integer overflows
+  
+  Make the number parser aware of the maximum limit curl accepts for a
+  value and return an error immediately if larger, instead of running an
+  integer overflow later.
+  
+  Fixes #1730
+  Closes #1736
+
+- glob: do not continue parsing after a strtoul() overflow range
+  
+  Added test 1289 to verify.
+  
+  CVE-2017-1000101
+  
+  Bug: https://curl.haxx.se/docs/adv_20170809A.html
+  Reported-by: Brian Carpenter
+
+- tftp: reject file name lengths that don't fit
+  
+  ... and thereby avoid telling send() to send off more bytes than the
+  size of the buffer!
+  
+  CVE-2017-1000100
+  
+  Bug: https://curl.haxx.se/docs/adv_20170809B.html
+  Reported-by: Even Rouault
+  
+  Credit to OSS-Fuzz for the discovery
+
+- [Even Rouault brought this change]
+
+  file: output the correct buffer to the user
+  
+  Regression brought by 7c312f84ea930d8 (April 2017)
+  
+  CVE-2017-1000099
+  
+  Bug: https://curl.haxx.se/docs/adv_20170809C.html
+  
+  Credit to OSS-Fuzz for the discovery
+
+- easy_events: make event data static
+  
+  First: this function is only used in debug-builds and not in
+  release/real builds. It is used to drive tests using the event-based
+  API.
+  
+  A pointer to the local struct is passed to CURLMOPT_TIMERDATA, but the
+  CURLMOPT_TIMERFUNCTION calback can in fact be called even after this
+  funtion returns, namely when curl_multi_remove_handle() is called.
+  
+  Reported-by: Brian Carpenter
+
+- getparameter: avoid returning uninitialized 'usedarg'
+  
+  Fixes #1728
+
+Marcel Raad (5 Aug 2017)
+- [Isaac Boukris brought this change]
+
+  gssapi: fix memory leak of output token in multi round context
+  
+  When multiple rounds are needed to establish a security context
+  (usually ntlm), we overwrite old token with a new one without free.
+  Found by proposed gss tests using stub a gss implementation (by
+  valgrind error), though I have confirmed the leak with a real
+  gssapi implementation as well.
+  
+  Closes https://github.com/curl/curl/pull/1733
+
+- darwinssl: fix compiler warning
+  
+  clang complains:
+  vtls/darwinssl.c:40:8: error: extra tokens at end of #endif directive
+  [-Werror,-Wextra-tokens]
+  
+  This breaks the darwinssl build on Travis. Fix it by making this token
+  a comment.
+  
+  Closes https://github.com/curl/curl/pull/1734
+
+- CMake: fix CURL_WERROR for MSVC
+  
+  When using CURL_WERROR in MSVC builds, the debug flags were overridden
+  by the release flags and /WX got added twice in debug mode.
+  
+  Closes https://github.com/curl/curl/pull/1715
+
+Daniel Stenberg (4 Aug 2017)
+- RELEASE-NOTES: synced with 561e9217c
+
+- test1010: verify that #1718 is fixed
+  
+  ... by doing two transfers in nocwd mode and check that there's no
+  superfluous CWD command.
 
-- tool_doswin: Improve sanitization processing
+- FTP: skip unnecessary CWD when in nocwd mode
   
-  - Add unit test 1604 to test the sanitize_file_name function.
+  ... when reusing a connection. If it didn't do any CWD previously.
   
-  - Use -DCURL_STATICLIB when building libcurltool for unit testing.
+  Fixes #1718
+
+Marcel Raad (4 Aug 2017)
+- travis: explicitly specify dist
   
-  - Better detection of reserved DOS device names.
+  This makes the builds more reproducible as travis is currently rolling
+  out trusty as default dist [1]. Specifically, this avoids coverage
+  check failures when trusty is used as seen in [2] until we figure out
+  what's wrong.
   
-  - New flags to modify sanitize behavior:
+  [1] https://blog.travis-ci.com/2017-07-11-trusty-as-default-linux-is-coming
+  [2] https://github.com/curl/curl/pull/1692
   
-  SANITIZE_ALLOW_COLONS: Allow colons
-  SANITIZE_ALLOW_PATH: Allow path separators and colons
-  SANITIZE_ALLOW_RESERVED: Allow reserved device names
-  SANITIZE_ALLOW_TRUNCATE: Allow truncating a long filename
+  Closes https://github.com/curl/curl/pull/1725
+
+Daniel Stenberg (4 Aug 2017)
+- travis: BUILD_TYPE => T
   
-  - Restore sanitization of banned characters from user-specified outfile.
+  (to make the full line appear nicer on travis web UI)
+
+- travis: add osx build with darwinssl
   
-  Prior to this commit sanitization of a user-specified outfile was
-  temporarily disabled in 2b6dadc because there was no way to allow path
-  separators and colons through while replacing other banned characters.
-  Now in such a case we call the sanitize function with
-  SANITIZE_ALLOW_PATH which allows path separators and colons to pass
-  through.
+  Closes #1706
+
+- darwin: silence compiler warnings
   
+  With a clang pragma and three type fixes
   
-  Closes https://github.com/curl/curl/issues/624
-  Reported-by: Octavio Schroeder
+  Fixes #1722
 
-- [Viktor Szakats brought this change]
+- BUILD.WINDOWS: mention buildconf.bat for builds off git
 
-  URLs: change more http to https
+- darwinssl: fix curlssl_sha256sum() compiler warnings on first argument
 
-- sasl_sspi: Fix memory leak in domain populate
-  
-  Free an existing domain before replacing it.
-  
-  Bug: https://github.com/curl/curl/issues/635
-  Reported-by: silveja1@users.noreply.github.com
+- test130: verify comments in .netrc
 
-Daniel Stenberg (4 Feb 2016)
-- [Viktor Szakats brought this change]
+- [Gisle Vanem brought this change]
 
-  URLs: follow GitHub project rename (also Travis CI)
+  netrc: skip lines starting with '#'
   
-  Closes #632
+  Bug: https://curl.haxx.se/mail/lib-2017-08/0008.html
 
-- CHANGES.o: fix references to curl.haxx.nu
+Marcel Raad (3 Aug 2017)
+- CMake: set MSVC warning level to 4
   
-  I removed the scheme prefix from the URLs references this host name, as
-  we don't own/run that anymore but the name is kept for historic reasons.
-
-- HISTORY: add some info about when we used which host names
-
-Jay Satiro (2 Feb 2016)
-- [Viktor Szakats brought this change]
+  The MSVC warning level defaults to 3 in CMake. Change it to 4, which is
+  consistent with the Visual Studio and NMake builds. Disable level 4
+  warning C4127 for the library and additionally C4306 for the test
+  servers to get a clean CURL_WERROR build as that warning is raised in
+  some macros in older Visual Studio versions.
+  
+  Ref: https://github.com/curl/curl/pull/1667#issuecomment-314082794
+  Closes https://github.com/curl/curl/pull/1711
 
-  URLs: change more http to https
+Daniel Stenberg (2 Aug 2017)
+- CURLOPT_NETRC.3: fix typo in 7e48aa386156f9c2
+  
+  Reported-by: Viktor Szakats
 
-Dan Fandrich (3 Feb 2016)
-- URLs: Change more haxx.se URLs from http: to https:
+- CURLOPT_NETRC.3: mention the file name on windows
+  
+  ... and CURLOPT_NETRC_FILE(3).
 
-Daniel Stenberg (3 Feb 2016)
-- RELEASE-NOTES: synced with 4af40b364
+- travis: build osx with libressl too
 
-- URLs: change all http:// URLs to https://
+- travis: build osx with openssl too
 
-- configure: update the copyright year range in output
+- tests/server/util: fix curltime mistake from 4dee50b9c80f9
 
-- dotdot: allow an empty input string too
+Marcel Raad (1 Aug 2017)
+- curl_threads: fix MSVC compiler warning
   
-  It isn't used by the code in current conditions but for safety it seems
-  sensible to at least not crash on such input.
+  Use LongToHandle to convert from long to HANDLE in the Win32
+  implementation.
+  This should fix the following warning when compiling with
+  MSVC 11 (2012) in 64-bit mode:
+  lib\curl_threads.c(113): warning C4306:
+  'type cast' : conversion from 'long' to 'HANDLE' of greater size
   
-  Extended unit test 1395 to verify this too as well as a plain "/" input.
+  Closes https://github.com/curl/curl/pull/1717
 
-- HTTPS: update a bunch of URLs from HTTP to HTTPS
+Daniel Stenberg (1 Aug 2017)
+- BUGS: improved phrasing about security bugs
+  
+  Reported-by: Max Dymond
 
-- [Sergei Nikulov brought this change]
+- BUGS: clarify how to report security related bugs
 
-  AppVeyor: updated to handle OpenSSL/WinSSL builds
+- [Brad Spencer brought this change]
+
+  multi: fix request timer management
+  
+  There are some bugs in how timers are managed for a single easy handle
+  that causes the wrong "next timeout" value to be reported to the
+  application when a new minimum needs to be recomputed and that new
+  minimum should be an existing timer that isn't currently set for the
+  easy handle.  When the application drives a set of easy handles via the
+  `curl_multi_socket_action()` API (for example), it gets told to wait the
+  wrong amount of time before the next call, which causes requests to
+  linger for a long time (or, it is my guess, possibly forever).
   
-  Closes #621
+  Bug: https://curl.haxx.se/mail/lib-2017-07/0033.html
 
-Jay Satiro (1 Feb 2016)
-- tool_operate: Don't sanitize --output path (Windows)
+Jay Satiro (1 Aug 2017)
+- curl_setup: Define CURL_NO_OLDIES for building libcurl
   
-  Due to path separators being incorrectly sanitized in --output
-  pathnames, eg -o c:\foo => c__foo
+  .. to catch accidental use of deprecated error codes.
   
-  This is a partial revert of 3017d8a until I write a proper fix. The
-  remote-name will continue to be sanitized, but if the user specified an
-  --output with string replacement (#1, #2, etc) that data is unsanitized
-  until I finish a fix.
+  Ref: https://github.com/curl/curl/issues/1688#issuecomment-316764237
+
+Daniel Stenberg (1 Aug 2017)
+- [Jeremy Tan brought this change]
+
+  configure: fix the check for IdnToUnicode
   
-  Bug: https://github.com/bagder/curl/issues/624
-  Reported-by: Octavio Schroeder
+  Fixes #1669
+  Closes #1713
 
-- curl.1: Explain remote-name behavior if file already exists
+- http: fix response code parser to avoid integer overflow
   
-  .. also warn about letting the server pick the filename.
+  test 1429 and 1433 were updated to work with the stricter HTTP status line
+  parser.
+  
+  Closes #1714
+  Reported-by: Brian Carpenter
 
-- [Gisle Vanem brought this change]
+Jay Satiro (31 Jul 2017)
+- [Dwarakanath Yadavalli brought this change]
 
-  urldata: Error on missing SSL backend-specific connect info
+  libcurl: Stop using error codes defined under CURL_NO_OLDIES
+  
+  Fixes https://github.com/curl/curl/issues/1688
+  Closes https://github.com/curl/curl/pull/1712
 
-Daniel Stenberg (28 Jan 2016)
-- bump: towards the next (7.47.1 ?)
+- include.d: clarify --include is only for response headers
+  
+  Follow-up to 171f8de and de6de94.
+  
+  Bug: https://github.com/curl/curl/commit/de6de94#commitcomment-23370851
+  Reported-by: Daniel Stenberg
 
-- [Sergei Nikulov brought this change]
+Daniel Stenberg (30 Jul 2017)
+- [Jason Juang brought this change]
 
-  cmake: fixed when OpenSSL enabled on Windows and schannel detected
+  cmake: support make uninstall
   
-  Closes #617
+  Closes #1674
 
-Jay Satiro (28 Jan 2016)
-- [Sergei Nikulov brought this change]
+- RELEASE-NOTES: synced with 001701c47
 
-  urldata: moved common variable out of ifdef
+Marcel Raad (29 Jul 2017)
+- AppVeyor: now really use CURL_WERROR
+  
+  It was misspelled as CURL_ERROR in commit
+  2d86e8d1286e0fbe3d811e2e87fa0b5e53722db4.
   
-  Closes https://github.com/bagder/curl/pull/618
+  Closes https://github.com/curl/curl/pull/1686
 
-- [Viktor Szakats brought this change]
+Jay Satiro (29 Jul 2017)
+- tool_help: clarify --include is only for response headers
+  
+  Follow-up to 171f8de.
+  
+  Ref: https://github.com/curl/curl/issues/1704
 
-  tool_doswin: silence unused function warning
+- splay: fix signed/unsigned mismatch warning
   
-  tool_doswin.c:185:14: warning: 'msdosify' defined but not used
-  [-Wunused-function]
+  Follow-up to 4dee50b.
   
-  Closes https://github.com/bagder/curl/pull/616
+  Ref: https://github.com/curl/curl/pull/1693
 
-Daniel Stenberg (27 Jan 2016)
-- getredirect.c: fix variable name
+Daniel Stenberg (28 Jul 2017)
+- include.d: clarify that it concerns the response headers
   
-  Reported-by: Bernard Spil
+  Reported-by: olesteban at github
+  Fixes #1704
 
-Version 7.47.0 (27 Jan 2016)
+- [Johannes Schindelin brought this change]
 
-Daniel Stenberg (27 Jan 2016)
-- examples/Makefile.inc: specify programs without .c!
+  curl_rtmp: fix a compiler warning
+  
+  The headers of librtmp declare the socket as `int`, and on Windows, that
+  disagrees with curl_socket_t.
+  
+  Bug: #1652
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
 
-- THANKS: 6 new contributors from 7.47.0 release notes
+- test1323: verify curlx_tvdiff
 
-- [Isaac Boukris brought this change]
+- timeval: struct curltime is a struct timeval replacement
+  
+  ... to make all libcurl internals able to use the same data types for
+  the struct members. The timeval struct differs subtly on several
+  platforms so it makes it cumbersome to use everywhere.
+  
+  Ref: #1652
+  Closes #1693
 
-  NTLM: Fix ConnectionExists to compare Proxy credentials
+- darwinssl: fix variable type mistake (regression)
   
-  Proxy NTLM authentication should compare credentials when
-  re-using a connection similar to host authentication, as it
-  authenticate the connection.
+  ... which made --tlsv1.2 not work because it would blank the max tls
+  version variable.
   
-  Example:
-  curl -v -x http://proxy:port http://host/ -U good_user:good_pwd
-    --proxy-ntlm --next -x http://proxy:port http://host/
-      [-U fake_user:fake_pwd --proxy-ntlm]
+  Reported-by: Nick Miyake
+  Bug: #1703
+
+- multi: mention integer overflow risk if using > 500 million sockets
   
-  CVE-2016-0755
+  Reported-by: ovidiu-benea@users.noreply.github.com
   
-  Bug: http://curl.haxx.se/docs/adv_20160127A.html
+  Closes #1675
+  Closes #1683
 
-- [Ray Satiro brought this change]
+- checksrc: escape open brace in regex
+  
+  ... to silence warning.
 
-  curl: avoid local drive traversal when saving file (Windows)
+Kamil Dudka (20 Jul 2017)
+- nss: fix a possible use-after-free in SelectClientCert()
   
-  curl does not sanitize colons in a remote file name that is used as the
-  local file name. This may lead to a vulnerability on systems where the
-  colon is a special path character. Currently Windows/DOS is the only OS
-  where this vulnerability applies.
+  ... causing a SIGSEGV in showit() in case the handle used to initiate
+  the connection has already been freed.
   
-  CVE-2016-0754
+  This commit fixes a bug introduced in curl-7_19_5-204-g5f0cae803.
   
-  Bug: http://curl.haxx.se/docs/adv_20160127B.html
+  Reported-by: Rob Sanders
+  Bug: https://bugzilla.redhat.com/1436158
 
-- RELEASE-NOTES: 7.47.0
+- nss: unify the coding style of nss_send() and nss_recv()
+  
+  No changes in behavior intended by this commit.
 
-- FAQ: language fix in 4.19
+Marcel Raad (18 Jul 2017)
+- tests/server/resolve.c: fix deprecation warning
+  
+  MSVC warns that gethostbyname is deprecated. Always use getaddrinfo
+  instead to fix this when IPv6 is enabled, also for IPv4 resolves. This
+  is also consistent with what libcurl does.
+  
+  Closes https://github.com/curl/curl/pull/1682
 
-- [paulehoffman brought this change]
+Jay Satiro (17 Jul 2017)
+- darwinssl: fix pinnedpubkey build error
+  
+  - s/SessionHandle/Curl_easy/
+  
+  Bug: https://github.com/curl/curl/commit/eb16305#commitcomment-23035670
+  Reported-by: Gisle Vanem
 
-  FAQ: Update to point to GitHub
+Marcel Raad (16 Jul 2017)
+- rtspd: fix GCC warning after MSVC warning fix
   
-  Current FAQ didn't make it clear where the main repo is.
+  Older GCC warns:
+  /tests/server/rtspd.c:1194:10: warning: missing braces around
+  initializer [-Wmissing-braces]
   
-  Closes #612
+  Fix this by using memset instead of an initializer.
 
-- maketgz: generate date stamp with LC_TIME=C
+- libtest: fix MSVC warning C4706
   
-  bug: http://curl.haxx.se/mail/lib-2016-01/0123.html
+  With warning level 4, MSVC warns about assignments within conditional
+  expressions. Change the while loop to a do-while loop to fix this. This
+  change is also consistent with CODE_STYLE.md.
 
-- curl_multi_socket_action.3: line wrap
+- sockfilt: suppress conversion warning with explicit cast
+  
+  MSVC warns when implicitly casting -1 to unsigned long.
 
-- RELEASE-NOTES: synced with d58ba66eeceb
+- rtspd: fix MSVC level 4 warning
+  
+  warning C4701: potentially uninitialized local variable 'req' used
 
-Steve Holme (21 Jan 2016)
-- TODO: "Create remote directories" for SMB
+- winbuild: re-enable warning C4127 for curl tool
+  
+  Disabled in cda19a345f6970e22fe8b7a808aeb8f086a21eac. It only needs to
+  be disabled for libcurl.
 
-Jay Satiro (18 Jan 2016)
-- mbedtls: Fix pinned key return value on fail
+- winbuild: build with warning level 4
   
-  - Switch from verifying a pinned public key in a callback during the
-  certificate verification to inline after the certificate verification.
+  This is consistent with 7bc64561a2e63ca93e4b0b31d350773ba80955c2, which
+  changed the warning level from 3 to 4 for the Visual Studio project
+  files. But disable the level 4 warning C4127 "conditional expression is
+  constant", as that one is issued by older versions of the Windows SDK
+  as well as curl itself under some circumstances.
   
-  The callback method had three problems:
+  Closes https://github.com/curl/curl/pull/1667
+
+Jay Satiro (12 Jul 2017)
+- [Max Dymond brought this change]
+
+  travis: install libidn2
   
-  1. If a pinned public key didn't match, CURLE_SSL_PINNEDPUBKEYNOTMATCH
-  was not returned.
+  Install libidn2 to increase test coverage (IDN tests)
   
-  2. If peer certificate verification was disabled the pinned key
-  verification did not take place as it should.
+  Closes https://github.com/curl/curl/pull/1673
+
+Marcel Raad (12 Jul 2017)
+- travis: enable warnings also in release mode
   
-  3. (related to #2) If there was no certificate of depth 0 the callback
-  would not have checked the pinned public key.
+  ... to get warnings also on Linux/GCC and OSX/clang.
   
-  Though all those problems could have been fixed it would have made the
-  code more complex. Instead we now verify inline after the certificate
-  verification in mbedtls_connect_step2.
+  Closes https://github.com/curl/curl/pull/1666
+
+Daniel Stenberg (12 Jul 2017)
+- [Max Dymond brought this change]
+
+  travis: install libssh2
   
-  Ref: http://curl.haxx.se/mail/lib-2016-01/0047.html
-  Ref: https://github.com/bagder/curl/pull/601
+  Install libssh2 to increase test coverage (SFTP, SCP)
 
-- tests: Add a test for pinnedpubkey fail even when insecure
+Marcel Raad (12 Jul 2017)
+- system.h: include winsock2.h before windows.h
   
-  Because disabling the peer verification (--insecure) must not disable
-  the public key pinning check (--pinnedpubkey).
+  ... to avoid compiler warnings if the user doesn't want
+  WIN32_LEAN_AND_MEAN.
 
-- [Daniel Schauenberg brought this change]
+- build: remove WIN32_LEAN_AND_MEAN from individual build systems
+  
+  It's defined for all build systems in curl_setup.h since commit
+  beb08481d01a07a8b10938b1078a5e298b1c2912. This caused macro
+  redefinition warnings in the configure builds.
+  
+  Closes https://github.com/curl/curl/pull/1677
 
-  CURLINFO_RESPONSE_CODE.3: add example
+Jay Satiro (11 Jul 2017)
+- ISSUE_TEMPLATE: Add a comment not to file security issues on github
 
-Kamil Dudka (15 Jan 2016)
-- ssh: make CURLOPT_SSH_PUBLIC_KEYFILE treat "" as NULL
+Marcel Raad (11 Jul 2017)
+- curl_setup: always define WIN32_LEAN_AND_MEAN on Windows
   
-  The CURLOPT_SSH_PUBLIC_KEYFILE option has been documented to handle
-  empty strings specially since curl-7_25_0-31-g05a443a but the behavior
-  was unintentionally removed in curl-7_38_0-47-gfa7d04f.
+  Make sure to always define WIN32_LEAN_AND_MEAN before including any
+  Windows headers to avoid pulling in unnecessary headers. This avoids
+  unnecessary macro clashes and compiler warnings.
   
-  This commit restores the original behavior and clarifies it in the
-  documentation that NULL and "" have both the same meaning when passed
-  to CURLOPT_SSH_PUBLIC_KEYFILE.
+  Ref: https://github.com/curl/curl/issues/1562
+  Closes https://github.com/curl/curl/pull/1672
+
+Jay Satiro (11 Jul 2017)
+- strerror: Preserve Windows error code in some functions
+  
+  This is a follow-up to af02162 which removed (SET_)ERRNO macros. That
+  commit was an earlier draft that I committed by mistake, which was then
+  remedied by a5834e5 and e909de6, and now this commit. With this commit
+  there is now no difference between the current code and the changes that
+  were approved in the final draft.
   
-  Bug: http://curl.haxx.se/mail/lib-2016-01/0072.html
+  Thanks-to: Max Dymond, Marcel Raad, Daniel Stenberg, Gisle Vanem
+  Ref: https://github.com/curl/curl/pull/1589
 
-Daniel Stenberg (14 Jan 2016)
-- RELEASE-NOTES: synced with 35083ca60ed035a
+Marcel Raad (10 Jul 2017)
+- [Max Dymond brought this change]
 
-- openssl: improved error detection/reporting
+  tests: Fix up issues with errno in test files
   
-  ... by extracting the LIB + REASON from the OpenSSL error code. OpenSSL
-  1.1.0+ returned a new func number of another cerfificate fail so this
-  required a fix and this is the better way to catch this error anyway.
+  Closes https://github.com/curl/curl/pull/1671
 
-- openssl: for 1.1.0+ they now provide a SSLeay() macro of their own
+Daniel Stenberg (10 Jul 2017)
+- errno: fix non-windows builds after af0216251b94e7
 
-- CURLOPT_RESOLVE.3: minor language polish
+- [Ryan Winograd brought this change]
 
-- configure: assume IPv6 works when cross-compiled
+  make: fix docs build on OpenBSD
   
-  The configure test uses AC_TRY_RUN to figure out if an ipv6 socket
-  works, and testing like that doesn't work for cross-compiles. These days
-  IPv6 support is widespread so a blind guess is probably more likely to
-  be 'yes' than 'no' now.
+  Ref: #1591
+
+Marcel Raad (10 Jul 2017)
+- ldap: fix MinGW compiler warning
   
-  Further: anyone who cross-compiles can use configure's --disable-ipv6 to
-  explicitly disable IPv6 and that also works for cross-compiles.
+  ldap_bind_s is marked as deprecated in w32api's winldap.h shipping with
+  the latest original MinGW, resulting in compiler warnings since commit
+  f0fe66f13c93d3d0af45d9fb1231c9164e0f9dc8. Fix this for the non-SSPI
+  case by using ldap_simple_bind_s again instead of ldap_bind_s with
+  LDAP_AUTH_SIMPLE.
   
-  Made happen after discussions in issue #594
+  Closes https://github.com/curl/curl/pull/1664
 
-- TODO: "Try to URL encode given URL"
+- curl-compilers.m4: disable warning spam with Cygwin's clang
+  
+  When building with Cygwin or MinGW, libtool uses a wrapper executable
+  instead of a wrapper script [1], which is written in C and throws
+  missing-variable-declarations warnings. Don't enable these warnings on
+  Cygwin and MinGW in order to avoid warnings for every executable built,
+  which spams the test suite output when using Cygwin's clang.
   
-  Closes #514
+  [1] https://www.gnu.org/software/libtool/manual/html_node/Wrapper-executables.html
+  
+  Closes https://github.com/curl/curl/pull/1665
 
-- ConnectionExists: only do pipelining/multiplexing when asked
+Jay Satiro (10 Jul 2017)
+- curl_setup_once: Remove ERRNO/SET_ERRNO macros
   
-  When an HTTP/2 upgrade request fails (no protocol switch), it would
-  previously detect that as still possible to pipeline on (which is
-  acorrect) and do that when PIPEWAIT was enabled even if pipelining was
-  not explictily enabled.
+  Prior to this change (SET_)ERRNO mapped to GetLastError/SetLastError
+  for Win32 and regular errno otherwise.
   
-  It should only pipelined if explicitly asked to.
+  I reviewed the code and found no justifiable reason for conflating errno
+  on WIN32 with GetLastError/SetLastError. All Win32 CRTs support errno,
+  and any Win32 multithreaded CRT supports thread-local errno.
   
-  Closes #584
+  Fixes https://github.com/curl/curl/issues/895
+  Closes https://github.com/curl/curl/pull/1589
 
-- [Mohammad AlSaleh brought this change]
+- tool_getparam: fix potentially uninitialized err
 
-  lib: Prefix URLs with lower-case protocol names/schemes
+Marcel Raad (9 Jul 2017)
+- smb: rename variable to fix shadowing warning
   
-  Before this patch, if a URL does not start with the protocol
-  name/scheme, effective URLs would be prefixed with upper-case protocol
-  names/schemes. This behavior might not be expected by library users or
-  end users.
+  GCC 4.6.3 on travis complains:
+  smb.c: In function ‘get_posix_time’:
+  smb.c:725:13: error: declaration of ‘time’ shadows a global declaration
+  [-Werror=shadow]
   
-  For example, if `CURLOPT_DEFAULT_PROTOCOL` is set to "https". And the
-  URL is "hostname/path". The effective URL would be
-  "HTTPS://hostname/path" instead of "https://hostname/path".
+  Fix this by renaming the variable.
+
+- tool_cb_wrt: fix variable shadowing warning
   
-  After this patch, effective URLs would be prefixed with a lower-case
-  protocol name/scheme.
+  GCC 4.4 complains:
+  tool_cb_wrt.c:81: error: declaration of ‘isatty’ shadows a global
+  declaration
+  /usr/include/unistd.h:782: error: shadowed declaration is here
   
-  Closes #597
+  Fix this by renaming the variable.
   
-  Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
+  Closes https://github.com/curl/curl/pull/1661
 
-- [Alessandro Ghedini brought this change]
+Daniel Stenberg (8 Jul 2017)
+- RELEASE-NOTES: synced with be2c999b8
 
-  scripts: don't generate and install zsh completion when cross-compiling
+- travis: install stunnel
 
-- [Alessandro Ghedini brought this change]
+- valgrind.supp: supress OpenSSL false positive seen on travis
 
-  scripts: fix zsh completion generation
+- travis: detect and use valgrind for normal builds
   
-  The script should use the just-built curl, not the system one. This fixes
-  zsh completion generation when no system curl is installed.
-
-- [Alessandro Ghedini brought this change]
+  Closes #1653
 
-  zsh.pl: fail if no curl is found
-  
-  Instead of generation a broken completion file.
+- travis: add SMB, DICT, TELNET torture to coverage test
 
-- [Michael Kaufmann brought this change]
+- [Paul Harris brought this change]
 
-  IDN host names: Remove the port number before converting to ACE
+  cmake: offer CMAKE_DEBUG_POSTFIX when building with MSVC
   
-  Closes #596
-
-Jay Satiro (10 Jan 2016)
-- runtests: Add mbedTLS to the SSL backends
+  Removes BUILD_RELEASE_DEBUG_DIRS since it wasn't used anywhere.
   
-  .. and enable SSLpinning tests for mbedTLS, BoringSSL and LibreSSL.
-
-Daniel Stenberg (10 Jan 2016)
-- [Thomas Glanzmann brought this change]
+  Closes #1649
 
-  mbedtls: implement CURLOPT_PINNEDPUBLICKEY
+- CURLOPT_POSTFIELDS.3: explain the 100-continue magic better
 
-Jay Satiro (9 Jan 2016)
-- [Tatsuhiro Tsujikawa brought this change]
+- [Max Dymond brought this change]
 
-  url: Fix compile error with --enable-werror
-
-- [Tatsuhiro Tsujikawa brought this change]
-
-  http2: Ensure that http2_handle_stream_close is called
+  test1452: add telnet negotiation
   
-  Previously, when HTTP/2 is enabled and used, and stream has content
-  length known, Curl_read was not called when there was no bytes left to
-  read. Because of this, we could not make sure that
-  http2_handle_stream_close was called for every stream. Since we use
-  http2_handle_stream_close to emit trailer fields, they were
-  effectively ignored. This commit changes the code so that Curl_read is
-  called even if no bytes left to read, to ensure that
-  http2_handle_stream_close is called for every stream.
+  Add a basic telnet server for negotiating some telnet options before
+  echoing back any data that's sent to it.
   
-  Discussed in https://github.com/bagder/curl/pull/564
+  Closes #1645
 
-Daniel Stenberg (8 Jan 2016)
-- http2: handle the received SETTINGS frame
+- travis: do more tests in the coverage run
   
-  This regression landed in 5778e6f5 and made libcurl not act on received
-  settings and instead stayed with its internal defaults.
-  
-  Bug: http://curl.haxx.se/mail/lib-2016-01/0031.html
-  Reported-by: Bankde
+  I added a selection of torture and event tests that run "fast enough"
 
-- Revert "multiplex: allow only once HTTP/2 is actually used"
-  
-  This reverts commit 46cb70e9fa81c9a56de484cdd7c5d9d0d9fbec36.
+- curl_easy_escape.3: mention the (lack of) encoding
   
-  Bug: http://curl.haxx.se/mail/lib-2016-01/0031.html
+  Fixes #1612
+  Reported-by: Jeroen Ooms
 
-Jay Satiro (8 Jan 2016)
-- [Tatsuhiro Tsujikawa brought this change]
+- [Gisle Vanem brought this change]
 
-  http2: Fix PUSH_PROMISE headers being treated as trailers
+  memdebug: don't setbuf() if the file open failed
   
-  Discussed in https://github.com/bagder/curl/pull/564
+  Bug: https://github.com/curl/curl/issues/828#issuecomment-313475151
 
-Daniel Stenberg (8 Jan 2016)
-- [Michael Kaufmann brought this change]
+- appveyor: enable CURL_WERROR on all builds
 
-  connection reuse: IDN host names fixed
-  
-  Use the ACE form of IDN hostnames as key in the connection cache.  Add
-  new tests.
-  
-  Closes #592
+- cmake: add CURL_WERROR for enabling "warning as errors"
 
-- tests: mark IPv6 FTP and FTPS tests with the FTP keyword
+- [Hannes Magnusson brought this change]
 
-Jay Satiro (7 Jan 2016)
-- mbedtls: Fix ALPN support
+  cmake: remove spurious "-l" from linker flags
   
-  - Fix ALPN reply detection.
-  
-  - Wrap nghttp2 code in ifdef USE_NGHTTP2.
-  
-  
-  Prior to this change ALPN and HTTP/2 did not work properly in mbedTLS.
+  Fixes #1552
 
-- http2: Fix client write for trailers on stream close
-  
-  Check that the trailer buffer exists before attempting a client write
-  for trailers on stream close.
+- test506: skip if threaded-resolver
+
+- runtests: support "threaded-resolver" as a feature
   
-  Refer to comments in https://github.com/bagder/curl/pull/564
+  ... to let tests require it or skip if present
 
-Daniel Stenberg (7 Jan 2016)
-- COPYING: update general copyright year range
+- asyn-thread.c: fix unused variable warnings on macOS
 
-- ConnectionExists: add missing newline in infof() call
+- http: s/TINY_INITIAL_POST_SIZE/EXPECT_100_THRESHOLD
   
-  Mistake from commit a464f33843ee1
+  Make the name reflect its use better, and add a short comment describing
+  what it's for.
 
-- multiplex: allow only once HTTP/2 is actually used
+- cmake: if inet_pton is used, bump _WIN32_WINNT
   
-  To make sure curl doesn't allow multiplexing before a connection is
-  upgraded to HTTP/2 (like when Upgrade: h2c fails), we must make sure the
-  connection uses HTTP/2 as well and not only check what's wanted.
+  ... and make sure inet_pton is always checked for when *not* using Windows,
+  which is a regression from 4fc6ebe18.
   
-  Closes #584
+  Idea-by: Sergei Nikulov
+
+- select.h: avoid macro redefinition harder
   
-  Patch-by: c0ff
+  ... by checking the POLLIN define, as the header file checks don't work
+  on Windows.
 
-Jay Satiro (4 Jan 2016)
-- curl_global_init.3: Add Windows-specific info for init via DLL
+- inet_pton: fix include on windows to get prototype
   
-  - Add to both curl_global_init.3 and libcurl.3 the caveat for Windows
-  that initializing libcurl via a DLL's DllMain or static initializer
-  could cause a deadlock.
+  inet_pton() exists on Windows and gets used by our cmake builds. Make
+  sure the correct header file is included to avoid compiler warnings.
   
-  Bug: https://github.com/bagder/curl/issues/586
-  Reported-by: marc-groundctl@users.noreply.github.com
+  Closes #1639
 
-Daniel Stenberg (4 Jan 2016)
-- FAQ: clarify who to mail about ECCN clarifications
-
-- progressfunc.c: spellfix description
+- TODO: 1.10 auto-detect proxy
+  
+  Closes #1572
 
-- docs/examples/multi-app.c: fix bad desc formatting
+- TODO: HTTP proxy CONNECT is non-blocking now
 
-- examples: added descriptions
+- cmake: fix send/recv argument scanner for windows
+  
+  ... by simply trying the Windows argument types first.
+  
+  Fixes #1640
 
-- example/simple.c: add description
+- RELEASE-NOTES: synced with 596cfb6c0
 
-- getredirect.c: a new example
+- [Gisle Vanem brought this change]
 
-Marc Hoersken (27 Dec 2015)
-- RELEASE-NOTES: add 5e0e81a9c4e35f04ca
+  smb: add support for CURLOPT_FILETIME
+  
+  Bug: https://curl.haxx.se/mail/lib-2017-07/0005.html
+  
+  Closes #1643
 
-Daniel Stenberg (26 Dec 2015)
-- RELEASE-NOTES: synced with 2aec4359db1088b10d
+- travis: install nghttp2 on linux builds
+  
+  Closes #1642
 
-Marc Hoersken (26 Dec 2015)
-- test 1515: add data check
+- [Gisle Vanem brought this change]
 
-- test 1515: add MSYS support by passing a relative path
+  smb: fix build for djgpp/MSDOS
   
-  MSYS would otherwise turn a /-style path into a C:\-style path.
+  bug: https://curl.haxx.se/mail/lib-2017-07/0005.html
 
-- test 539: use datacheck mode text for ASCII-mode LISTings
+- configure: try ldap/lber in reversed order first
   
-  While still using datacheck mode binary for the inline reply data.
-
-- runtests.pl: check up to 5 data parts with different text modes
+  When scanning for which LDAP libraries to use, try the -lldap -llber
+  combination before the reversed order since it has a greater chance of
+  working when linking with libcurl statically.
   
-  Move the text-mode conversion for reply/replycheck from the verify
-  section into the load section and add support for 4 more check parts.
+  Fixes #1619
+  Closes #1634
+  Reported-by: David E. Narváez
 
-Daniel Stenberg (24 Dec 2015)
-- CURLOPT_RANGE: for HTTP servers, range support is optional
-
-Marc Hoersken (24 Dec 2015)
-- tests 1048 and 1050: use datacheck mode text for ASCII-mode LISTings
+- configure: remove checks for 5 functions never used
+  
+  fork, getprotobyname, inet_addr, perror, uname
+  
+  closes #1638
 
-- tests 706 and 707: use datacheck mode text for ASCII-mode LISTings
+- dist: add SMB python deps into the tarball
 
-- tests 400,403,406: use datacheck mode text for ASCII-mode LISTings
+- [Max Dymond brought this change]
 
-- sockfilt.c: fix calculation of sleep timeout on Windows
+  test1451: add SMB support to the testbed
   
-  Not converting to double caused small timeouts to be skipped.
-
-- tests first.c: fix calculation of sleep timeout on Windows
+  Add test 1451 which does some very basic SMB testing using the impacket
+  SMB server.
   
-  Not converting to double caused small timeouts to be skipped.
+  Closes #1630
 
-- test 573: add more debug output
+- [Max Dymond brought this change]
 
-- ftplistparser.c: fix handling of file LISTings using Windows EOL
+  test: add impacket for SMB testing
   
-  Previously file.txt[CR][LF] would have been returned as file.tx
-  (without the last t) if filetype is symlink. Now the t is
-  included and the internal item_length includes the zero byte.
+  Import impacket 0.9.15 for use in SMB testing. This was generated by
+  doing "pip2.7 install -t . impacket"
   
-  Spotted using test 576 on Windows.
+  Unnecessary files for current testing were deleted.
 
-- test 16: fix on Linux (and Windows) by using plain ASCII characters
+- travis.yml: use --enable-werror on debug builds
   
-  Follow up on b064ff0c351bb287557228575ef4c1d079b866fb, thanks Daniel.
-
-- tftpd server: add Windows support by writing files in binary mode
+  ... to better detect and fault on compiler warnings/errors
+  
+  Closes #1637
 
-- tests 252-255: use datacheck mode text for ASCII-mode LISTings
+- tool_sleep: typecast to avoid macos compiler warning
+  
+  tool_sleep.c:54:24: error: implicit conversion loses integer precision:
+  'long' to '__darwin_suseconds_t' (aka 'int')
+  [-Werror,-Wshorten-64-to-32]
 
-- test 16: fix on Windows by converting data file from ANSI to UTF-8
+- [Martin Kepplinger brought this change]
 
-Daniel Stenberg (23 Dec 2015)
-- Makefile.inc: s/curl_SOURCES/CURL_FILES
+  timeval.c: Use long long constant type for timeval assignment
   
-  This allows the root Makefile.am to include the Makefile.inc without
-  causing automake to warn on it (variables named *_SOURCES are
-  magic). curl_SOURCES is then instead assigned properly in
-  src/Makefile.am only.
+  On a 64 bit host, sparse says:
   
-  Closes #577
-
-- [Anders Bakken brought this change]
-
-  ConnectionExists: with *PIPEWAIT, wait for connections
+  timeval.c:148:15: warning: constant 0x7fffffffffffffff is so big it is long
+  timeval.c:149:12: warning: constant 0x7fffffffffffffff is so big it is long
   
-  Try harder to prevent libcurl from opening up an additional socket when
-  CURLOPT_PIPEWAIT is set. Accomplished by letting ongoing TCP and TLS
-  handshakes complete first before the decision is made.
+  so let's use long long constant types in order to prevent undesired overflow
+  failures.
   
-  Closes #575
-
-- [Anders Bakken brought this change]
+  Bug: https://curl.haxx.se/mail/lib-2017-07/0003.html
+  
+  Closes #1636
+  
+  Signed-off-by: Martin Kepplinger <martink@posteo.de>
 
-  Add .dir-locals and set c-basic-offset to 2.
+- url: make the original string get used on subsequent transfers
   
-  This makes it easier for emacs users to automatically get the right
-  2-space indentation when they edit curl source files.
+  ... since CURLOPT_URL should follow the same rules as other options:
+  they remain set until changed or cleared.
   
-  c++-mode is in there as well because Emacs can't easily know if
-  something is a C or C++ header.
+  Added test 1551 to verify.
   
-  Closes #574
+  Fixes #1631
+  Closes #1632
+  Reported-by: Pavel Rochnyak
 
 - [Johannes Schindelin brought this change]
 
-  configure: detect IPv6 support on Windows
+  gtls: fix build when sizeof(long) < sizeof(void *)
   
-  This patch was "nicked" from the MINGW-packages project by Daniel.
+  - Change gnutls pointer/int macros to pointer/curl_socket_t.
+    Prior to this change they used long type as well.
   
-  https://github.com/Alexpux/MINGW-packages/commit/9253d0bf58a1486e91f7efb5316e7fdb48fa4007
-  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
-
-- configure: allow static builds on mingw
+  The size of the `long` data type can be shorter than that of pointer
+  types. This is the case most notably on Windows.
   
-  This patch is adopted from the MINGW-packages project. It makes it
-  possible to build curl both shared and static again.
+  If C99 were acceptable, we could simply use `intptr_t` here. But we
+  want to retain C89 compatibility.
   
-  URL: https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-curl
-
-Marc Hoersken (17 Dec 2015)
-- test 1326: fix file check since curl is outputting binary data
-
-- test 1326: fix getting stuck on Windows due to incomplete request
+  Simply use the trick of performing pointer arithmetic with the NULL
+  pointer: to convert an integer `i` to a pointer, simply take the
+  address of the `i`th element of a hypothetical character array
+  starting at address NULL. To convert back, simply cast the pointer
+  difference.
   
-  The request needs to be read and send in binary mode in order to use
-  CRLF instead of LF. Adding --upload-file - causes curl to read stdin
-  in binary mode.
-
-Daniel Stenberg (17 Dec 2015)
-- RELEASE-NOTES: command line option recount
+  Thanks to Jay Satiro for the initial modification to use curl_socket_t
+  instead of int/long.
+  
+  Closes #1617
+  
+  Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
 
-Dan Fandrich (16 Dec 2015)
-- scripts/Makefile: build zsh script even in an out-of-tree build
+- [Ryan Winograd brought this change]
 
-Marc Hoersken (16 Dec 2015)
-- sockfilt.c: added some debug output to select_ws
+  unit1399: fix integer overflow
+  
+  Bug: #1616
+  Closes #1633
 
-- sockfilt.c: keep lines shorter than 80 chars
+- [Per Malmberg brought this change]
 
-- sockfilt.c: do not wait on unreliable file or pipe handle
+  cmake: Added compatibility options for older Windows versions
   
-  The previous implementation caused issues on modern MSYS2 runtimes.
-
-Daniel Stenberg (16 Dec 2015)
-- cyassl: deal with lack of *get_peer_certificate
+  CURL_STATIC_CRT and ENABLE_INET_PTON
   
-  The function is only present in wolfssl/cyassl if it was built with
-  --enable-opensslextra. With these checks added, pinning support is disabled
-  unless the TLS lib has that function available.
+  Closes #1621
+
+- unit1399: add logging to time comparison
   
-  Also fix the mistake in configure that checks for the wrong lib name.
+  ... to enable tracking down why autobuilds fail on this
   
-  Closes #566
+  Bug: #1616
 
-- wolfssl: handle builds without SSLv3 support
+- make: build the docs subdir only from within src
+  
+  ... and don't build at all in include
+  
+  Prompted-by-work-by: Simon Warta
+  Ref: #1590
+  Closes #1591
 
-- [Tatsuhiro Tsujikawa brought this change]
+- [Max Dymond brought this change]
 
-  http2: Support trailer fields
+  test1450: fix up DICT server in torture mode
   
-  This commit adds trailer support in HTTP/2.  In HTTP/1.1, chunked
-  encoding must be used to send trialer fields.  HTTP/2 deprecated any
-  trandfer-encoding, including chunked.  But trailer fields are now
-  always available.
-  
-  Since trailer fields are relatively rare these days (gRPC uses them
-  extensively though), allocating buffer for trailer fields is done when
-  we detect that HEADERS frame containing trailer fields is started.  We
-  use Curl_add_buffer_* functions to buffer all trailers, just like we
-  do for regular header fields.  And then deliver them when stream is
-  closed.  We have to be careful here so that all data are delivered to
-  upper layer before sending trailers to the application.
+  As per https://github.com/curl/curl/pull/1615, the DICT server is a
+  little spammy in torture mode due to the sockets being torn down
+  unexpectedly. Fix this by adding some error handling to the handling
+  function.
   
-  We can deliver trailer field one by one using NGHTTP2_ERR_PAUSE
-  mechanism, but current method is far more simple.
+  Closes #1629
+
+- [Max Dymond brought this change]
+
+  test1450: add simple testing for DICT
   
-  Another possibility is use chunked encoding internally for HTTP/2
-  traffic.  I have not tested it, but it could add another overhead.
+  Add a new server which provides a DICT interface. This is intended to
+  begin coverage testing for lib/dict.c
   
-  Closes #564
+  Closes #1615
 
-- RELEASE-NOTES: synced with 6c2c019654e658a
+- [Dan Fandrich brought this change]
 
-Jay Satiro (15 Dec 2015)
-- x509asn1: Fix host altname verification
+  test1521: fix out-of-tree builds, broken with 467da3af
   
-  - In Curl_verifyhost check all altnames in the certificate.
+  The test.h file is no longer in the same directory as the source file,
+  so that directory needs to be added to the include path.
   
-  Prior to this change only the first altname was checked. Only the GSKit
-  SSL backend was affected by this bug.
+  Fixes #1627
+  Closes #1628
+
+- [Max Dymond brought this change]
+
+  http2: handle PING frames
   
-  Bug: http://curl.haxx.se/mail/lib-2015-12/0062.html
-  Reported-by: John Kohl
+  Add a connection check function to HTTP2 based off RTSP. This causes
+  PINGs to be handled the next time the connection is reused.
+  
+  Closes #1521
+
+- [Max Dymond brought this change]
 
-Daniel Stenberg (15 Dec 2015)
-- curl --expect100-timeout: added
+  handler: refactor connection checking
   
-  This is the new command line option to set the value for the existing
-  libcurl option CURLOPT_EXPECT_100_TIMEOUT_MS
+  Add a new type of callback to Curl_handler which performs checks on
+  the connection. Alter RTSP so that it uses this callback to do its
+  own check on connection health.
 
-- cyassl: fix compiler warning on type conversion
+- [Dmitry Kostjuchenko brought this change]
 
-- curlver: the pending release will become 7.47.0
+  openssl: improve fallback seed of PRNG with a time based hash
+  
+  Fixes #1620
 
-- [Anders Bakken brought this change]
+- [Ryan Winograd brought this change]
 
-  setstropt: const-correctness
+  progress: prevent resetting t_starttransfer
+  
+  Prevent `Curl_pgrsTime` from modifying `t_starttransfer` when invoked
+  with `TIMER_STARTTRANSFER` more than once during a single request.
+  
+  When a redirect occurs, this is considered a new request and
+  `t_starttransfer` can be updated to reflect the `t_starttransfer` time
+  of the redirect request.
   
-  Closes #565
+  Closes #1616
+  
+  Bug: https://github.com/curl/curl/pull/1602#issuecomment-310267370
 
-- ROADMAP: implemented HTTP2 for HTTPS-only
+- curl_strequal.3: fix typo in SYNOPSIS
+  
+  Reported-by: Jesse Chisholm
+  
+  Fixes #1623
 
-- HTTP2.md: spell fix and remove TODO now implemented
+- RELEASE-NOTES: synced with ce2c3ebda
 
-- libressl: the latest openssl x509 funcs are not in libressl
+Kamil Dudka (28 Jun 2017)
+- curl --socks5-{basic,gssapi}: control socks5 auth
+  
+  Closes https://github.com/curl/curl/pull/1454
 
-- curl: use 2TLS by default
+- CURLOPT_SOCKS5_AUTH: allowed methods for SOCKS5 proxy auth
   
-  Make this the default for the curl tool (if built with HTTP/2 powers
-  enabled) unless a specific HTTP version is requested on the command
-  line.
+  If libcurl was built with GSS-API support, it unconditionally advertised
+  GSS-API authentication while connecting to a SOCKS5 proxy.  This caused
+  problems in environments with improperly configured Kerberos: a stock
+  libcurl failed to connect, despite libcurl built without GSS-API
+  connected fine using username and password.
   
-  This should allow more users to get HTTP/2 powers without having to
-  change anything.
-
-- http: add libcurl option to allow HTTP/2 for HTTPS only
+  This commit introduces the CURLOPT_SOCKS5_AUTH option to control the
+  allowed methods for SOCKS5 authentication at run time.
+  
+  Note that a new option was preferred over reusing CURLOPT_PROXYAUTH
+  for compatibility reasons because the set of authentication methods
+  allowed by default was different for HTTP and SOCKS5 proxies.
   
-  ... and stick to 1.1 for HTTP. This is in line with what browsers do and
-  should have very little risk.
+  Bug: https://curl.haxx.se/mail/lib-2017-01/0005.html
+  Closes https://github.com/curl/curl/pull/1454
 
-- openssl: adapt to openssl >= 1.1.0 X509 opaque structs
+- socks: deduplicate the code for auth request
+
+- socks: use proxy_user instead of proxy_name
   
-  Closes #491
+  ... to make it obvious what the data is used for
 
-- openssl: avoid BIO_reset() warnings since it returns a value
+Daniel Stenberg (27 Jun 2017)
+- libtest/make: generate lib1521.c
+  
+  ... instead of having the generated code checked in. This saves space in
+  the tarball but primarily automatically adapts to newly added options.
+  
+  Closes #1614
 
-- openssl: adapt to 1.1.0+ name changes
+Jay Satiro (26 Jun 2017)
+- tool_getparam: fix memory leak on test 1147 OOM (torture tests)
+  
+  Bug: https://github.com/curl/curl/pull/1486#issuecomment-310926872
+  Reported-by: Dan Fandrich
 
-- scripts/makefile: add standard header
+Dan Fandrich (25 Jun 2017)
+- test1537: fixed memory leak on OOM
 
-- scripts/Makefile: fix GNUism and survive no perl
+Marcel Raad (25 Jun 2017)
+- test1521: fix compiler warnings
   
-  Closes #555
+  The integer literal 3123123123 doesn't fit into a 32-bit signed
+  integer, so GCC with 32-bit long warns in C90 mode:
+  this decimal constant is unsigned only in ISO C90 [enabled by default]
+  Fix this by using ULONG_MAX, which should fit in any curl_off_t and has
+  the correct suffix to not issue any warnings.
+  Also adds the missing CURLOPT_REQUEST_TARGET from commit
+  9b167fd090f596eac828817d48c247eeae53407f.
   
-  Reported-by: Thomas Klausner
+  Closes https://github.com/curl/curl/pull/1611
 
-- fix b6d5cb40d7038fe
+Daniel Stenberg (24 Jun 2017)
+- curl/system.h: add check for XTENSA for 32bit gcc
+  
+  Reported-by: Neil Kolban
+  Fixes: 1598
 
-- [Tatsuhiro Tsujikawa brought this change]
+- [Henrik S. Gaßmann brought this change]
 
-  http2: Fix hanging paused stream
+  winbuild: fix boringssl build
+  
+  Compile with `WIN32_LEAN_AND_MEAN` which prevents `windows.h` from
+  including too much clutter including `wincrypt.h` which in turn contains
+  some preprocessor macros that clash with boringssl symbols.
   
-  When NGHTTP2_ERR_PAUSE is returned from data_source_read_callback, we
-  might not process DATA frame fully.  Calling nghttp2_session_mem_recv()
-  again will continue to process DATA frame, but if there is no incoming
-  frames, then we have to call it again with 0-length data.  Without this,
-  on_stream_close callback will not be called, and stream could be hanged.
+  Detect boringssl by checking the existance of `is_boringssl.h` and set
+  the corresponding `HAVE_BORINGSSL` for compilation which is used in
+  `ldap.c` to undefine the evil macros.
   
-  Bug: http://curl.haxx.se/mail/lib-2015-11/0103.html
-  Reported-by: Francisco Moraes
+  Closes #1610
 
-- [Christian Stewart brought this change]
+- progress: progress.timespent needs to be us
+  
+  follow-up to 64ed44a815e4e to fix test 500 failures
 
-  build: fix compilation error with CURL_DISABLE_VERBOSE_STRINGS
+Marcel Raad (24 Jun 2017)
+- curl-compilers.m4: fix unknown-warning-option on Apple clang
   
-  With curl disable verbose strings in http.c the compilation fails due to
-  the data variable being undefined later on in the function.
+  Since 5598b0bd63f690c151074494ce47ef872f004ab4, clang -v is used to
+  detect the clang version. The version number was expected to come after
+  the word "version". For Apple clang, this doesn't work as it has its
+  own versioning scheme.
+  The version number is now first searched after the string
+  "based on LLVM". This works for Apple clang before version 7, and also
+  for e.g. Ubuntu's clang up to version 3.7. If it's not found and the
+  version string contains "Apple LLVM version", clang version 3.7 is
+  assumed, which is the version that comes with Xcode 7. Otherwise, the
+  version number is still expected after the word "version", which works
+  for very old Apple clang versions.
   
-  Closes #558
+  Ref: https://trac.macports.org/wiki/XcodeVersionInfo
+  Fixes https://github.com/curl/curl/issues/1606
+  Closes https://github.com/curl/curl/pull/1607
 
-Jay Satiro (7 Dec 2015)
-- [Gisle Vanem brought this change]
+Daniel Stenberg (24 Jun 2017)
+- progress: fix "time spent", broke in adef394ac
 
-  config-win32: Fix warning HAVE_WINSOCK2_H undefined
+- CURLINFO_REDIRECT_URL.3: mention the CURLOPT_MAXREDIRS case
+  
+  ... supported since 7.54.1
 
-- [Gisle Vanem brought this change]
+- maketgz: switch to -6e for xz
+  
+  To reduce the memory requirement for decompress, and still do almost as
+  good compression as with -9e.
+  
+  Pointed-out-by: Dan Fandrich
 
-  openssl: BoringSSL doesn't have CONF_modules_free
+- libtest/Makefile: remove unused lib1541 variables
 
-- [Gisle Vanem brought this change]
+- CONTRIBUTE.md: mention the out-of-tree build test too
 
-  lwip: Fix compatibility issues with later versions
+- maketgz: switch to xz instead of lzma
+  
+  The compressed output size seems to be a tad bit smaller, but generally
+  xz seems more preferred these days and is used directly by for example
+  gentoo instead of bz2.
   
-  The name of the header guard in lwIP's <lwip/opt.h> has changed from
-  '__LWIP_OPT_H__' to 'LWIP_HDR_OPT_H' (bug #35874 in May 2015).
+  "Users of LZMA Utils should move to XZ Utils" =>
+  https://tukaani.org/lzma/
   
-  Other fixes:
+  Closes #1604
+
+- --request-target: instead of --strip-path-slash
   
-  - In curl_setup.h, the problem with an old PSDK doesn't apply if lwIP is
-  used.
+  ... and CURLOPT_REQUEST_TARGET instead of CURLOPT_STRIP_PATH_SLASH.
   
-  - In memdebug.h, the 'socket' should be undefined first due to lwIP's
-  lwip_socket() macro.
+  This option instead provides the full "alternative" target to use in the
+  request, instead of extracting the path from the URL.
   
-  - In curl_addrinfo.c lwIP's getaddrinfo() + freeaddrinfo() macros need
-  special handling because they were undef'ed in memdebug.h.
+  Test 1298 and 1299 updated accordingly.
   
-  - In select.c we can't use preprocessor conditionals inside select if
-  MSVC and select is a macro, as it is with lwIP.
+  Idea-by: Evert Pot
+  Suggestion: https://daniel.haxx.se/blog/2017/06/19/options-with-curl/comment-page-1/#comment-18373
   
-  http://curl.haxx.se/mail/lib-2015-12/0023.html
-  http://curl.haxx.se/mail/lib-2015-12/0024.html
-
-Patrick Monnerat (7 Dec 2015)
-- os400: define CURL_VERSION_PSL in ILE/RPG binding
+  Closes #1593
 
-Jay Satiro (7 Dec 2015)
-- [Gisle Vanem brought this change]
+Marcel Raad (21 Jun 2017)
+- lib1521: fix missing-variable-declarations clang warnings
+  
+  Declare TU-local variables static.
 
-  version: Add flag CURL_VERSION_PSL for libpsl
+- travis: enable typecheck-gcc warnings
+  
+  - switch debug and release configurations so that we get an optimized
+    build with GCC 4.3+ as required by typecheck-gcc
+  - enable warnings-as-errors for release builds
+    (which have warnings disabled)
+  
+  Closes https://github.com/curl/curl/pull/1595
 
-- formdata: Check if length is too large for memory
+- typecheck-gcc: add support for CURLINFO_OFF_T
   
-  - If the size of the length type (curl_off_t) is greater than the size
-  of the size_t type then check before allocating memory to make sure the
-  value of length will fit in a size_t without overflow. If it doesn't
-  then return CURLE_BAD_FUNCTION_ARGUMENT.
+  typecheck-gcc expected curl_socket_t instead of curl_off_t arguments
+  for CURLINFO_OFF_T. Detected by test1521, unfortunately only when run
+  locally.
   
-  Bug: https://github.com/bagder/curl/issues/425#issuecomment-154518679
-  Reported-by: Steve Holme
+  Closes https://github.com/curl/curl/pull/1592
+
+Daniel Stenberg (21 Jun 2017)
+- [Simon Warta brought this change]
 
-Steve Holme (3 Dec 2015)
-- tests: Corrected copy and pasted comments from commit e643c5c908
+  ci: whitelist branches to avoid testing feature branches twice
 
-Daniel Stenberg (3 Dec 2015)
-- curl: remove keepalive #ifdef checks done on libcurl's behalf
+- [Gisle Vanem brought this change]
+
+  lib: fix the djgpp build
+  
+  Bug: https://github.com/curl/curl/commit/73a2fcea0b4adea6ba342cd7ed1149782c214ae3#commitcomment-22655993
+
+Marcel Raad (20 Jun 2017)
+- if2ip: fix compiler warning in ISO C90 mode
   
-  They didn't match the ifdef logic used within libcurl anyway so they
-  could indeed warn for the wrong case - plus the tool cannot know how the
-  lib actually performs at that level.
+  remote_scope_id is only used when both HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
+  and ENABLE_IPV6 are defined instead of only one of them.
 
-Steve Holme (2 Dec 2015)
-- test947: Corrected typo in test name
+Daniel Stenberg (20 Jun 2017)
+- travis: do the distcheck test build out-of-tree as well
 
-- tests: Disable the OAUTHBEARER tests when using a non-default port number
+- http: add --strip-path-slash and CURLOPT_STRIP_PATH_SLASH
   
-  Tests 842, 843, 844, 845, 887, 888, 889, 890, 946, 947, 948 and 949 fail
-  if a custom port number is specified via the -b option of runtests.pl.
+  ... to enable sending "OPTIONS *" which wasn't possible previously.
   
-  Suggested by: Kamil Dudka
-  Bug: http://curl.haxx.se/mail/lib-2015-12/0003.html
+  This option currently only works for HTTP.
+  
+  Added test cases 1298 + 1299 to verify
+  
+  Fixes #1280
+  Closes #1462
 
-Daniel Stenberg (2 Dec 2015)
-- bump: towards next release
+- test1521: test getinfo's OFF_T types too
   
-  for all we know now, it might be called 7.46.1
+  Closes #1588
 
-Version 7.46.0 (1 Dec 2015)
+- lib1521: add curl_easy_getinfo calls to the test set
+  
+  Also added return value checks to make sure no unexpected return codes
+  are used.
 
-Daniel Stenberg (1 Dec 2015)
-- RELEASE-NOTES: updated contributor count for 7.46.0
+- [Simon Warta brought this change]
 
-- THANKS: new contributors from the 7.46.0 release
+  automake: use $(MKHELP) variable instead if constant mkhelp.pl
+  
+  this improves symmetry with the rule above
 
-- THANKS-filter: single Tim Rühsen spelling
+- [Simon Warta brought this change]
 
-- docs/examples: gitignore some more built examples
+  mkhelp.pl: fix script name in usage text
 
-- RELEASE-NOTES; this bug was never released
+- RELEASE-NOTES: synced with 3b80d3ca4
 
-- RELEASE-NOTES: synced with e55f15454efacb0
+- getinfo: return sizes as curl_off_t
+  
+  This change introduces new alternatives for the existing six
+  curl_easy_getinfo() options that return sizes or speeds as doubles. The
+  new versions are named like the old ones but with an appended '_T':
+  
+  CURLINFO_CONTENT_LENGTH_DOWNLOAD_T
+  CURLINFO_CONTENT_LENGTH_UPLOAD_T
+  CURLINFO_SIZE_DOWNLOAD_T
+  CURLINFO_SIZE_UPLOAD_T
+  CURLINFO_SPEED_DOWNLOAD_T
+  CURLINFO_SPEED_UPLOAD_T
+  
+  Closes #1511
 
-- [Flavio Medeiros brought this change]
+- PIPELINING_SERVER_BL: cleanup the internal list use
+  
+  The list was freed incorrectly since the llist refactor of
+  cbae73e1dd959. Added test 1550 to verify that it works and avoid future
+  regressions.
+  
+  Reported-by: Pascal Terjan
+  
+  Fixes #1584
+  Closes #1585
 
-  Curl_read_plain: clean up ifdefs that break statements
+- http2: fix OOM crash
   
-  Closes #546
+  torture mode with test 1021 found it
 
-- http2: convert some verbose output into debug-only output
+- CURLOPT_PREQUOTE.3: spellfix man page reference
 
-- http2 push: add missing inits of new stream
+Marcel Raad (18 Jun 2017)
+- http_proxy: fix build with http and proxy
   
-  - set the correct stream_id for pushed streams
-  - init maxdownload and size properly
+  After deff7de0eb0e22d2d142b96b9cc84cd8db5d2a48, the build without
+  CURL_DISABLE_PROXY and CURL_DISABLE_HTTP was failing because of missing
+  includes.
 
-- http2 push: set weight for new stream
+- http_proxy: fix compiler warning
   
-  give the new stream the old one's stream_weight internally to avoid
-  sending a PRIORITY frame unless asked for it
+  With CURL_DISABLE_PROXY or CURL_DISABLE_HTTP, GCC complained about a
+  missing prototype for Curl_connect_free.
 
-- curl_setup.h: undef freeaddrinfo in c-ares block to fix build
-  
-  Fixes warnings 78c25c854a added.
+Daniel Stenberg (18 Jun 2017)
+- TODO: update the TOC too
 
-- nonblock: fix setting non-blocking mode for Amiga
+- TODO: implement support for CURLOPT_PREQUOTE with SFTP
   
-  IoctlSocket() apparently wants a pointer to a long, passed as a char *
-  in its third parameter. This bug was introduced already back in commit
-  c5fdeef41d from October 1 2001!
+  ... also updated the CURLOPT_PREQUOTE.3 man page to mention the correct
+  protocol support.
   
-  Bug: http://curl.haxx.se/mail/lib-2015-11/0088.html
-  Reported-by: Norbert Kett
+  Closes #1514
 
-- zsh install: fix DESTDIR support
+- tool_wrte_cb: remove check for config == NULL
   
-  Reported-by: Mohammad AlSaleh
-
-Dan Fandrich (27 Nov 2015)
-- lib: Only define curl_dofreeaddrinfo if struct addrinfo is available
-
-Steve Holme (27 Nov 2015)
-- tool_paramhlp: Fixed display of URL index in password prompt for --next
+  ... as it really cannot have reached this far with config being NULL,
+  thus this is unnecesary and misleading.
+  
+  Bug: https://news.ycombinator.com/item?id=14577585 and
+  https://daniel.haxx.se/blog/2017/06/17/curl-doesnt-spew-binary-anymore/comment-page-1/#comment-18356
   
-  Commit f3bae6ed73 added the URL index to the password prompt when using
-  --next. Unfortunately, because the size_t specifier (%zu) is not
-  supported by all sprintf() implementations we use the curl_off_t format
-  specifier instead. The display of an incorrect value arises on platforms
-  where size_t and curl_off_t are of a different size.
+  Forwarded-to-us-by: Jakub Wilk
 
-Daniel Stenberg (25 Nov 2015)
-- timecond: do not add if-modified-since without timecondition
+- curl: prevent binary output spewed to terminal
   
-  The RTSP code path didn't skip adding the if-modified-since for certain
-  RTSP code paths, even if CURLOPT_TIMECONDITION was set to
-  CURL_TIMECOND_NONE.
+  ... unless "--output -" is used. Binary detection is done by simply
+  checking for a binary zero in early data.
   
-  Also, an unknown non-zero CURLOPT_TIMECONDITION value no longer equals
-  CURL_TIMECOND_IFMODSINCE.
+  Added test 1425 1426 to verify.
   
-  Bug: http://stackoverflow.com/questions/33903982/curl-timecond-none-doesnt-work-how-to-remove-if-modified-since-header
+  Closes #1512
 
-- RELEASE-NOTES: synced with 99d17a5e2ba77e58
-
-- examples/README: cut out the incomplete list
+Marcel Raad (16 Jun 2017)
+- Makefile.m32: enable -W for MinGW32 build
   
-  ... and add a generic explanation for them instead. Each example file
-  should contain its own description these days.
-
-- test1513: make sure the callback is only called once
-
-- [Daniel Shahaf brought this change]
-
-  build: Install zsh completion
+  The configure-based build also has this in addition to -Wall.
   
-  Fixes #534
-  Closes #537
+  Closes https://github.com/curl/curl/pull/1578
 
-- done: make sure the final progress update is made
+- curl-compilers.m4: enable comma clang warning
   
-  It would previously be skipped if an existing error was returned, but
-  would lead to a previous value being left there and later used.
-  CURLINFO_TOTAL_TIME for example.
+  It usually warns when using commas instead of semicolons or other
+  operators by accident.
   
-  Still it avoids that final progress update if we reached DONE as the
-  result of a callback abort to avoid another callback to be called after
-  an abort-by-callback.
+  Closes https://github.com/curl/curl/pull/1578
+
+- curl-compilers.m4: enable missing-variable-declarations clang warning
   
-  Reported-by: Lukas Ruzicka
+  It usually warns when forgetting to declare TU-local variables static.
   
-  Closes #538
+  Closes https://github.com/curl/curl/pull/1578
 
-- curl: expanded the -XHEAD warning text
+- curl-compilers.m4: enable double-promotion warning
+  
+  Enable -Wdouble-promotion for both GCC and clang. It warns on implicit
+  promotion from float to double.
   
-  ... to also mention the specific options used.
+  Closes https://github.com/curl/curl/pull/1578
 
-- Revert "cleanup: general removal of TODO (and similar) comments"
+- curl-compilers.m4: enable vla warning for clang
   
-  This reverts commit 64e959ffe37c436503f9fed1ce2d6ee6ae50bd9a.
+  Previously, that warning was only implicitly active in C90 mode.
+  Enable it unconditionally as already done for GCC.
   
-  Feedback-by: Dan Fandrich
-  URL: http://curl.haxx.se/mail/lib-2015-11/0062.html
+  Closes https://github.com/curl/curl/pull/1578
 
-- CURLOPT_HEADERFUNCTION.3: fix typo
+Daniel Stenberg (16 Jun 2017)
+- http-proxy: fix chunked-encoded CONNECT responses
   
-  Refer to _HEADERDATA not _WRITEDATA.
+  Regression since 5113ad0424.
   
-  Reported-by: Michał Piechowski
+  ... and remove 'flaky' from test 1061 again
+  
+  Closes #1579
 
-- TODO: TCP Fast Open
+- http-proxy: deal with EAGAIN
+  
+  ... the previous code would reset the header length wrongly (since
+  5113ad0424). This makes test 1060 reliable again.
+  
+  Also: make sws send even smaller chunks of data to increase the
+  likeliness of this happening.
 
-Steve Holme (22 Nov 2015)
-- examples: Added website parse-able descriptions to the e-mail examples
+- libtest/libntlmconnect: fix compiler warnings from f94fcdb
 
-- TODO: Added another 'multi-interface' idea
+- [Jay Satiro brought this change]
 
-- smb.c: Fixed compilation warnings
+  HTTPS-Proxy: don't offer h2 for https proxy connections
   
-  smb.c:134:3: warning: conversion to 'short unsigned int' from 'int' may
-               alter its value
-  smb.c:146:42: warning: conversion to 'unsigned int' from 'long long
-                unsigned int' may alter its value
-  smb.c:146:65: warning: conversion to 'unsigned int' from 'long long
-                unsigned int' may alter its value
-
-- schannel: Corrected copy/paste error in commit 8d17117683
-
-- schannel: Use GetVersionEx() when VerifyVersionInfo() isn't available
+  Bug: https://github.com/curl/curl/issues/1254
   
-  Regression from commit 7a8e861a5 as highlighted in the msys autobuilds.
+  Closes #1546
 
-- examples: Fixed compilation warnings
+- tests: stabilize test 2032 and 2033
   
-  pop3-multi.c:96:5: warning: implicit declaration of function 'memset'
-  imap-multi.c:96:5: warning: implicit declaration of function 'memset'
-  http2-download.c:226:5: warning: implicit declaration of function 'memset'
-  http2-upload.c:290:5: warning: implicit declaration of function 'memset'
-  http2-upload.c:290:5: warning: implicit declaration of function 'memset'
-
-- Makefile.inc: Fixed test run error
+  Both these tests run the same underlying test code: libntlmconnect.c -
+  this test code made some assumptions about socket ordering when it used
+  curl_easy_fdset() and when we changed timing or got accidental changes
+  in libcurl the tests would fail.
+  
+  The tests verify that the different transfers keep using the same
+  connections, which I now instead made sure by adding the number of bytes
+  each transfer gets and then verifies that they always get the same
+  amount as when these tests worked.
   
-  test845 not present in tests/data/Makefile.inc
+  Closes #1576
 
-Daniel Stenberg (20 Nov 2015)
-- TODO: remove duplicated title
+- test1148: verify the -# progressbar
+  
+  Closes #1569
 
-- TODO: added two more libcurl ideas
+- test1061: mark as flaky
   
-  Moved some ideas from "next major" to just ordinary ideas since we can
-  always add new things while keeping the old without doing a "next
-  major".
+  Fails intermittently on travis builds since a few days. Likely due to
+  5113ad0424.
 
-Steve Holme (20 Nov 2015)
-- tests: Re-enabled tests 889 and 890 following POP3 fix
+Jay Satiro (16 Jun 2017)
+- url: refactor the check for Windows drive letter in path
+  
+  - Move the logic to detect a Windows drive letter prefix
+    (eg c: in c:foo) into a function-like macro.
+  
+  Closes https://github.com/curl/curl/pull/1571
 
-- pop3: Differentiate between success and continuation responses
+- mk-ca-bundle.pl: Check curl's exit code after certdata download
+  
+  - No longer allow partial downloads of certdata.
+  
+  Prior to this change partial downloads were (erroneously?) allowed since
+  only the server code was checked to be 200.
+  
+  Bug: https://github.com/curl/curl/pull/1577
+  Reported-by: Matteo B.
 
-- pop3: Added clarity on some server response codes
+Daniel Stenberg (16 Jun 2017)
+- dist: add the fuzz dir to the tarball
 
-Daniel Stenberg (20 Nov 2015)
-- [Daniel Shahaf brought this change]
+- configure: disable nghttp2 too if HTTP has been disabled
 
-  build: Fix theoretical infinite loops
+- http-proxy: fix build with --disable-proxy or --disable-http
   
-  Add error-checking to 'cd' in a few cases where omitting the checks
-  might result in an infinite loop.
+  Reported-by: Dan Fandrich
+
+- fuzz/README: document how to build
   
-  Closes #535
+  Fixes #1476
 
-Patrick Monnerat (19 Nov 2015)
-- curl.h: s/#defien/#define/
+- [Frederik B brought this change]
 
-- os400: synchronize ILE/RPG header file
+  fuzz: corpora file structure, initial commit
 
-- os400: Provide options for libssh2 use in compile scripts. Adjust README.
+- [Frederik B brought this change]
 
-Daniel Stenberg (19 Nov 2015)
-- [danielsh@apache.org brought this change]
+  fuzz: bring oss-fuzz initial code converted to C89
 
-  zsh completion: Preserve single quotes in output
+- http-proxy: only attempt FTP over HTTP proxy
   
-  When an option's help string contains literal single quotes, those
-  single quotes would be stripped from the option's description in the
-  completion output (unless the zsh RC_QUOTES option were set while the
-  completion function was being sourced, which is not the default).  This
-  patch makes the completion output contain single quotes where the --help
-  output does.
+  ... all other non-HTTP protocol schemes are now defaulting to "tunnel
+  trough" mode if a HTTP proxy is specified. In reality there are no HTTP
+  proxies out there that allow those other schemes.
   
-  Closes #532
-
-Jay Satiro (18 Nov 2015)
-- [MaxGiting brought this change]
+  Assisted-by: Ray Satiro, Michael Kaufmann
+  
+  Closes #1505
 
-  FAQ: Grammar changes
+- TODO: the generated include file is gone
   
-  Closes https://github.com/bagder/curl/pull/533
+  ... since commit 73a2fcea0b
 
-Daniel Stenberg (17 Nov 2015)
-- http2: http_done: don't free already-freed push headers
+- curl_setup.h: error out on CURL_WANTS_CA_BUNDLE_ENV use
   
-  The push headers are freed after the push callback has been invoked,
-  meaning this code should only free the headers if the callback was never
-  invoked and thus the headers weren't freed at that time.
+  ... to make it really apparent if there's any user using this on purpose.
   
-  Reported-by: Davey Shafik
-
-- [Anders Bakken brought this change]
-
-  getconnectinfo: Don't call recv(2) if socket == -1
+  Suggested-by: Jay Satiro
   
-  Closes #528
+  Closes #1542
 
-- CURLMOPT_PUSHFUNCTION.3: *_byname() returns only the first header
+- lib/curl_setup.h: remove CURL_WANTS_CA_BUNDLE_ENV
   
-  ... if there are more than one using the same name
-
-- http2: minor comment typo
-
-- sasl; fix checksrc warnings
+  When this define was set, libcurl would check the environment variable
+  named CURL_CA_BUNDLE at run-time and use that CA cert bundle. This
+  feature was only defined by the watcom and m32 makefiles and caused
+  inconsistent behaviours among libcurls built on different platforms.
+  
+  The curl tool does already feature its own similar logic and the library
+  does not really need it, and it isn't documented libcurl behavior. So
+  this change removes it.
+  
+  Ref: #1538
 
-Steve Holme (15 Nov 2015)
-- RELEASE-NOTES: Adjusted for the recent OAuth 2.0 activity
+- test1147: verify -H on a file
 
-- tests: Disabled 889 and 890 until we support POP3 continuation responses
+- curl: allow --header and --proxy-header read from file
   
-  As POP3 final and continuation responses both begin with a + character,
-  and both the finalcode and contcode variables in SASLprotoc are set as
-  such, we cannot tell the difference between them when we are expecting
-  an optional continuation from the server such as the following:
+  So many headers can be provided as @filename.
   
-  + something else from the server
-  +OK final response
+  Suggested-by: Timothe Litt
   
-  Disabled these tests until such a time we can tell the responses apart.
+  Closes #1486
 
-- tests: Corrected typos from commit ba4d8f7eba
+- RELEASE-NOTES: synced with 2ad80eec5
 
-- tests: Added OAUTHBEARER failure response tests
+- curl/curlver.h: start working on 7.55.0
 
-- oauth2: Support OAUTHBEARER failures sent as continuation responses
+- http-proxy: do the HTTP CONNECT process entirely non-blocking
   
-  According to RFC7628 a failure message may be sent by the server in a
-  base64 encoded JSON string as a continuation response.
+  Mentioned as a problem since 2007 (8f87c15bdac63) and of course it
+  existed even before that.
   
-  Currently only implemented for OAUTHBEARER and not XAUTH2.
-
-Daniel Stenberg (15 Nov 2015)
-- RELEASE-NOTES: synced with 808a17ee675
+  Closes #1547
 
-Steve Holme (14 Nov 2015)
-- tests: Renamed existing OAuth 2.0 (XOAUTH) tests
-
-- tests: Added OAuth 2.0 (OAUTHBEARER) tests
-
-- oauth2: Added support for OAUTHBEARER SASL mechanism to IMAP, POP3 and SNMP
+- progress: let "current speed" be UL + DL speeds combined
   
-  OAUTHBEARER is now the official "registered" SASL mechanism name for
-  OAuth 2.0. However, we don't want to drop support for XOAUTH2 as some
-  servers won't support the new mechanism yet.
+  Bug #1556
+  Reported-by: Paul Harris
+  Closes #1559
 
-Daniel Stenberg (13 Nov 2015)
-- RELEASE-NOTES: recounted curl_easy_setopt() options
+Marcel Raad (14 Jun 2017)
+- system.h: fix MinGW build
+  
+  CURLSYS_PULL_WS2TCPIP_H got renamed to CURL_PULL_WS2TCPIP_H in commit
+  73a2fcea0b4adea6ba342cd7ed1149782c214ae3.
 
-- typecheck-gcc.h: add missing slist-using options
+Daniel Stenberg (14 Jun 2017)
+- timers: store internal time stamps as time_t instead of doubles
   
-  CURLOPT_RESOLVE and CURLOPT_PROXYHEADER were missing
+  This gives us accurate precision and it allows us to avoid storing "no
+  time" for systems with too low timer resolution as we then bump the time
+  up to 1 microsecond. Should fix test 573 on windows.
   
-  Also sorted the list.
-
-- typecheck-gcc.h: added CURLOPT_CLOSESOCKETDATA
+  Remove the now unused curlx_tvdiff_secs() function.
   
-  ... and sorted curl_is_cb_data_option alphabetically
-
-Jay Satiro (13 Nov 2015)
-- [Sebastian Pohlschmidt brought this change]
+  Maintains the external getinfo() API with using doubles.
+  
+  Fixes #1531
 
-  openssl: Free modules on cleanup
+- dist: make the hugehelp.c not get regenerated unnecessarily
   
-  Curl_ossl_init calls OPENSSL_load_builtin_modules() but
-  Curl_ossl_cleanup doesn't make a call to free these modules.
+  The maketgz script now makes sure the generated hugehelp.c file in the
+  tarball is newer than the generated curl.1 man page, so that it doesn't
+  have to get unnecessarily rebuilt first thing in a typical build. It
+  thus also removes the need for perl to build off a plain release
+  tarball.
   
-  Bug: https://github.com/bagder/curl/issues/526
+  Fixes #1565
 
-Steve Holme (13 Nov 2015)
-- symbols-in-versions: Added new CURLOPTTYPE_STRINGPOINT alias
+- includes: remove curl/curlbuild.h and curl/curlrules.h
   
-  ...following commit aba281e762 to fix test 1119.
-
-Daniel Stenberg (13 Nov 2015)
-- curl: mark two more options strings for --libcurl output
-
-- typecheck-gcc.h: add some missing string types
+  Rely entirely on curl/system.h now.
   
-  Also sorted that list alphabetically
-
-- curl.h: introducing the STRINGPOINT alias
+  Introduced in Aug 2008 with commit 14240e9e109f. Now gone.
   
-  As an alias for OBJECTPOINT. Provided to allow us to grep for all string
-  options easier.
+  Fixes #1456
 
-- cleanup: general removal of TODO (and similar) comments
-  
-  They tend to never get updated anyway so they're frequently inaccurate
-  and we never go back to revisit them anyway. We document issues to work
-  on properly in KNOWN_BUGS and TODO instead.
+Version 7.54.1 (14 Jun 2017)
 
-- ftplistparser: remove empty function
+Daniel Stenberg (14 Jun 2017)
+- release: 7.54.1
 
-- openssl: remove #if check for 0.9.7 for ENGINE_load_private_key
+Dan Fandrich (13 Jun 2017)
+- mk-lib1521.pl: updated to match the test changes in 916ec30a
 
-- openssl: all supported versions have X509_STORE_set_flags
+Daniel Stenberg (13 Jun 2017)
+- [Stuart Henderson brought this change]
+
+  libressl: OCSP and intermediate certs workaround no longer needed
+  
+  lib/vtls/openssl.c has a workaround for a bug with OCSP responses signed
+  by intermediate certs, this was fixed in LibreSSL in
+  https://github.com/libressl-portable/openbsd/commit/912c64f68f7ac4f225b7d1fdc8fbd43168912ba0
   
-  Simplify by removing #ifdefs and macros
+  Bug: https://curl.haxx.se/mail/lib-2017-06/0038.html
 
-- openssl: remove 0.9.3 check
+- url: fix buffer overwrite with file protocol (CVE-2017-9502)
+  
+  Bug: https://github.com/curl/curl/issues/1540
+  Advisory: https://curl.haxx.se/docs/adv_20170614.html
+  
+  Assisted-by: Ray Satiro
+  Reported-by: Marcel Raad
 
-- openssl: remove #ifdefs for < 0.9.5 support
+- urlglob: fix division by zero
   
-  We only support >= 0.9.7
+  The multiply() function that is used to avoid integer overflows, was
+  itself reason for a possible division by zero error when passed a
+  specially formatted glob.
+  
+  Reported-by: GwanYeong Kim
+
+- configure: update the copyright year in the output
 
-- lib/vtls/openssl: remove unused traces of yassl ifdefs
+- [ygrek brought this change]
 
-Dan Fandrich (12 Nov 2015)
-- [dfandrich brought this change]
+  BINDINGS: update SP-Forth and OCaml urls
 
-  unit1603: Demote hash mismatch failure to a warning
+Michael Kaufmann (11 Jun 2017)
+- FindWin32CACert: Use a temporary buffer on the stack
   
-  The hashes can vary between architectures (e.g. Sparc differs from x86_64).
-  This is not a fatal problem but just reduces the coverage of these white-box
-  tests, as the assumptions about into which hash bucket each key falls are no
-  longer valid.
+  Don't malloc() the temporary buffer, and use the correct type:
+  SearchPath() works with TCHAR, but SearchPathA() works with char.
+  Set the buffer size to MAX_PATH, because the terminating null byte
+  is already included in MAX_PATH.
+  
+  Reviewed-by: Daniel Stenberg
+  Reviewed-by: Marcel Raad
+  
+  Closes #1548
 
-- [dfandrich brought this change]
+Dan Fandrich (11 Jun 2017)
+- test1521: fixed OOM handling
 
-  unit1603: Added unit tests for hash functions
+Daniel Stenberg (9 Jun 2017)
+- RELEASE-PROCEDURE: updated future release dates
 
-- [dfandrich brought this change]
+- [Paul Harris brought this change]
 
-  unit1602: Fixed failure in torture test
+  gitignore: ignore all vim swap files
+  
+  Closes #1561
 
-Steve Holme (12 Nov 2015)
-- sasl: Re-introduced XOAUTH2 in the default enabled authentication mechanism
+- lib1521: fix compiler warnings on the use of bad 'long' values
   
-  Following the fix in commit d6d58dd558 it is necessary to re-introduce
-  XOAUTH2 in the default enabled authentication mechanism, which was
-  removed in commit 7b2012f262, otherwise users will have to specify
-  AUTH=XOAUTH2 in the URL.
+  Reported-by: Marcel Raad
+  Bug: https://github.com/curl/curl/commit/cccac4fb2b20d6ed87da7978408c3ecacc464fe4#commitcomment-22453387
+
+- setopt: check CURLOPT_ADDRESS_SCOPE option range
   
-  Note: OAuth 2.0 will only be used when the bearer is specified.
+  ... and return error instead of triggering an assert() when being way
+  out of range.
 
-- [Stefan Bühler brought this change]
+Jay Satiro (8 Jun 2017)
+- [TheAssassin brought this change]
 
-  sasl_sspi: fix identity memory leak in digest authentication
+  cmake: Fix inconsistency regarding mbed TLS include directory
+  
+  Previously, one had to set MBEDTLS_INCLUDE_DIR to make CMake find the
+  headers, but the system complained that mbed TLS wasn't found due to
+  MBEDTLS_INCLUDE_DIRS (note the trailing s) was not set. This commit
+  attempts to fix that.
+  
+  Closes https://github.com/curl/curl/pull/1541
 
-- [Stefan Bühler brought this change]
+Daniel Stenberg (8 Jun 2017)
+- [Ryuichi KAWAMATA brought this change]
 
-  sasl_sspi: fixed unicode build for digest authentication
+  examples/multi-uv.c: fix deprecated symbol
   
-  Closes #525
+  Closes #1557
 
-- oauth2: Re-factored OAuth 2.0 state variable
+- asyn-ares: s/Curl_expire_latest/Curl_expire
 
-- sasl: Don't choose OAuth 2.0 if mechanism not advertised
+- expire: remove Curl_expire_latest()
   
-  Regression from commit 9e8ced9890 which meant if --oauth2-bearer was
-  specified but the SASL mechanism wasn't supported by the server then
-  the mechanism would be chosen.
-
-Daniel Stenberg (12 Nov 2015)
-- runtests: more compact "System characteristics" output
+  With the introduction of expire IDs and the fact that existing timers
+  can be removed now and thus never expire, the concept with adding a
+  "latest" timer is not working anymore as it risks to not expire at all.
+  
+  So, to be certain the timers actually are in line and will expire, the
+  plain Curl_expire() needs to be used. The _latest() function was added
+  as a sort of shortcut in the past that's quite simply not necessary
+  anymore.
   
-  - no point in repeating curl features that is already listed as features
-    from the curl -V output
+  Follow-up to 31b39c40cf90
   
-  - remove the port numbers/unix domain path from the output unless
-    verbose is used, as that is rarely interesting to users.
+  Reported-by: Paul Harris
+  
+  Closes #1555
 
-- runtests: rename conditional curl-features to $has_[name]
+- [Chris Carlmar brought this change]
 
-Steve Holme (11 Nov 2015)
-- oauth2: Introduced support for host and port details
+  configure: fix link with librtmp when specifying path
   
-  Added support to the OAuth 2.0 message function for host and port, in
-  order to accommodate the official OAUTHBEARER SASL mechanism which is
-  to be added shortly.
-
-- curl_setup.h: Removed duplicate CURL_DISABLE_RTSP when HTTP_ONLY defined
+  Bug: https://curl.haxx.se/mail/lib-2017-06/0017.html
 
-- cmake: Add missing feature macros in config header (Part 2)
+- file: make speedcheck use current time for checks
   
-  In addition to commit a215381c94 added the RTSP, RTMP and SMB protocols.
+  ... as it would previously just get the "now" timestamp before the
+  transfer starts and then not update it again.
+  
+  Closes #1550
 
-Daniel Stenberg (10 Nov 2015)
-- [Douglas Creager brought this change]
+- metalink: remove unused printf() argument
 
-  cmake: Add missing feature macros in config header
+- travis: let some builds *not* use --enable-debug
   
-  The curl_config.h file can be generated either from curl_config.h.cmake
-  or curl_config.h.in, depending on whether you're building using CMake or
-  the autotools.  The CMake template header doesn't include entries for
-  all of the protocols that you can disable, which (I think) means that
-  you can't actually disable those protocols when building via CMake.
+  typecheck-gcc and other things require optimized builds
   
-  Closes #523
+  Closes #1544
+
+- README.md: show the coverall coverage on github
 
-- [Douglas Creager brought this change]
+- lib1521: fix compiler warnings
 
-  BoringSSL: Work with stricter BIO_get_mem_data()
+- test1521: make the code < 80 columns wide
+
+- test1121: use stricter types to work with typcheck-gcc
+
+- typecheck-gcc: allow CURLOPT_STDERR to be NULL too
+
+- test1521: test *all* curl_easy_setopt options
   
-  BoringSSL implements `BIO_get_mem_data` as a function, instead of a
-  macro, and expects the output pointer to be a `char **`.  We have to add
-  an explicit cast to grab the pointer as a `const char **`.
+  mk-lib1521.pl generates a test program (lib1521.c) that calls
+  curl_easy_setopt() for every known option with a few typical values to
+  make sure they work (ignoring the return codes).
   
-  Closes #524
-
-- http2: rectify the http2 version #if check
+  Some small changes were necessary to avoid asserts and NULL accesses
+  when doing this.
   
-  We need 1.0.0 or later. Also verified by configure.
+  The perl script needs to be manually rerun when we add new options.
+  
+  Closes #1543
 
-Steve Holme (9 Nov 2015)
-- oauth2: Don't use XAUTH2 in OAuth 2.0 function name
+Dan Fandrich (5 Jun 2017)
+- test1538: added "verbose logs" keyword
+  
+  These error messages are not displayed with --disable-verbose
 
-- oauth2: Don't use XOAUTH2 in OAuth 2.0 variables
+Daniel Stenberg (5 Jun 2017)
+- test1262: verify ftp download with -z for "if older than this"
 
-- oauth2: Use OAuth 2.0 rather than XOAUTH2 in comments
+Marcel Raad (5 Jun 2017)
+- curl_ntlm_core: use Curl_raw_toupper instead of toupper
   
-  When referring to OAuth 2.0 we should use the official name rather the
-  SASL mechanism name.
+  This was the only remaining use of toupper in the entire source code.
+  
+  Suggested-by: Daniel Stenberg
+
+Daniel Stenberg (4 Jun 2017)
+- RELEASE-NOTES: synced with 65ba92650