2012-06-01 15:23:17 +00:00
_ _ ____ _
___| | | | _ \| |
/ __| | | | |_) | |
| (__| |_| | _ <| |___
\___|\___/|_| \_\_____|
Changelog
2018-07-15 15:57:46 +00:00
Version 7.61.0 (11 Jul 2018)
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (11 Jul 2018)
- release: 7.61.0
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- TODO: Configurable loading of OpenSSL configuration file
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2724
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- post303.d: clarify that this is an RFC violation
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
... and not the other way around, which this previously said.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Vasiliy Faronov
Fixes #2723
Closes #2726
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Ruslan Baratov brought this change]
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
CMake: remove redundant and old end-of-block syntax
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Reviewed-by: Jakub Zakrzewski
Closes #2715
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (9 Jul 2018)
- lib/curl_setup.h: remove unicode character
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Follow-up to 82ce416.
Ref: https://github.com/curl/curl/commit/8272ec5#commitcomment-29646818
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (9 Jul 2018)
- lib/curl_setup.h: remove unicode bom from 8272ec50f02
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Marcel Raad (9 Jul 2018)
- schannel: fix -Wsign-compare warning
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
MinGW warns:
/lib/vtls/schannel.c:219:64: warning: signed and unsigned type in
conditional expression [-Wsign-compare]
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Fix this by casting the ptrdiff_t to size_t as we know it's positive.
Closes https://github.com/curl/curl/pull/2721
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- schannel: workaround for wrong function signature in w32api
Original MinGW's w32api has CryptHashData's second parameter as BYTE *
instead of const BYTE *.
Closes https://github.com/curl/curl/pull/2721
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- schannel: make more cipher options conditional
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
They are not defined in the original MinGW's <wincrypt.h>.
Closes https://github.com/curl/curl/pull/2721
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- curl_setup: include <winerror.h> before <windows.h>
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Otherwise, only part of it gets pulled in through <windows.h> on
original MinGW.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Fixes https://github.com/curl/curl/issues/2361
Closes https://github.com/curl/curl/pull/2721
- examples: fix -Wformat warnings
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
When size_t is not a typedef for unsigned long (as usually the case on
Windows), GCC emits -Wformat warnings when using lu and lx format
specifiers with size_t. Silence them with explicit casts to
unsigned long.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2721
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (9 Jul 2018)
- smtp: use the upload buffer size for scratch buffer malloc
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
... not the read buffer size, as that can be set smaller and thus cause
a buffer overflow! CVE-2018-0500
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Peter Wu
Bug: https://curl.haxx.se/docs/adv_2018-70a2.html
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- [Dave Reisner brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
scripts: include _curl as part of CLEANFILES
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2718
- [Nick Zitzmann brought this change]
darwinssl: allow High Sierra users to build the code using GCC
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
...but GCC users lose out on TLS 1.3 support, since we can't weak-link
enumeration constants.
Fixes #2656
Closes #2703
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- [Ruslan Baratov brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
CMake: Remove unused 'output_var' from 'collect_true'
Variable 'output_var' is not used and can be removed.
Function 'collect_true' renamed to 'count_true'.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Ruslan Baratov brought this change]
CMake: Remove unused functions
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #2711
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- KNOWN_BUGS: Stick to same family over SOCKS proxy
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- libssh: goto DISCONNECT state on error, not SSH_SESSION_FREE
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
... because otherwise not everything get closed down correctly.
Fixes #2708
Closes #2712
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- libssh: include line number in state change debug messages
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
Closes #2713
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- KNOWN_BUGS: Borland support is dropped, AIX problem is too old
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Jeroen Ooms brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
example/crawler.c: simple crawler based on libxml2
Closes #2706
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- DEPRECATE: include year when specifying date
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- DEPRECATE: linkified
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- DEPRECATE: mention the PR that disabled axTLS
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- docs/DEPRECATE.md: spelling and minor formatting
- DEPRECATE: new doc describing planned item removals
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2704
- [Gisle Vanem brought this change]
telnet: fix clang warnings
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
telnet.c(1401,28): warning: cast from function call of type 'int' to
non-matching type 'HANDLE' (aka 'void *') [-Wbad-function-cast]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2696
Closes #2700
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- docs: fix missed option name markups
- [Gaurav Malhotra brought this change]
openssl: Remove some dead code
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2698
- openssl: make the requested TLS version the *minimum* wanted
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
The code treated the set version as the *exact* version to require in
the TLS handshake, which is not what other TLS backends do and probably
not what most people expect either.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Andreas Olsson
Assisted-by: Gaurav Malhotra
Fixes #2691
Closes #2694
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- openssl: allow TLS 1.3 by default
Reported-by: Andreas Olsson
Fixes #2692
Closes #2693
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Adrian Peniak brought this change]
CURLINFO_TLS_SSL_PTR.3: improve the example
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
The previous example was a little bit confusing, because SSL* structure
(or other "in use" SSL connection pointer) is not accessible after the
transfer is completed, therefore working with the raw TLS library
specific pointer needs to be done during transfer.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2690
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- travis: add a build using the synchronous name resolver
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
... since default uses the threaded one and we test the c-ares build
already.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2689
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- configure: remove CURL_CHECK_NI_WITHSCOPEID too
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Since it isn't used either and requires the getnameinfo check
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Follow-up to 0aeca41702d2
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- getnameinfo: not used
Closes #2687
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- easy_perform: use *multi_timeout() to get wait times
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
... and trim the threaded Curl_resolver_getsock() to return zero
millisecond wait times during the first three milliseconds so that
localhost or names in the OS resolver cache gets detected and used
faster.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2685
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Max Dymond (27 Jun 2018)
- configure: Add dependent libraries after crypto
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
The linker is pretty dumb and processes things left to right, keeping a
tally of symbols it hasn't resolved yet. So, we need -ldl to appear
after -lcrypto otherwise the linker won't find the dl functions.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #2684
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (27 Jun 2018)
- GOVERNANCE: linkify, changed some titles
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- GOVERNANCE: add maintainer details/duties
- url: check Curl_conncache_add_conn return code
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
... it was previously unchecked in two places and thus errors could
remain undetected and cause trouble.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #2681
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- include/README: remove "hacking" advice, not the right place
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced
- CURLOPT_SSL_VERIFYPEER.3: fix syntax mistake
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Follow-up to b6a16afa0aa5
- netrc: use a larger buffer
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
... to work with longer passwords etc. Grow it from a 256 to a 4096
bytes buffer.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Dario Nieuwenhuis
Fixes #2676
Closes #2680
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- [Patrick Schlangen brought this change]
CURLOPT_SSL_VERIFYPEER.3: Add performance note
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2673
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- [Javier Blazquez brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
multi: fix crash due to dangling entry in connect-pending list
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2677
Closes #2679
- ConnectionExists: make sure conn->data is set when "taking" a connection
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Follow-up to 2c15693.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Bug #2674
Closes #2675
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Kevin R. Bulgrien brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
system.h: fix for gcc on 32 bit OpenServer
Bug: https://curl.haxx.se/mail/lib-2018-06/0100.html
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Raphael Gozzo brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
cmake: allow multiple SSL backends
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
This will make possible to select the SSL backend (using
curl_global_sslset()) even when the libcurl is built using CMake
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #2665
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- url: fix dangling conn->data pointer
By masking sure to use the *current* easy handle with extracted
connections from the cache, and make sure to NULLify the ->data pointer
when the connection is put into the cache to make this mistake easier to
detect in the future.
Reported-by: Will Dietz
Fixes #2669
Closes #2672
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- CURLOPT_INTERFACE.3: interface names not supported on Windows
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- travis: run more tests for coverage check
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
... run a few more tortured based and run all tests event-based.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #2664
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- multi: fix memory leak when stopped during name resolve
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
When the application just started the transfer and then stops it while
the name resolve in the background thread hasn't completed, we need to
wait for the resolve to complete and then cleanup data accordingly.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Enabled test 1553 again and added test 1590 to also check when the host
name resolves successfully.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Detected by OSS-fuzz.
Closes #1968
Viktor Szakats (15 Jun 2018)
- maketgz: delete .bak files, fix indentation
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Ref: https://github.com/curl/curl/pull/2660
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2662
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (15 Jun 2018)
- runtests.pl: remove debug leftover from bb9a340c73f3
- curl-confopts.m4: fix typo from ed224f23d5beb
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Fixes my local configure to detect a custom installed c-ares without
pkgconfig.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- docs/RELEASE-PROCEDURE.md: renamed to use .md extension
Closes #2663
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-PROCEDURE: gpg sign the tags
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced
- CURLOPT_HTTPAUTH.3: CURLAUTH_BEARER was added in 7.61.0
- [Mamta Upadhyay brought this change]
maketgz: fix sed issues on OSX
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
maketgz creates release tarballs and removes the -DEV string in curl
version (e.g. 7.58.0-DEV), else -DEV shows up on command line when curl
is run. maketgz works fine on linux but fails on OSX. Problem is with
the sed commands that use option -i without an extension. Maketgz
expects GNU sed instead of BSD and this simply won't work on OSX. Adding
a backup extension .bak after -i fixes this issue
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Running the script as if on OSX gives this error:
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
sed: -e: No such file or directory
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Adding a .bak extension resolves it
Closes #2660
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- configure: enhance ability to detect/build with static openssl
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Fix the -ldl and -ldl + -lpthread checks for OpenSSL, necessary for
building with static libs without pkg-config.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Marcel Raad
Fixes #2199
Closes #2659
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- configure: use pkg-config for c-ares detection
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
First check if there's c-ares information given as pkg-config info and use
that as first preference.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: pszemus on github
Fixes #2203
Closes #2658
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- GOVERNANCE.md: explains how this project is run
Closes #2657
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- KNOWN_BUGS: NTLM doen't support password with § character
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Closes #2120
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- KNOWN_BUGS: slow connect to localhost on Windows
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2281
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- [Matteo Bignotti brought this change]
mk-ca-bundle.pl: make -u delete certdata.txt if found not changed
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
certdata.txt should be deleted also when the process is interrupted by
"same certificate downloaded, exiting"
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
The certdata.txt is currently kept on disk even if you give the -u
option
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #2655
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- progress: remove a set of unused defines
Reported-by: Peter Wu
Closes #2654
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- TODO: "Option to refuse usernames in URLs" done
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Implemented by Björn in 946ce5b61f
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Lyman Epp brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Curl_init_do: handle NULL connection pointer passed in
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #2653
- runtests: support variables in <strippart>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
... and make use of that to make 1455 work better without using a fixed
local port number.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2649
Closes #2650
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- Curl_debug: remove dead printhost code
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
The struct field is never set (since 5e0d9aea3) so remove the use of it
and remove the connectdata pointer from the prototype.
Reported-by: Tejas
Bug: https://curl.haxx.se/mail/lib-2018-06/0054.html
Closes #2647
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Viktor Szakats (12 Jun 2018)
- schannel: avoid incompatible pointer warning
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
with clang-6.0:
```
vtls/schannel_verify.c: In function 'add_certs_to_store':
vtls/schannel_verify.c:212:30: warning: passing argument 11 of 'CryptQueryObject' from incompatible pointer type [-Wincompatible-pointer-types]
&cert_context)) {
^
In file included from /usr/share/mingw-w64/include/schannel.h:10:0,
from /usr/share/mingw-w64/include/schnlsp.h:9,
from vtls/schannel.h:29,
from vtls/schannel_verify.c:40:
/usr/share/mingw-w64/include/wincrypt.h:4437:26: note: expected 'const void **' but argument is of type 'CERT_CONTEXT ** {aka struct _CERT_CONTEXT **}'
WINIMPM WINBOOL WINAPI CryptQueryObject (DWORD dwObjectType, const void *pvObject, DWORD dwExpectedContentTypeFlags, DWORD dwExpectedFormatTypeFlags, DWORD dwFlags,
^~~~~~~~~~~~~~~~
```
Ref: https://msdn.microsoft.com/library/windows/desktop/aa380264
Closes https://github.com/curl/curl/pull/2648
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (12 Jun 2018)
- [Robert Prag brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
schannel: support selecting ciphers
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Given the contstraints of SChannel, I'm exposing these as the algorithms
themselves instead; while replicating the ciphersuite as specified by
OpenSSL would have been preferable, I found no way in the SChannel API
to do so.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
To use this from the commandline, you need to pass the names of contants
defining the desired algorithms. For example, curl --ciphers
"CALG_SHA1:CALG_RSA_SIGN:CALG_RSA_KEYX:CALG_AES_128:CALG_DH_EPHEM"
https://github.com The specific names come from wincrypt.h
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #2630
- [Bernhard M. Wiedemann brought this change]
test 46: make test pass after 2025
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
shifting the expiry date to 2037 for now
to be before the possibly problematic year 2038
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
similar in spirit to commit e6293cf8764e9eecb
Closes #2646
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Marian Klymov brought this change]
cppcheck: fix warnings
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- Get rid of variable that was generating false positive warning
(unitialized)
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- Fix issues in tests
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- Reduce scope of several variables all over
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
etc
Closes #2631
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- openssl: assume engine support in 1.0.1 or later
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Previously it was checked for in configure/cmake, but that would then
leave other build systems built without engine support.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
While engine support probably existed prior to 1.0.1, I decided to play
safe. If someone experience a problem with this, we can widen the
version check.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2641
Closes #2644
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-PROCEDURE: update the release calendar for 2019
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Gisle Vanem brought this change]
boringssl + schannel: undef X509_NAME in lib/schannel.h
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Fixes the build problem when both boringssl and schannel are enabled.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2634
Closes #2643
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- [Vladimir Kotal brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
mk-ca-bundle.pl: leave certificate name untouched in decode()
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2640
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Rikard Falkeborn brought this change]
tests/libtests/Makefile.am: Add lib1521.c to CLEANFILES
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
This removes the generated lib1521.c when running make clean.
Closes #2633
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Rikard Falkeborn brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
tests/libtest: Add lib1521 to nodist_SOURCES
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Since 467da3af0, lib1521.c is generated instead of checked in. According
to the commit message, the intention was to remove it from the tarball
as well. However, it is still present when running make dist. To remove
it, add it to nodist_lib1521_SOURCES. This also means there is no need
for the manually added dist-rule in the Makefile.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Also update CMakelists.txt to handle the fact that we now may have
nodist_SOURCES.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Stephan Mühlstrasser brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
system.h: add support for IBM xlc C compiler
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Added a section to system.h guarded with __xlc__ for the IBM xml C
compiler. Before this change the section titled 'generic "safe guess" on
old 32 bit style' was used, which resulted in a wrong definition of
CURL_TYPEOF_CURL_SOCKLEN_T, and for 64-bit also CURL_TYPEOF_CURL_OFF_T
was wrong.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Compilation warnings fixed with this change:
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
CC libcurl_la-ftp.lo
"ftp.c", line 290.55: 1506-280 (W) Function argument assignment between types "unsigned long* restrict" and "int*" is not allowed.
"ftp.c", line 293.48: 1506-280 (W) Function argument assignment between types "unsigned long* restrict" and "int*" is not allowed.
"ftp.c", line 1070.49: 1506-280 (W) Function argument assignment between types "unsigned long* restrict" and "int*" is not allowed.
"ftp.c", line 1154.53: 1506-280 (W) Function argument assignment between types "unsigned long* restrict" and "int*" is not allowed.
"ftp.c", line 1187.51: 1506-280 (W) Function argument assignment between types "unsigned long* restrict" and "int*" is not allowed.
CC libcurl_la-connect.lo
"connect.c", line 448.56: 1506-280 (W) Function argument assignment between types "unsigned long* restrict" and "int*" is not allowed.
"connect.c", line 516.66: 1506-280 (W) Function argument assignment between types "unsigned long* restrict" and "int*" is not allowed.
"connect.c", line 687.55: 1506-280 (W) Function argument assignment between types "unsigned long* restrict" and "int*" is not allowed.
"connect.c", line 696.55: 1506-280 (W) Function argument assignment between types "unsigned long* restrict" and "int*" is not allowed.
CC libcurl_la-tftp.lo
"tftp.c", line 1115.33: 1506-280 (W) Function argument assignment between types "unsigned long* restrict" and "int*" is not allowed.
Closes #2637
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- cmdline-opts/cert-type.d: mention "p12" as a recognized type as well
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Viktor Szakats (3 Jun 2018)
- spelling fixes
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Detected using the `codespell` tool (version 1.13.0).
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Also secure and fix an URL.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (2 Jun 2018)
- axtls: follow-up spell fix of comment
- axTLS: not considered fit for use
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
URL: https://curl.haxx.se/mail/lib-2018-06/0000.html
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
This is step one. It adds #error statements that require source edits to
make curl build again if asked to use axTLS. At a later stage we might
remove the axTLS specific code completely.
Closes #2628
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- build: remove the Borland specific makefiles
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
According to the user survey 2018, not even one out of 670 users use
them. Nobody on the mailing list spoke up for them either.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #2629
- curl_addrinfo: use same #ifdef conditions in source as header
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
... for curl_dofreeaddrinfo
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- multi: remove a DEBUGF()
... it might call infof() with a NULL first argument that isn't harmful
but makes it not do anything. The infof() line is not very useful
anymore, it has served it purpose. Good riddance!
Fixes #2627
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Alibek.Jorajev brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
CURLOPT_RESOLVE: always purge old entry first
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
If there's an existing entry using the selected name.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #2622
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- fnmatch: use the system one if available
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
If configure detects fnmatch to be available, use that instead of our
custom one for FTP wildcard pattern matching. For standard compliance,
to reduce our footprint and to use already well tested and well
exercised code.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
A POSIX fnmatch behaves slightly different than the internal function
for a few test patterns currently and the macOS one yet slightly
different. Test case 1307 is adjusted for these differences.
Closes #2626
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (31 May 2018)
- os400: add new option in ILE/RPG binding
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Follow-up to commit 946ce5b
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (31 May 2018)
- tests/libtest/.gitignore: follow-up fix to ignore lib5* too
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- KNOWN_BUGS: CURL_GLOBAL_SSL
Closes #2276
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Bernhard Walle brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
configure: check for declaration of getpwuid_r
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
On our x86 Android toolchain, getpwuid_r is implemented but the header
is missing:
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
netrc.c:81:7: error: implicit declaration of function 'getpwuid_r' [-Werror=implicit-function-declaration]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Unfortunately, the function is used in curl_ntlm_wb.c, too, so I moved
the prototype to curl_setup.h.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
Closes #2609
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Rikard Falkeborn brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
tests: update .gitignore for libtests
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #2624
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Rikard Falkeborn brought this change]
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
strictness: correct {infof, failf} format specifiers
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2623
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- [Björn Stenberg brought this change]
option: disallow username in URL
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Adds CURLOPT_DISALLOW_USERNAME_IN_URL and --disallow-username-in-url. Makes
libcurl reject URLs with a username in them.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2340
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- libcurl-security.3: improved layout for two rememdy lists
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- libcurl-security.3: refer to URL instead of in-source markdown file
Viktor Szakats (30 May 2018)
- curl.rc: embed manifest for correct Windows version detection
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
* enable it in `src/Makefile.m32`
* enable it in `winbuild/MakefileBuild.vc` if a custom manifest is
_not_ enabled via the existing `EMBED_MANIFEST` option
* enable it for all Windows CMake builds (also disable the built-in
minimal manifest, added by CMake by default.)
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
For other build systems, add the `-DCURL_EMBED_MANIFEST` option to
the list of RC (Resource Compiler) flags to enable the manifest
included in `src/curl.rc`. This may require to disable whatever
automatic or other means in which way another manifest is added to
`curl.exe`.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Notice that Borland C doesn't support this method due to a
long-pending resource compiler bug. Watcom C may also not handle
it correctly when the `-zm` `wrc` option is used (this option may
be unnecessary though) and regardless of options in certain earlier
revisions of the 2.0 beta version.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/1221
Fixes https://github.com/curl/curl/issues/2591
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (30 May 2018)
- os400: sync EBCDIC wrappers and ILE/RPG binding with latest options
- os400: implement mime api EBCDIC wrappers
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Also sync ILE/RPG binding to define the new functions.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (29 May 2018)
- setopt: add TLS 1.3 ciphersuites
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Adds CURLOPT_TLS13_CIPHERS and CURLOPT_PROXY_TLS13_CIPHERS.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
curl: added --tls13-ciphers and --proxy-tls13-ciphers
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2435
Reported-by: zzq1015 on github
Closes #2607
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- configure: override AR_FLAGS to silence warning
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
The automake default ar flags are 'cru', but the 'u' flag in there
causes warnings on many modern Linux distros. Removing 'u' may have a
minor performance impact on older distros but should not cause harm.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Explained on the automake mailing list already back in April 2015:
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
https://www.mail-archive.com/automake-patches@gnu.org/msg07705.html
Reported-by: elephoenix on github
Fixes #2617
Closes #2619
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Sergei Nikulov (29 May 2018)
- cmake: fixed comments in compile checks code
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (29 May 2018)
- INSTALL: LDFLAGS=-Wl,-R/usr/local/ssl/lib
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
... the older description doesn't work
Reported-by: Peter Varga
Fixes #2615
Closes #2616
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- [Will Dietz brought this change]
KNOWN_BUGS: restore text regarding #2101.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
This was added earlier but appears to have been removed accidentally.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
AFAICT this is very much still an issue.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
-----
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
I say "accidentally" because the text seems to have harmlessly snuck
into [1] (which makes no mention of it). [1] was later reverted for
unspecified reasons in [2], presumably because the mentioned issue was
fixed or invalid.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
[1] de9fac00c40db321d44fa6fbab6eb62ec4c83998
[2] 16d1f369403cbb04bd7b085eabbeebf159473fc2
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2618
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- fnmatch: insist on escaped bracket to match
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
A non-escaped bracket ([) is for a character group - as documented. It
will *not* match an individual bracket anymore. Test case 1307 updated
accordingly to match.
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Problem detected by OSS-Fuzz, although this fix is probably not a final
fix for the notorious timeout issues.
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8525
Closes #2614
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (28 May 2018)
- psl: use latest psl and refresh it periodically
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
The latest psl is cached in the multi or share handle. It is refreshed
before use after 72 hours.
New share lock CURL_LOCK_DATA_PSL controls the psl cache sharing.
If the latest psl is not available, the builtin psl is used.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Yaakov Selkowitz
Fixes #2553
Closes #2601
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (28 May 2018)
- [Fabrice Fontaine brought this change]
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
configure: fix ssh2 linking when built with a static mbedtls
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
The ssh2 pkg-config file could contain the following lines when build
with a static version of mbedtls:
Libs: -L${libdir} -lssh2 /xxx/libmbedcrypto.a
Libs.private: /xxx/libmbedcrypto.a
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
This static mbedtls library must be used to correctly detect ssh2
support and this library must be copied in libcurl.pc otherwise
compilation of any application (such as upmpdcli) with libcurl will fail
when trying to found mbedtls functions included in libssh2. So, replace
pkg-config --libs-only-l by pkg-config --libs.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Fixes:
- http://autobuild.buildroot.net/results/43e24b22a77f616d6198c10435dcc23cc3b9088a
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Closes #2613
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- [Bernhard Walle brought this change]
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
cmake: check for getpwuid_r
The autotools-based build system does it, so we do it also in CMake.
Bug: #2609
Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- cmdline-opts/gen.pl: warn if mutexes: or see-also: list non-existing options
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Frank Gevaerts brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
curl.1: Fix cmdline-opts reference errors.
--data, --form, and --ntlm were declared to be mutually exclusive with
non-existing options. --data and --form referred to --upload (which is
short for --upload-file and therefore did work, so this one was merely
a bit confusing), --ntlm referred to --negotiated instead of --negotiate.
Closes #2612
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Frank Gevaerts brought this change]
docs: fix cmdline-opts metadata headers case consistency.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Almost all headers start with an uppercase letter, but some didn't.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- mailmap: Max Savenkov
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Sergei Nikulov (28 May 2018)
- [Max Savenkov brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Fix the test for fsetxattr and strerror_r tests in CMake to work without compiling
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (27 May 2018)
- mailmap: a Richard Alcock fixup
- [Richard Alcock brought this change]
schannel: add failf calls for client certificate failures
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #2604
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
- [Richard Alcock brought this change]
winbuild: In MakefileBuild.vc fix typo DISTDIR->DIRDIST
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Change requirement from $(DISTDIR) to $(DIRDIST)
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
closes #2603
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- [Richard Alcock brought this change]
winbuild: only delete OUTFILE if it exists
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
This removes the slightly annoying "Could not file LIBCURL_OBJS.inc" and
"Could not find CURL_OBJS.inc.inc" message when building into a clean
folder.
closes #2602
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Alejandro R. Sedeño brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
content_encoding: handle zlib versions too old for Z_BLOCK
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Fallback on Z_SYNC_FLUSH when Z_BLOCK is not available.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2606
Closes #2608
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- multi: provide a socket to wait for in Curl_protocol_getsock
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
... even when there's no protocol specific handler setup.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://curl.haxx.se/mail/lib-2018-05/0062.html
Reported-by: Sean Miller
Closes #2600
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
- [Linus Lewandowski brought this change]
httpauth: add support for Bearer tokens
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #2102
- TODO: CURLINFO_PAUSE_STATE
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #2588
Sergei Nikulov (24 May 2018)
- cmake: set -d postfix for debug builds if not specified
using -DCMAKE_DEBUG_POSTFIX explicitly
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
fixes #2121, obsoletes #2384
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (23 May 2018)
- configure: add basic test of --with-ssl prefix
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
When given a prefix, the $PREFIX_OPENSSL/lib/openssl.pc or
$PREFIX_OPENSSL/include/openssl/ssl.h files must be present or cause an
error. Helps users detect when giving configure the wrong path.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Oleg Pudeyev
Assisted-by: Per Malmberg
Fixes #2580
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (22 May 2018)
- http resume: skip body if http code 416 (range error) is ignored.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
This avoids appending error data to already existing good data.
Test 92 is updated to match this change.
New test 1156 checks all combinations of --range/--resume, --fail,
Content-Range header and http status code 200/416.
Fixes #1163
Reported-By: Ithubg on github
Closes #2578
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (22 May 2018)
- tftp: make sure error is zero terminated before printfing it
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- configure: add missing m4/ax_compile_check_sizeof.m4
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
follow-up to mistake in 6876ccf90b4
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (22 May 2018)
- [Johannes Schindelin brought this change]
schannel: make CAinfo parsing resilient to CR/LF
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
OpenSSL has supported --cacert for ages, always accepting LF-only line
endings ("Unix line endings") as well as CR/LF line endings ("Windows
line endings").
When we introduced support for --cacert also with Secure Channel (or in
cURL speak: "WinSSL"), we did not take care to support CR/LF line
endings, too, even if we are much more likely to receive input in that
form when using Windows.
Let's fix that.
Happily, CryptQueryObject(), the function we use to parse the ca-bundle,
accepts CR/LF input already, and the trailing LF before the END
CERTIFICATE marker catches naturally any CR/LF line ending, too. So all
we need to care about is the BEGIN CERTIFICATE marker. We do not
actually need to verify here that the line ending is CR/LF. Just
checking for a CR or an LF is really plenty enough.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Closes https://github.com/curl/curl/pull/2592
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (22 May 2018)
- CURLOPT_ACCEPT_ENCODING.3: add brotli and clarify a bit
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced
- KNOWN_BUGS: mention the -O with %-encoded file names
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2573
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- checksrc: make sure sizeof() is used *with* parentheses
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
... and unify the source code to adhere.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #2563
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- curl: added --styled-output
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
It is enabled by default, so --no-styled-output will switch off the
detection/use of bold headers.
Closes #2538
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- curl: show headers in bold
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
The feature is only enabled if the output is believed to be a tty.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
-J: There's some minor differences and improvements in -J handling, as
now J should work with -i and it actually creates a file first using the
initial name and then *renames* that to the one found in
Content-Disposition (if any).
-i: only shows headers for HTTP transfers now (as documented).
Previously it would also show for pieces of the transfer that were HTTP
(for example when doing FTP over a HTTP proxy).
-i: now shows trailers as well. Previously they were not shown at all.
--libcurl: the CURLOPT_HEADER is no longer set, as the header output is
now done in the header callback.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- configure: compile-time SIZEOF checks
... instead of exeucting code to get the size. Removes the use of
LD_LIBRARY_PATH for this.
Fixes #2586
Closes #2589
Reported-by: Bernhard Walle
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- configure: replace AC_TRY_RUN with CURL_RUN_IFELSE
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
... and export LD_LIBRARY_PATH properly. This is a follow-up from
2d4c215.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2586
Reported-by: Bernhard Walle
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- docs: clarify CURLOPT_HTTPGET somewhat
Reported-by: bsammon on github
Fixes #2590
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- curl_fnmatch: only allow two asterisks for matching
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
The previous limit of 5 can still end up in situation that takes a very
long time and consumes a lot of CPU.
If there is still a rare use case for this, a user can provide their own
fnmatch callback for a version that allows a larger set of wildcards.
This commit was triggered by yet another OSS-Fuzz timeout due to this.
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8369
Closes #2587
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- checksrc: fix too long line
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
follow-up to e05ad5d
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- [Aleks brought this change]
docs: mention HAproxy protocol "version 1"
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
...as there's also a version 2.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2579
- examples/progressfunc: make it build on older libcurls
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
This example was changed in ce2140a8c1 to use the new microsecond based
getinfo option. This change makes it conditionally keep using the older
option so that the example still builds with older libcurl versions.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2584
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- stub_gssapi: fix numerous 'unused parameter' warnings
follow-up to d9e92fd9fd1d
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Philip Prindeville brought this change]
getinfo: add microsecond precise timers for various intervals
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Provide a set of new timers that return the time intervals using integer
number of microseconds instead of floats.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
The new info names are as following:
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
CURLINFO_APPCONNECT_TIME_T
CURLINFO_CONNECT_TIME_T
CURLINFO_NAMELOOKUP_TIME_T
CURLINFO_PRETRANSFER_TIME_T
CURLINFO_REDIRECT_TIME_T
CURLINFO_STARTTRANSFER_TIME_T
CURLINFO_TOTAL_TIME_T
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2495
- openssl: acknowledge --tls-max for default version too
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
... previously it only used the max setting if a TLS version was also
explicitly asked for.
Reported-by: byte_bucket
Fixes #2571
Closes #2572
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
- bump: start working on the pending 7.61.0
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Dagobert Michelsen brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
tests/libtest/Makefile: Do not unconditionally add gcc-specific flags
The warning flag leads e.g. Sun Studio compiler to bail out.
Closes #2576
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- schannel_verify: fix build for non-schannel
Jay Satiro (16 May 2018)
- rand: fix typo
- schannel: disable manual verify if APIs not available
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
.. because original MinGW and old compilers do not have the Windows API
definitions needed to support manual verification.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Archangel_SDY brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
schannel: disable client cert option if APIs not available
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Original MinGW targets Windows 2000 by default, which lacks some APIs and
definitions for this feature. Disable it if these APIs are not available.
Closes https://github.com/curl/curl/pull/2522
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Version 7.60.0 (15 May 2018)
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (15 May 2018)
- RELEASE-NOTES: 7.60.0 release
- THANKS: added people from the curl 7.60.0 release
- docs/libcurl/index.html: removed
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
The HTML files are long gone from the dist, now remove the last HTML
file pointing to those missing files.
d
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [steini2000 brought this change]
http2: remove unused variable
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #2570
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- [steini2000 brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
http2: use easy handle of stream for logging
- gcc: disable picky gcc-8 function pointer warnings in two places
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Rikard Falkeborn
Bug: #2560
Closes #2569
- http2: use the correct function pointer typedef
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Fixes gcc-8 picky compiler warnings
Reported-by: Rikard Falkeborn
Bug: #2560
Closes #2568
- CODE_STYLE: mention return w/o parens, but sizeof with
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
... and remove the github markdown syntax so that it renders better on
the web site. Also, don't use back-ticks inlined to allow the CSS to
highlight source code better.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Rikard Falkeborn brought this change]
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
examples: Fix format specifiers
Closes #2561
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Rikard Falkeborn brought this change]
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
tool: Fix format specifiers
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Rikard Falkeborn brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
ntlm: Fix format specifiers
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Rikard Falkeborn brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
tests: Fix format specifiers
- [Rikard Falkeborn brought this change]
lib: Fix format specifiers
- contributors.sh: use "on github", not at
- http2: getsock fix for uploads
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
When there's an upload in progress, make sure to wait for the socket to
become writable.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Detected-by: steini2000 on github
Bug: #2520
Closes #2567
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- pingpong: fix response cache memcpy overflow
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Response data for a handle with a large buffer might be cached and then
used with the "closure" handle when it has a smaller buffer and then the
larger cache will be copied and overflow the new smaller heap based
buffer.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Dario Weisser
CVE: CVE-2018-1000300
Bug: https://curl.haxx.se/docs/adv_2018-82c2.html
- http: restore buffer pointer when bad response-line is parsed
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
... leaving the k->str could lead to buffer over-reads later on.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
CVE: CVE-2018-1000301
Assisted-by: Max Dymond
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Detected by OSS-Fuzz.
Bug: https://curl.haxx.se/docs/adv_2018-b138.html
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7105
Patrick Monnerat (13 May 2018)
- cookies: do not take cookie name as a parameter
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
RFC 6265 section 4.2.1 does not set restrictions on cookie names.
This is a follow-up to commit 7f7fcd0.
Also explicitly check proper syntax of cookie name/value pair.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
New test 1155 checks that cookie names are not reserved words.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Reported-By: anshnd at github
Fixes #2564
Closes #2566
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (12 May 2018)
- smb: reject negative file sizes
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Assisted-by: Max Dymond
Detected by OSS-Fuzz
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8245
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- setup_transfer: deal with both sockets being -1
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Detected by Coverity; CID 1435559. Follow-up to f8d608f38d00. It would
index the array with -1 if neither index was a socket.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- travis: add build using NSS
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #2558
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Sunny Purushe brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
openssl: change FILE ops to BIO ops
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
To make builds with VS2015 work. Recent changes in VS2015 _IOB_ENTRIES
handling is causing problems. This fix changes the OpenSSL backend code
to use BIO functions instead of FILE I/O functions to circumvent those
problems.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #2512
- travis: add a build using WolfSSL
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Assisted-by: Dan Fandrich
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Closes #2528
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: typo
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced
- [Daniel Gustafsson brought this change]
URLs: fix one more http url
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
This file wasn't included in commit 4af40b3646d3b09 which updated all
haxx.se http urls to https. The file was committed prior to that update,
but may have been merged after it and hence didn't get updated.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2550
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- github/lock: auto-lock closed issues after 90 days of inactivity
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- vtls: fix missing commas
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
follow-up to e66cca046cef
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- vtls: use unified "supports" bitfield member in backends
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
... instead of previous separate struct fields, to make it easier to
extend and change individual backends without having to modify them all.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
closes #2547
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
- transfer: don't unset writesockfd on setup of multiplexed conns
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
Curl_setup_transfer() can be called to setup a new individual transfer
over a multiplexed connection so it shouldn't unset writesockfd.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Bug: #2520
Closes #2549
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- [Frank Gevaerts brought this change]
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
configure: put CURLDEBUG and DEBUGBUILD in lib/curl_config.h
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
They are removed from the compiler flags.
This ensures that make dependency tracking will force a rebuild whenever
configure --enable-debug or --enable-curldebug changes.
Closes #2548
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- http: don't set the "rewind" flag when not uploading anything
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
It triggers an assert.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Detected by OSS-Fuzz
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8144
Closes #2546
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- travis: add an mbedtls build
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #2531
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- configure: only check for CA bundle for file-using SSL backends
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
When only building with SSL backends that don't use the CA bundle file
(by default), skip the check.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2543
Fixes #2180
Closes #2545
- ssh-libssh.c: fix left shift compiler warning
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
ssh-libssh.c:2429:21: warning: result of '1 << 31' requires 33 bits to
represent, but 'int' only has 32 bits [-Wshift-overflow=]
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
'len' will never be that big anyway so I converted the run-time check to
a regular assert.
- [Stephan Mühlstrasser brought this change]
URL: fix ASCII dependency in strcpy_url and strlen_url
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Commit 3c630f9b0af097663a64e5c875c580aa9808a92b partially reverted the
changes from commit dd7521bcc1b7a6fcb53c31f9bd1192fcc884bd56 because of
the problem that strcpy_url() was modified unilaterally without also
modifying strlen_url(). As a consequence strcpy_url() was again
depending on ASCII encoding.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
This change fixes strlen_url() and strcpy_url() in parallel to use a
common host-encoding independent criterion for deciding whether an URL
character must be %-escaped.
Closes #2535
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- [Denis Ollier brought this change]
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
docs: remove extraneous commas in man pages
Closes #2544
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- Revert "TODO: remove configure --disable-pthreads"
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
This reverts commit d5d683a97f9765bddfd964fe32e137aa6e703ed3.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
--disable-pthreads can be used to disable pthreads and get the threaded
resolver to use the windows threading when building with mingw.
- vtls: don't define MD5_DIGEST_LENGTH for wolfssl
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
... as it defines it (too)
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- TODO: remove configure --disable-pthreads
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (2 May 2018)
- [David Garske brought this change]
wolfssl: Fix non-blocking connect
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2542
Daniel Stenberg (30 Apr 2018)
- CURLOPT_URL.3: add ENCODING section [ci skip]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Feedback-by: Michael Kilburn
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- KNOWN_BUGS: Client cert with Issuer DN differs between backends
Closes #1411
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- KNOWN_BUGS: Passive transfer tries only one IP address
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #1508
- KNOWN_BUGS: --upload-file . hang if delay in STDIN
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2051
- KNOWN_BUGS: Connection information when using TCP Fast Open
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #1332
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- travis: enable libssh2 on both macos and Linux
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
It seems to not be detected by default anymore (which is a bug I
believe)
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2541
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- TODO: Support the clienthello extension
Closes #2299
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- TODO: CLOEXEC
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2252
- tests: provide 'manual' as a feature to optionally require
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
... and make test 1026 rely on that feature so that --disable-manual
builds don't cause test failures.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Max Dymond and Anders Roxell
Fixes #2533
Closes #2540
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- CURLINFO_PROTOCOL.3: mention the existing defined names
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (27 Apr 2018)
- [Daniel Gustafsson brought this change]
cookies: remove unused macro
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Commit 2bc230de63 made the macro MAX_COOKIE_LINE_TXT become unused,
so remove as it's not part of the published API.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2537
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (27 Apr 2018)
- [Daniel Gustafsson brought this change]
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
checksrc: force indentation of lines after an else
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
This extends the INDENTATION case to also handle 'else' statements
and require proper indentation on the following line. Also fixes the
offending cases found in the codebase.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Closes #2532
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- http2: fix null pointer dereference in http2_connisdead
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
This function can get called on a connection that isn't setup enough to
have the 'recv_underlying' function pointer initialized so it would try
to call the NULL pointer.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Dario Weisser
Follow-up to db1b2c7fe9b093f8 (never shipped in a release)
Closes #2536
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- http2: get rid of another strstr()
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Follow-up to 1514c44655e12e: replace another strstr() call done on a
buffer that might not be zero terminated - with a memchr() call, even if
we know the substring will be found.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Assisted-by: Max Dymond
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Detected by OSS-Fuzz
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8021
Closes #2534
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- cyassl: adapt to libraries without TLS 1.0 support built-in
WolfSSL doesn't enable it by default anymore
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- configure: provide --with-wolfssl as an alias for --with-cyassl
- RELEASE-NOTES: synced
- [Daniel Gustafsson brought this change]
os400.c: fix ASSIGNWITHINCONDITION checksrc warnings
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
All occurrences of assignment within conditional expression in
os400sys.c rewritten into two steps: first assignment and then the check
on the success of the assignment. Also adjust related incorrect brace
positions to match project indentation style.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
This was spurred by seeing "if((inp = input_token))", but while in there
all warnings were fixed.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
There should be no functional change from these changes.
Closes #2525
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Daniel Gustafsson brought this change]
cookies: ensure that we have cookies before writing jar
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
The jar should be written iff there are cookies, so ensure that we still
have cookies after expiration to avoid creating an empty file.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Closes #2529
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- strcpy_url: only %-encode values >= 0x80
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
OSS-Fuzz detected
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8000
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Broke in dd7521bcc1b7
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- mime: avoid NULL pointer dereference risk
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Coverity detected, CID 1435120
Closes #2527
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Stephan Mühlstrasser brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
ctype: restore character classification for non-ASCII platforms
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
With commit 4272a0b0fc49a1ac0ceab5c4a365c9f6ab8bf8e2 curl-speficic
character classification macros and functions were introduced in
curl_ctype.[ch] to avoid dependencies on the locale. This broke curl on
non-ASCII, e.g. EBCDIC platforms. This change restores the previous set
of character classification macros when CURL_DOES_CONVERSIONS is
defined.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2494
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- ftplistparser: keep state between invokes
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Fixes FTP wildcard parsing when done over a number of read buffers.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Regression from f786d1f14
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: wncboy on github
Fixes #2445
Closes #2526
- examples/http2-upload: expand buffer to avoid silly warning
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
http2-upload.c:135:44: error: ‘ %02d’ directive output may be truncated
writing between 2 and 11 bytes into a region of size between 8 and 17
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- examples/sftpuploadresume: typecast fseek argument to long
/docs/examples/sftpuploadresume.c:102:12: warning: conversion to 'long
int' from 'curl_off_t {aka long long int}' may alter its value
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- Revert "ftplistparser: keep state between invokes"
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
This reverts commit abbc8457d85aca74b7cfda1d394b0844932b2934.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Caused fuzzer problems on travis not seen when this was a PR!
- Curl_memchr: zero length input can't match
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Avoids undefined behavior.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Geeknik Labs
- ftplistparser: keep state between invokes
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Fixes FTP wildcard parsing when doing over a number of read buffers.
Regression from f786d1f14
Reported-by: wncboy on github
Fixes #2445
Closes #2519
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- ftplistparser: renamed some members and variables
... to make them better spell out what they're for.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- [Christian Schmitz brought this change]
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
curl_global_sslset: always provide available backends
Closes #2499
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- http2: convert an assert to run-time check
Fuzzing has proven we can reach code in on_frame_recv with status_code
not having been set, so let's detect that in run-time (instead of with
assert) and error error accordingly.
(This should no longer happen with the latest nghttp2)
Detected by OSS-Fuzz
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7903
Closes #2514
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- curl.1: clarify that options and URLs can be mixed
Fixes #2515
Closes #2517
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (23 Apr 2018)
- [Archangel_SDY brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
CURLOPT_SSLCERT.3: improve WinSSL-specific usage info
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Ref: https://github.com/curl/curl/pull/2376#issuecomment-381858780
Closes https://github.com/curl/curl/pull/2504
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Archangel_SDY brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
schannel: fix build error on targets <= XP
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- Use CRYPT_STRING_HEX instead of CRYPT_STRING_HEXRAW since XP doesn't
support the latter.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Ref: https://github.com/curl/curl/pull/2376#issuecomment-382153668
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2504
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (23 Apr 2018)
- Revert "ftplistparser: keep state between invokes"
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
This reverts commit 8fb78f9ddc6d858d630600059b8ad84a80892fd9.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Unfortunately this fix introduces memory leaks I've not been able to fix
in several days. Reverting this for now to get the leaks fixed.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (21 Apr 2018)
- tool_help: clarify --max-time unit of time is seconds
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Before:
-m, --max-time <time> Maximum time allowed for the transfer
After:
-m, --max-time <seconds> Maximum time allowed for the transfer
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (20 Apr 2018)
- http2: handle GOAWAY properly
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
When receiving REFUSED_STREAM, mark the connection for close and retry
streams accordingly on another/fresh connection.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Terry Wu
Fixes #2416
Fixes #1618
Closes #2510
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- http2: clear the "drain counter" when a stream is closed
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
This fixes the notorious "httpc->drain_total >= data->state.drain"
assert.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Anders Bakken
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Fixes #1680
Closes #2509
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- http2: avoid strstr() on data not zero terminated
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
It's not strictly clear if the API contract allows us to call strstr()
on a string that isn't zero terminated even when we know it will find
the substring, and clang's ASAN check dislikes us for it.
Also added a check of the return code in case it fails, even if I can't
think of a situation how that can trigger.
Detected by OSS-Fuzz
Closes #2513
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7760
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Stephan Mühlstrasser brought this change]
openssl: fix subjectAltName check on non-ASCII platforms
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Curl_cert_hostcheck operates with the host character set, therefore the
ASCII subjectAltName string retrieved with OpenSSL must be converted to
the host encoding before comparison.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #2493
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (20 Apr 2018)
- openssl: Add support for OpenSSL 1.1.1 verbose-mode trace messages
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- Support handling verbose-mode trace messages of type
SSL3_RT_INNER_CONTENT_TYPE, SSL3_MT_ENCRYPTED_EXTENSIONS,
SSL3_MT_END_OF_EARLY_DATA, SSL3_MT_KEY_UPDATE, SSL3_MT_NEXT_PROTO,
SSL3_MT_MESSAGE_HASH
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: iz8mbw@users.noreply.github.com
Fixes https://github.com/curl/curl/issues/2403
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (19 Apr 2018)
- ftplistparser: keep state between invokes
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Regression from f786d1f14
Reported-by: wncboy on github
Fixes #2445
Closes #2508
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- detect_proxy: only show proxy use if it had contents
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- http2: handle on_begin_headers() called more than once
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
This triggered an assert if called more than once in debug mode (and a
memory leak if not debug build). With the right sequence of HTTP/2
headers incoming it can happen.
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
Detected by OSS-Fuzz
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2507
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7764
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (18 Apr 2018)
- [Dan McNulty brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
schannel: add support for CURLOPT_CAINFO
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- Move verify_certificate functionality in schannel.c into a new
file called schannel_verify.c. Additionally, some structure defintions
from schannel.c have been moved to schannel.h to allow them to be
used in schannel_verify.c.
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
- Make verify_certificate functionality for Schannel available on
all versions of Windows instead of just Windows CE. verify_certificate
will be invoked on Windows CE or when the user specifies
CURLOPT_CAINFO and CURLOPT_SSL_VERIFYPEER.
- In verify_certificate, create a custom certificate chain engine that
exclusively trusts the certificate store backed by the CURLOPT_CAINFO
file.
- doc updates of --cacert/CAINFO support for schannel
- Use CERT_NAME_SEARCH_ALL_NAMES_FLAG when invoking CertGetNameString
when available. This implements a TODO in schannel.c to improve
handling of multiple SANs in a certificate. In particular, all SANs
will now be searched instead of just the first name.
- Update tool_operate.c to not search for the curl-ca-bundle.crt file
when using Schannel to maintain backward compatibility. Previously,
any curl-ca-bundle.crt file found in that search would have been
ignored by Schannel. But, with CAINFO support, the file found by
that search would have been used as the certificate store and
could cause issues for any users that have curl-ca-bundle.crt in
the search path.
- Update url.c to not set the build time CURL_CA_BUNDLE if the selected
SSL backend is Schannel. We allow setting CA location for schannel
only when explicitly specified by the user via CURLOPT_CAINFO /
--cacert.
- Add new test cases 3000 and 3001. These test cases check that the first
and last SAN, respectively, matches the connection hostname. New test
certificates have been added for these cases. For 3000, the certificate
prefix is Server-localhost-firstSAN and for 3001, the certificate
prefix is Server-localhost-secondSAN.
- Remove TODO 15.2 (Add support for custom server certificate
validation), this commit addresses it.
Closes https://github.com/curl/curl/pull/1325
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- schannel: fix warning
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- Fix warning 'integer from pointer without a cast' on 3rd arg in
CertOpenStore. The arg type HCRYPTPROV may be a pointer or integer
type of the same size.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Follow-up to e35b025.
Caught by Marc's CI builds.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Jakub Wilk brought this change]
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
docs: fix typos
Closes https://github.com/curl/curl/pull/2503
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (17 Apr 2018)
- RELEASE-NOTES: synced
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (17 Apr 2018)
- [Kees Dekker brought this change]
winbuild: Support custom devel paths for each dependency
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- Support custom devel paths for c-ares, mbedTLS, nghttp2, libSSH2,
OpenSSL and zlib. Respectively: CARES_PATH, MBEDTLS_PATH,
NGHTTP2_PATH, SSH2_PATH, SSL_PATH and ZLIB_PATH.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- Use lib.exe for making the static library instead of link.exe /lib.
The latter is undocumented and could cause problems as noted in the
comments.
- Remove a dangling URL that no longer worked. (I was not able to find
the IDN download at MSDN/microsoft.com, so it seems to be removed.)
- Remove custom override for release-ssh2-ssl-dll-zlib configuration.
Nobody knows why it was there and as far as we can see is unnecessary.
Closes https://github.com/curl/curl/pull/2474
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (17 Apr 2018)
- [Jess brought this change]
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
README.md: add backers and sponsors
Closes #2484
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Archangel_SDY brought this change]
schannel: add client certificate authentication
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Users can now specify a client certificate in system certificates store
explicitly using expression like `--cert "CurrentUser\MY\<thumbprint>"`
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #2376
Marcel Raad (16 Apr 2018)
- [toughengineer brought this change]
ntlm_sspi: fix authentication using Credential Manager
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
If you pass empty user/pass asking curl to use Windows Credential
Storage (as stated in the docs) and it has valid credentials for the
domain, e.g.
curl -v -u : --ntlm example.com
currently authentication fails.
This change fixes it by providing proper SPN string to the SSPI API
calls.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Fixes https://github.com/curl/curl/issues/1622
Closes https://github.com/curl/curl/pull/1660
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (16 Apr 2018)
- configure: keep LD_LIBRARY_PATH changes local
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
... only set it when we actually have to run tests to reduce its impact
on for example build commands etc.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2490
Closes #2492
Reported-by: Dmitry Mikhirev
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Marcel Raad (16 Apr 2018)
- urldata: make service names unconditional
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
The ifdefs have become quite long. Also, the condition for the
definition of CURLOPT_SERVICE_NAME and for setting it from
CURLOPT_SERVICE_NAME have diverged. We will soon also need the two
options for NTLM, at least when using SSPI, for
https://github.com/curl/curl/pull/1660.
Just make the definitions unconditional to make that easier.
Closes https://github.com/curl/curl/pull/2479
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (16 Apr 2018)
- test1148: tolerate progress updates better
Fixes #2446
Closes #2488
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Christian Schmitz brought this change]
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
ssh: show libSSH2 error code when closing fails
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #2500
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (15 Apr 2018)
- [Daniel Gustafsson brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
vauth: Fix typo
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Address various spellings of "credentials".
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2496
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- [Dagobert Michelsen brought this change]
system.h: Add sparcv8plus to oracle/sunpro 32-bit detection
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
With specific compiler options selecting the arch like -xarch=sparc on
newer compilers like Oracle Studio 12.4 there is no definition of
__sparcv8 but __sparcv8plus which means the V9 ISA, but limited to the
32ÎíÎñbit subset defined by the V8plus ISA specification, without the
Visual Instruction Set (VIS), and without other implementation-specific
ISA extensions. So it should be the same as __sparcv8.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2491
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Daniel Gustafsson brought this change]
checksrc: Fix typo
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Fix typo in "semicolon" spelling and remove stray tab character.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2498
- [Daniel Gustafsson brought this change]
all: Refactor malloc+memset to use calloc
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
When a zeroed out allocation is required, use calloc() rather than
malloc() followed by an explicit memset(). The result will be the
same, but using calloc() everywhere increases consistency in the
codebase and avoids the risk of subtle bugs when code is injected
between malloc and memset by accident.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2497
Daniel Stenberg (12 Apr 2018)
- duphandle: make sure CURLOPT_RESOLVE is duplicated fine too
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
Verified in test 1502 now
Fixes #2485
Closes #2486
Reported-by: Ernst Sjöstrand
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- mailmap: add a monnerat fixup [ci skip]
- proxy: show getenv proxy use in verbose output
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
... to aid debugging etc as it sometimes isn't immediately obvious why
curl uses or doesn't use a proxy.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Inspired by #2477
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2480
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- travis: build libpsl and make builds use it
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
closes #2471
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- travis: bump to clang 6 and gcc 7
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Extra-eye-on-this-by: Marcel Raad
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2478
Marcel Raad (10 Apr 2018)
- travis: use trusty for coverage build
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
This works now and precise is in the process of being decommissioned.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2476
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- lib: silence null-dereference warnings
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
In debug mode, MingGW-w64's GCC 7.3 issues null-dereference warnings
when dereferencing pointers after DEBUGASSERT-ing that they are not
NULL.
Fix this by removing the DEBUGASSERTs.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Suggested-by: Daniel Stenberg
Ref: https://github.com/curl/curl/pull/2463
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- [Kees Dekker brought this change]
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
winbuild: fix URL
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Follow up on https://github.com/curl/curl/pull/2472.
Now using en-us instead of nl-nl as language code in the URL.
Closes https://github.com/curl/curl/pull/2475
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (9 Apr 2018)
- [Kees Dekker brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
winbuild: updated the documentation
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
The setenv command no longer exists and visual studio build prompts got
changed. Used Visual Studio 2015/2017 as reference.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2472
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- test1136: fix cookie order after commit c990eadd1277
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- build: cleanup to fix clang warnings/errors
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
unit1309 and vtls/gtls: error: arithmetic on a null pointer treated as a
cast from integer to pointer is a GNU extension
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Rikard Falkeborn
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2466
Closes #2468
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (7 Apr 2018)
- examples/sftpuploadresmue: Fix Windows large file seek
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- Use _fseeki64 instead of fseek (long) to seek curl_off_t in Windows.
- Use CURL_FORMAT_CURL_OFF_T specifier instead of %ld to print
curl_off_t.
Caught by Marc's CI builds.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (7 Apr 2018)
- curl_setup: provide a CURL_SA_FAMILY_T type if none exists
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
... and use this type instead of 'sa_family_t' in the code since several
platforms don't have it.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2463
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- [Eric Gallager brought this change]
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
build: add picky compiler warning flags for gcc 6 and 7
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- configure: detect sa_family_t
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (7 Apr 2018)
- [Stefan Agner brought this change]
tool_operate: Fix retry on FTP 4xx to ignore other protocols
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Only treat response code as FTP response codes in case the
protocol type is FTP.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
This fixes an issue where an HTTP download was treated as FTP
in case libcurl returned with 33. This happens when the
download has already finished and the server responses 416:
HTTP/1.1 416 Requested Range Not Satisfiable
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
This should not be treated as an FTP error.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2464
Closes #2465
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (6 Apr 2018)
- hash: calculate sizes with size_t instead of longs
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
... since they return size_t anyway!
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
closes #2462
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- [Jay Satiro brought this change]
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
build-openssl.bat: Refer to VS2017 as VC14.1 instead of VC15
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
.. and do the same for build-wolfssl.bat.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Because MS calls it VC14.1.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2189
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- [Kees Dekker brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
winbuild: make the clean target work without build-type
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
Due to the check in Makefile.vc and MakefileBuild.vc, no make call can
be invoked unless a build-type was specified. However, a clean target
only existed when a build type was specified. As a result, the clean
target was unreachable. Made clean target unconditional.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #2455
- [patelvivekv1993 brought this change]
build-openssl.bat: allow custom paths for VS and perl
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2430
Closes #2457
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- [Laurie Clark-Michalek brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
FTP: allow PASV on IPv6 connections when a proxy is being used
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
In the situation of a client connecting to an FTP server using an IPv6
tunnel proxy, the connection info will indicate that the connection is
IPv6. However, because the server behing the proxy is IPv4, it is
permissable to attempt PSV mode. In the case of the FTP server being
IPv4 only, EPSV will always fail, and with the current logic curl will
be unable to connect to the server, as the IPv6 fwdproxy causes curl to
think that EPSV is impossible.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2432
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Jon DeVree brought this change]
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
file: restore old behavior for file:////foo/bar URLs
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
curl 7.57.0 and up interpret this according to Appendix E.3.2 of RFC
8089 but then returns an error saying this is unimplemented. This is
actually a regression in behavior on both Windows and Unix.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Before curl 7.57.0 this URL was treated as a path of "//foo/bar" and
then passed to the relevant OS API. This means that the behavior of this
case is actually OS dependent.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
The Unix path resolution rules say that the OS must handle swallowing
the extra "/" and so this path is the same as "/foo/bar"
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
The Windows path resolution rules say that this is a UNC path and
automatically handles the SMB access for the program. So curl on Windows
was already doing Appendix E.3.2 without any special code in curl.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Regression
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #2438
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- [Gaurav Malhotra brought this change]
Revert "openssl: Don't add verify locations when verifypeer==0"
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
This reverts commit dc85437736e1fc90e689bb1f6c51c8f1aa9430eb.
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
libcurl (with the OpenSSL backend) performs server certificate verification
even if verifypeer == 0 and the verification result is available using
CURLINFO_SSL_VERIFYRESULT. The commit that is being reverted caused the
CURLINFO_SSL_VERIFYRESULT to not have useful information for the
verifypeer == 0 use case (it would always have
X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY).
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2451
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
- [Wyatt O'Day brought this change]
tls: fix mbedTLS 2.7.0 build + handle sha256 failures
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
(mbedtls 2.70 compiled with MBEDTLS_DEPRECATED_REMOVED)
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2453
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
- [Lauri Kasanen brought this change]
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
cookie: case-insensitive hashing for the domains
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
closes #2458
Patrick Monnerat (4 Apr 2018)
- cookie: fix and optimize 2nd top level domain name extraction
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
This fixes a segfault occurring when a name of the (invalid) form "domain..tld"
is processed.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
test46 updated to cover this case.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Follow-up to commit c990ead.
Ref: https://github.com/curl/curl/pull/2440
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (4 Apr 2018)
- openssl: provide defines for argument typecasts to build warning-free
... as OpenSSL >= 1.1.0 and libressl >= 2.7.0 use different argument types.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- [Bernard Spil brought this change]
openssl: fix build with LibreSSL 2.7
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- LibreSSL 2.7 implements (most of) OpenSSL 1.1 API
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2319
Closes #2447
Closes #2448
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Bernard Spil <brnrd@FreeBSD.org>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Lauri Kasanen brought this change]
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
cookie: store cookies per top-level-domain-specific hash table
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
This makes libcurl handle thousands of cookies much better and speedier.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #2440
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- [Lauri Kasanen brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
cookies: when reading from a file, only remove_expired once
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
This drops the cookie load time for 8k cookies from 178ms to 15ms.
Closes #2441
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
- test1148: set a fixed locale for the test
...as otherwise it might use a different decimal sign.
Bug: #2436
Reported-by: Oumph on github
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (31 Mar 2018)
- docs: fix CURLINFO_*_T examples use of CURL_FORMAT_CURL_OFF_T
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- Put a percent sign before each CURL_FORMAT_CURL_OFF_T in printf.
For example "%" CURL_FORMAT_CURL_OFF_T becomes %lld or similar.
Bug: https://curl.haxx.se/mail/lib-2018-03/0140.html
Reported-by: David L.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Sergei Nikulov (27 Mar 2018)
- [Michał Janiszewski brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
cmake: Add advapi32 as explicit link library for win32
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
ARM targets need advapi32 explicitly.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2363
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (27 Mar 2018)
- TODO: connection cache sharing is now supporte
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (26 Mar 2018)
- travis: enable apt retry on fail
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
This is a workaround for an unsolved travis issue that is causing CI
instances to sporadically fail due to 'unable to connect' issues during
apt stage.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Ref: https://github.com/travis-ci/travis-ci/issues/8507
Ref: https://github.com/travis-ci/travis-ci/issues/9112#issuecomment-376305909
Michael Kaufmann (26 Mar 2018)
- runtests.pl: fix warning 'use of uninitialized value'
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
follow-up to a9a7b60
Closes #2428
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (24 Mar 2018)
- gitignore: ignore more generated files
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- threaded resolver: track resolver time and set suitable timeout values
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
In order to make curl_multi_timeout() return suitable "sleep" times even
when there's no socket to wait for while the name is being resolved in a
helper thread.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
It will increases the timeouts as time passes.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2419
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- [Howard Chu brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
openldap: fix for NULL return from ldap_get_attribute_ber()
Closes #2399
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
GitHub (22 Mar 2018)
- [Sergei Nikulov brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
travis-ci: enable -Werror for CMake builds (#2418)
- [Sergei Nikulov brought this change]
cmake: avoid warn-as-error during config checks (#2411)
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- Move the CURL_WERROR option processing after the configuration checks
to avoid failures in case of warnings during the configuration checks.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
This is a partial fix for #2358
- [Sergei Nikulov brought this change]
timeval: remove compilation warning by casting (#2417)
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
This is fixes #2358
Daniel Stenberg (22 Mar 2018)
- http2: read pending frames (including GOAWAY) in connection-check
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
If a connection has received a GOAWAY frame while not being used, the
function now reads frames off the connection before trying to reuse it
to avoid reusing connections the server has told us not to use.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Alex Baines
Fixes #1967
Closes #2402
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Bas van Schaik brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
CI: add lgtm.yml for tweaking lgtm.com analysis
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2414
- CURLINFO_SSL_VERIFYRESULT.3: fix the example, add some text
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Michal Trybus
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2400
- TODO: expand ~/ in config files
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #2317
- cookie.d: mention that "-" as filename means stdin
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Dongliang Mu
Fixes #2410
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- CURLINFO_COOKIELIST.3: made the example not leak memory
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Muz Dima
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- vauth/cleartext: fix integer overflow check
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Make the integer overflow check not rely on the undefined behavior that
a size_t wraps around on overflow.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Detected by lgtm.com
Closes #2408
- lib/curl_path.h: add #ifdef header guard
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Detected by lgtm.com
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- vauth/ntlm.h: fix the #ifdef header guard
Detected by lgtm.com
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (20 Mar 2018)
- examples/hiperfifo: checksrc compliance
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (19 Mar 2018)
- [Nikos Tsipinakis brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
parsedate: support UT timezone
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
RFC822 section 5.2 mentions Universal Time, 'UT', to be synonymous with
GMT.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #2401
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Don brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
cmake: add support for brotli
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Currently CMake cannot detect Brotli support. This adds detection of the
libraries and associated header files. It also adds this to the
generated config.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #2392
- [Chris Araman brought this change]
darwinssl: fix iOS build
Patrick Monnerat (18 Mar 2018)
- ILE/RPG binding: Add CURLOPT_HAPROXYPROTOCOL/Fix CURLOPT_DNS_SHUFFLE_ADDRESSES
Daniel Stenberg (17 Mar 2018)
- [Rick Deist brought this change]
resolve: add CURLOPT_DNS_SHUFFLE_ADDRESSES
This patch adds CURLOPT_DNS_SHUFFLE_ADDRESSES to explicitly request
shuffling of IP addresses returned for a hostname when there is more
than one. This is useful when the application knows that a round robin
approach is appropriate and is willing to accept the consequences of
potentially discarding some preference order returned by the system's
implementation.
Closes #1694
- add_handle/easy_perform: clear errorbuffer on start if set
To offer applications a more defined behavior, we clear the buffer as
early as possible.
2018-02-04 17:52:34 +00:00
2018-03-20 13:49:31 +00:00
Assisted-by: Jay Satiro
2018-07-15 15:57:46 +00:00
Fixes #2190
Closes #2377
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- [Lawrence Matthews brought this change]
CURLOPT_HAPROXYPROTOCOL: support the HAProxy PROXY protocol
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Add --haproxy-protocol for the command line tool
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #2162
- curl_version_info.3: fix ssl_version description
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Vincas Razma
Fixes #2364
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- multi: improved pending transfers handling => improved performance
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
When a transfer is requested to get done and it is put in the pending
queue when limited by number of connections, total or per-host, libcurl
would previously very aggressively retry *ALL* pending transfers to get
them transferring. That was very time consuming.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
By reducing the aggressiveness in how pending are being retried, we
waste MUCH less time on putting transfers back into pending again.
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Some test cases got a factor 30(!) speed improvement with this change.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Cyril B
Fixes #2369
Closes #2383
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- pause: when changing pause state, update socket state
Especially unpausing a transfer might have to move the socket back to the
"currently used sockets" hash to get monitored. Otherwise it would never get
any more data and get stuck. Easily triggered with pausing using the
multi_socket API.
Reported-by: Philip Prindeville
Bug: https://curl.haxx.se/mail/lib-2018-03/0048.html
Fixes #2393
Closes #2391
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- [Philip Prindeville brought this change]
examples/hiperfifo.c: improved
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
* use member struct event’ s instead of pointers to alloc’ d struct
events
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
* simplify the cases for the mcode_or_die() function via macros;
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
* make multi_timer_cb() actually do what the block comment says it
should;
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
* accept a “stop” command on the FIFO to shut down the service;
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
* use cleaner notation for unused variables than the (void) hack;
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
* allow following redirections (304’ s);
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- rate-limit: use three second window to better handle high speeds
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Due to very frequent updates of the rate limit "window", it could
attempt to rate limit within the same milliseconds and that then made
the calculations wrong, leading to it not behaving correctly on very
fast transfers.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
This new logic updates the rate limit "window" to be no shorter than the
last three seconds and only updating the timestamps for this when
switching between the states TOOFAST/PERFORM.
Reported-by: 刘佩东
Fixes #2386
Closes #2388
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [luz.paz brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
cleanup: misc typos in strings and comments
Found via `codespell`
Closes #2389
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: toward 7.60.0
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Kobi Gurkan brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
http2: fixes typo
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2387
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- user-agent.d:: mention --proxy-header as well
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://github.com/curl/curl/issues/2381
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- transfer: make HTTP without headers count correct body size
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
This is what "HTTP/0.9" basically looks like.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Reported on IRC
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Closes #2382
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- test1208: marked flaky
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
It fails somewhere between every 3rd to 10th travis-CI run
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- SECURITY-PROCESS: mention how we write/add advisories
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [dasimx brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
FTP: fix typo in recursive callback detection for seeking
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2380
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Version 7.59.0 (13 Mar 2018)
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (13 Mar 2018)
- release: 7.59.0
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Kamil Dudka (13 Mar 2018)
- tests/.../spnego.py: fix identifier typo
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Detected by Coverity Analysis:
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
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"?
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2379
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (13 Mar 2018)
- CURLOPT_COOKIEFILE.3: "-" as file name means stdin
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Aron Bergman
Bug: https://curl.haxx.se/mail/lib-2018-03/0049.html
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
[ci skip]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- Revert "hostip: fix compiler warning: 'variable set but not used'"
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
This reverts commit a577059f92fc65bd6b81717f0737f897a5b34248.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
The assignment really needs to be there or we risk working with an
uninitialized pointer.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Michael Kaufmann (12 Mar 2018)
- limit-rate: fix compiler warning
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
follow-up to 72a0f62
Viktor Szakats (12 Mar 2018)
- checksrc.pl: add -i and -m options
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
To sync it with changes made for the libssh2 project.
Also cleanup some whitespace.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- curl-openssl.m4: fix spelling [ci skip]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- FAQ: fix a broken URL [ci skip]
Daniel Stenberg (12 Mar 2018)
- http2: mark the connection for close on GOAWAY
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
... don't consider it an error!
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Assisted-by: Jay Satiro
Reported-by: Łukasz Domeradzki
Fixes #2365
Closes #2375
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- credits: Viktor prefers without accent
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- openldap: white space changes, fixed up the copyright years
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- openldap: check ldap_get_attribute_ber() results for NULL before using
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
CVE-2018-1000121
Reported-by: Dario Weisser
Bug: https://curl.haxx.se/docs/adv_2018-97a2.html
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- FTP: reject path components with control codes
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Refuse to operate when given path components featuring byte values lower
than 32.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
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.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Test case 340 verifies.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
CVE-2018-1000120
Reported-by: Duy Phan Thanh
Bug: https://curl.haxx.se/docs/adv_2018-9cd6.html
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- readwrite: make sure excess reads don't go beyond buffer end
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
CVE-2018-1000122
Bug: https://curl.haxx.se/docs/adv_2018-b047.html
Detected by OSS-fuzz
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- BUGS: updated link to security process
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- limit-rate: kick in even before "limit" data has been received
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
... and make sure to avoid integer overflows with really large values.
Reported-by: 刘佩东
Fixes #2371
Closes #2373
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- docs/SECURITY.md -> docs/SECURITY-PROCESS.md
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- SECURITY.md: call it the security process
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Michael Kaufmann (11 Mar 2018)
- Curl_range: fix FTP-only and FILE-only builds
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
follow-up to e04417d
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- hostip: fix compiler warning: 'variable set but not used'
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (11 Mar 2018)
- HTTP: allow "header;" to replace an internal header with a blank one
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Michael Kaufmann
Fixes #2357
Closes #2362
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- http2: verbose output new MAX_CONCURRENT_STREAMS values
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
... as it is interesting for many users.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- SECURITY: distros' max embargo time is 14 days now
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (8 Mar 2018)
- curl tool: accept --compressed also if Brotli is enabled and zlib is not.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (5 Mar 2018)
- THANKS + mailmap: remove duplicates, fixup full names
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [sergii.kavunenko brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
WolfSSL: adding TLSv1.3
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #2349
- RELEASE-NOTES/THANKS: synced with cc1d4c505
- [Richard Alcock brought this change]
winbuild: prefer documented zlib library names
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Check for existence of import and static libraries with documented names
and use them if they do. Fallback to previous names.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
According to
https://github.com/madler/zlib/blob/master/win32/README-WIN32.txt on
Windows, the names of the import library is "zdll.lib" and static
library is "zlib.lib".
closes #2354
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Marcel Raad (4 Mar 2018)
- krb5: use nondeprecated functions
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
gss_seal/gss_unseal have been deprecated in favor of
gss_wrap/gss_unwrap with GSS-API v2 from January 1997 [1]. The first
version of "The Kerberos Version 5 GSS-API Mechanism" [2] from June
1996 already says "GSS_Wrap() (formerly GSS_Seal())" and
"GSS_Unwrap() (formerly GSS_Unseal())".
Use the nondeprecated functions to avoid deprecation warnings.
[1] https://tools.ietf.org/html/rfc2078
[2] https://tools.ietf.org/html/rfc1964
Closes https://github.com/curl/curl/pull/2356
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (4 Mar 2018)
- curl.1: mention how to add numerical IP addresses in NO_PROXY
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- CURLOPT_NOPROXY.3: mention how to list numerical IPv6 addresses
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- NO_PROXY: fix for IPv6 numericals in the URL
Added test 1265 that verifies.
Reported-by: steelman on github
Fixes #2353
Closes #2355
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- build: get CFLAGS (including -werror) used for examples and tests
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
... so that the CI and more detects compiler warnings/errors properly!
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #2337
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Marcel Raad (3 Mar 2018)
- curl_ctype: fix macro redefinition warnings
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Suggested-by: Daniel Stenberg
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Dan Fandrich (2 Mar 2018)
- unit1307: proper cleanup on OOM to fix torture tests
Marcel Raad (28 Feb 2018)
- unit1309: fix warning on Windows x64
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
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
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- travis: update compiler versions
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Update clang to version 3.9 and GCC to version 6.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2345
Daniel Stenberg (26 Feb 2018)
- docs/MANUAL: formfind.pl is not accessible on the site anymore
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2342
Jay Satiro (24 Feb 2018)
- curl-openssl.m4: Fix version check for OpenSSL 1.1.1
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- Add OpenSSL 1.1.1 to the header/library version lists.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- Detect OpenSSL 1.1.1 library using its function ERR_clear_last_mark,
which was added in that version.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
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.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Viktor Szakats (23 Feb 2018)
- lib655: silence compiler warning
Closes https://github.com/curl/curl/pull/2335
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- spelling fixes
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Detected using the `codespell` tool.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Also contains one URL protocol upgrade.
Closes https://github.com/curl/curl/pull/2334
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (24 Feb 2018)
- projects/README: remove reference to dead IDN link/package
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Stefan Kanthak and Rod Widdowson
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2325
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (23 Feb 2018)
- [Rod Widdowson brought this change]
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
winbuild: Use macros for the names of some build utilities
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- Add macros to the top of the makefile for rc and mt utilities so that
it is easier to change their locations.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://curl.haxx.se/mail/lib-2018-02/0075.html
Reported-by: Stefan Kanthak
Closes https://github.com/curl/curl/issues/2329
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (23 Feb 2018)
- TODO: remove "sha-256 digest", added in 2b5b37cb9109e7c2
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- curl_share_setopt.3: connection cache is shared within multi handles
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (22 Feb 2018)
- [Rod Widdowson brought this change]
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
winbuild: Use CALL to run batch scripts
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Co-authored-by: Stefan Kanthak
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/issues/2330
Closes https://github.com/curl/curl/pull/2331
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (22 Feb 2018)
- os400: add curl_resolver_start_callback type to ILE/RPG binding
Daniel Stenberg (22 Feb 2018)
- form.d: rephrased somewhat, added two example command lines
Jay Satiro (21 Feb 2018)
- [Francisco Sedano brought this change]
url: Add option CURLOPT_RESOLVER_START_FUNCTION
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- 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.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- Add new option CURLOPT_RESOLVER_START_DATA to set a user pointer to
pass to the resolver start callback.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2311
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- lib: CURLOPT_HAPPY_EYEBALLS_TIMEOUT => CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- In keeping with the naming of our other connect timeout options rename
CURLOPT_HAPPY_EYEBALLS_TIMEOUT to CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
The tool option already uses an -ms suffix, --happy-eyeballs-timeout-ms.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Follow-up to 2427d94 which added the lib and tool option yesterday.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Ref: https://github.com/curl/curl/pull/2260
Patrick Monnerat (21 Feb 2018)
- sasl: prefer PLAIN mechanism over LOGIN
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
SASL PLAIN is a standard, LOGIN only a draft. The LOGIN draft says
PLAIN should be used instead if available.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (21 Feb 2018)
- RELEASE-NOTES: synced with 2427d94c6
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (20 Feb 2018)
- [Anders Bakken brought this change]
url: Add option CURLOPT_HAPPY_EYEBALLS_TIMEOUT
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- Add new option CURLOPT_HAPPY_EYEBALLS_TIMEOUT to set libcurl's happy
eyeball timeout value.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- Add new optval macro CURL_HET_DEFAULT to represent the default happy
eyeballs timeout value (currently 200 ms).
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- Add new tool option --happy-eyeballs-timeout-ms to expose
CURLOPT_HAPPY_EYEBALLS_TIMEOUT. The -ms suffix is used because the
other -timeout options in the tool expect seconds not milliseconds.
Closes https://github.com/curl/curl/pull/2260
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- hostip: fix 'potentially uninitialized variable' warning
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Follow-up to 50d1b33.
Caught by AppVeyor.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
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]
CURLOPT_RESOLVE: Add support for multiple IP addresses per entry
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
This enables users to preresolve but still take advantage of happy
eyeballs and trying multiple addresses if some are not connecting.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Ref: https://github.com/curl/curl/pull/2260
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (20 Feb 2018)
- [Sergio Borghese brought this change]
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
examples/sftpuploadresume: resume upload via CURLOPT_APPEND
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
URL: https://curl.haxx.se/mail/lib-2018-02/0072.html
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- curl --version: show PSL if the run-time lib has it enabled
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
... not of the #define was set at build-time!
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- TODO: "Support in-memory certs/ca certs/keys"
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
removed SSLKEYLOGFILE support (fixed)
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
removed "consider SSL patches" (outdated)
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2310
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- CURLOPT_HEADER.3: clarify problems with different data sizes
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- test1556: verify >16KB headers to the header callback
- header callback: don't chop headers into smaller pieces
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Guido Berhoerster
Fixes #2314
Closes #2316
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- test1154: verify that long HTTP headers get rejected
- http: fix the max header length detection logic
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Guido Berhoerster
Bug: https://curl.haxx.se/mail/lib-2018-02/0056.html
Closes #2315
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- CURLOPT_HEADERFUNCTION.3: fix typo from d939226813
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Erik Johansson
Bug: https://github.com/curl/curl/commit/d9392268131c1b8d18dec3fa30e0bded833a5db7#commitcomment-27607495
- CURLOPT_HEADERFUNCTION.3: mention folded headers
- TODO: 1.1 Option to refuse usernames in URLs
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Also expanded the CURL_REFUSE_CLEARTEXT section with more ideas.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- TODO: 1.7 Support HTTP/2 for HTTP(S) proxies
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- ssh: add two missing state names
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
The list of state names (used in debug builds) was out of sync in
relation to the list of states (used in all builds).
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
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.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Regression since c92d2e14cf, shipped in 7.58.0.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Somnath Kundu
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2312
Closes #2313
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- Revert "KNOWN_BUGS: 2.5 curl should not offer "ALPN: h2" when using https-proxy"
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
This reverts commit de9fac00c40db321d44fa6fbab6eb62ec4c83998.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Jay Satiro
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (15 Feb 2018)
- non-ascii: fix implicit declaration warning
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Follow-up to b46cfbc.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Caught by Travis CI.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (15 Feb 2018)
- travis: add build with iconv enabled
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
... to verify it builds and works fine.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Ref: https://curl.haxx.se/mail/lib-2017-09/0031.html
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #1872
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- TODO: 18.18 retry on network is unreachable
Closes #1603
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- KNOWN_BUGS: 2.5 curl should not offer "ALPN: h2" when using https-proxy
Closes #1254
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Kamil Dudka (15 Feb 2018)
- nss: use PK11_CreateManagedGenericObject() if available
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
... so that the memory allocated by applications using libcurl does not
grow per each TLS connection.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://bugzilla.redhat.com/1510247
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #2297
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (15 Feb 2018)
- [Björn Stenberg brought this change]
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
TODO fixed: Detect when called from within callbacks
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Closes #2302
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- BINDINGS: fix curb link (and remove ruby-curl-multi)
Reported-by: Klaus Stein
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- curl_gssapi: make sure this file too uses our *printf()
- libcurl-security.3: separate file:// section
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
... just to make it more apparent. Even if it repeats
some pieces of information.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- libcurl-security.3: the http://192.168.0.1/my_router_config case
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Mentioned-By: Rich Moore
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- libcurl-security.3: mention the URL standards problems too
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- libcurl-security.3: split out from libcurl-tutorial.3
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
To make more accessible.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Merged in some new language from "URLs are dangerous things" as discussed on
the mailing list a few days ago:
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://curl.haxx.se/mail/lib-2018-02/0013.html
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced with e551910f8
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (13 Feb 2018)
- tests: new tests for http raw mode
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Test 319 checks proper raw mode data with non-chunked gzip
transfer-encoded server data.
Test 326 checks raw mode with chunked server data.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Bug: #2303
Closes #2308
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Kamil Dudka (12 Feb 2018)
- tlsauthtype.d: works only if libcurl is built with TLS-SRP support
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://bugzilla.redhat.com/1542256
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #2306
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (12 Feb 2018)
- smtp: fix processing of initial dot in data
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
RFC 5321 4.1.1.4 specifies the CRLF terminating the DATA command
should be taken into account when chasing the <CRLF>.<CRLF> end marker.
Thus a leading dot character in data is also subject to escaping.
Tests 911 and test server are adapted to this situation.
New tests 951 and 952 check proper handling of initial dot in data.
Closes #2304
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (12 Feb 2018)
- sha256: avoid redefine
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- [Douglas Mencken brought this change]
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
sha256: build with OpenSSL < 0.9.8 too
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
support for SHA-2 was introduced in OpenSSL 0.9.8
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #2305
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- [Bruno Grasselli brought this change]
README: language fix
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
s/off/from
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #2300
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (12 Feb 2018)
- http_chunks: don't write chunks twice with CURLOPT_HTTP_TRANSFER_DECODING on
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Bug: #2303
Reported-By: Henry Roeland
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (9 Feb 2018)
- get_posix_time: only check for overflows if they can happen!
Michael Kaufmann (9 Feb 2018)
- schannel: fix "no previous prototype" compiler warning
Jay Satiro (9 Feb 2018)
- [Mohammad AlSaleh brought this change]
content_encoding: Add "none" alias to "identity"
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Some servers return a "content-encoding" header with a non-standard
"none" value.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Add "none" as an alias to "identity" as a work-around, to avoid
unrecognised content encoding type errors.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
Closes https://github.com/curl/curl/pull/2298
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Steve Holme (8 Feb 2018)
- build-openssl.bat: Follow up to 648679ab8e to suppress copy/move output
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- build-openssl.bat: Fixed incorrect move if destination build folder exists
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Michael Kaufmann (8 Feb 2018)
- schannel: fix compiler warnings
Closes #2296
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Steve Holme (7 Feb 2018)
- curl_addrinfo.c: Allow Unix Domain Sockets to compile under Windows
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Windows 10.0.17061 SDK introduces support for Unix Domain Sockets.
Added the necessary include file to curl_addrinfo.c.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (7 Feb 2018)
- fnmatch: optimize processing of consecutive *s and ?s pattern characters
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Reported-By: Daniel Stenberg
Fixes #2291
Closes #2293
Steve Holme (6 Feb 2018)
- build-openssl.bat/build-wolfssl.bat: Build platform is optional
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Whilst the compiler parameter is mandatory, platform is optional as it
is automatically calculated by the :configure section.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
This partially reverts commit 6d62d2c55d.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (6 Feb 2018)
- [Patrick Schlangen brought this change]
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
openssl: Don't add verify locations when verifypeer==0
When peer verification is disabled, calling
SSL_CTX_load_verify_locations is not necessary. Only call it when
verification is enabled to save resources and increase performance.
Closes #2290
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Steve Holme (5 Feb 2018)
- build-wolfssl.bat: Extend VC15 support to include Enterprise and Professional
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
...and not just the Community Edition.
- build-openssl.bat: Extend VC15 support to include Enterprise and Professional
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
...and not just the Community Edition.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Michael Kaufmann (5 Feb 2018)
- time-cond: fix reading the file modification time on Windows
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
On Windows, stat() may adjust the unix file time by a daylight saving time
offset. Avoid this by calling GetFileTime() instead.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2164
Closes #2204
Daniel Stenberg (5 Feb 2018)
- formdata: use the mime-content type function
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
PR #2280 brought this to my attention.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2282
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- getdate: return -1 for out of range
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
...as that's how the function is documented to work.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Michael Kaufmann
Bug found in an autobuild with 32 bit time_t
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #2278
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
- [Ben Greear brought this change]
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
build: fix termios issue on android cross-compile
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://curl.haxx.se/mail/lib-2018-01/0122.html
Signed-off-by: Ben Greear <greearb@candelatech.com>
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- time_t-fixes: remove typecasts to 'long' for info.filetime
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
They're now wrong.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Michael Kaufmann
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Closes #2277
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- curl_setup: move the precautionary define of SIZEOF_TIME_T
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
... up to before it may be used for the TIME_T_MAX/MIN logic.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Michael Kaufmann
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- parsedate: s/#if/#ifdef
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Michael Kaufmann
Bug: https://github.com/curl/curl/commit/1c39128d974666107fc6d9ea15f294036851f224#commitcomment-27246479
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (31 Jan 2018)
- fnmatch: pattern syntax can no longer fail
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
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.
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Unit test 1307 updated for this new situation.
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Closes #2273
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- fnmatch: accept an alphanum to be followed by a non-alphanum in char set
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Also be more tolerant about set pattern syntax.
Update unit test 1307 accordingly.
Bug: https://curl.haxx.se/mail/lib-2018-01/0114.html
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- fnmatch: do not match the empty string with a character set
Jay Satiro (30 Jan 2018)
- build: fix windows build methods for curl_ctype.c
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- 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.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Follow-up to 4272a0b which added curl_ctype.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (30 Jan 2018)
- progress-bar.d: update to match implementation
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
... since commit 993dd5651a6
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Martin Dreher
Bug: https://github.com/curl/curl/pull/2242#issuecomment-361059228
Closes #2271
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- http2: set DEBUG_HTTP2 to enable more HTTP/2 logging
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
... instead of doing it unconditionally in debug builds. It cluttered up
the output a little too much.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Max Dymond brought this change]
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
file: Check the return code from Curl_range and bail out on error
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
- [Max Dymond brought this change]
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Curl_range: add check to ensure "from <= to"
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- [Max Dymond brought this change]
Curl_range: commonize FTP and FILE range handling
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #2205
- RELEASE-NOTES: synced with 811beab9f
- curlver: next release will be 7.59.0
- [Michał Janiszewski brought this change]
curl/curl.h: fix comment typo for CURLOPT_DNS_LOCAL_IP6
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #2275
- time: support > year 2038 time stamps for system with 32bit long
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
... with the introduction of CURLOPT_TIMEVALUE_LARGE and
CURLINFO_FILETIME_T.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2238
Closes #2264
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- curl_easy_reset: clear digest auth state
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://curl.haxx.se/mail/lib-2018-01/0074.html
Reported-by: Ruurd Beerstra
Fixes #2255
Closes #2272
- [Adam Marcionek brought this change]
winbuild: make linker generate proper PDB
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Link.exe requires /DEBUG to properly generate a full pdb file on release
builds.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #2274
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- curl: add --proxy-pinnedpubkey
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
To verify a proxy's public key. For when using HTTPS proxies.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2192
Closes #2268
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- configure: set PATH_SEPARATOR to colon for PATH w/o separator
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
PATH_SEPARATOR can always be set by the user to override the guessing.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
(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
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- curl_ctype: private is*() type macros and functions
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
... 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.
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
Closes #2269
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Marcel Raad (29 Jan 2018)
- build: open VC15 projects with VS 2017
Previously, they were opened with Visual Studio 2015 by default, which
cannot build them.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (29 Jan 2018)
- RELEASE-NOTES: synced with 094647fca
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- TODO: UTF-8 filenames in Content-Disposition
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
Closes #1888
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- KNOWN_BUGS: DICT responses show the underlying protocol
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #1809
Jay Satiro (27 Jan 2018)
- [Alessandro Ghedini brought this change]
docs: fix typos in man pages
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2266
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (26 Jan 2018)
- lib555: drop text conversion and encode data as ascii codes
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
Bug: https://github.com/curl/curl/pull/1872
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (26 Jan 2018)
- lib517: make variable static to avoid compiler warning
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
... with clang on macos
Patrick Monnerat (26 Jan 2018)
- lib544: sync ascii code data with textual data
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Data mismatch caused test 545 to fail when character encoding
conversion is enabled.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://github.com/curl/curl/pull/1872
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (25 Jan 2018)
- [Travis Burtrum brought this change]
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
GSKit: restore pinnedpubkey functionality
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
inadvertently removed in 283babfaf8d8f3bab9d3c63cea94eb0b84e79c37
Closes #2263
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Dair Grant brought this change]
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
darwinssl: Don't import client certificates into Keychain on macOS
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #2085
- configure: fix the check for unsigned time_t
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
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.
- parsedate: fix date parsing for systems with 32 bit long
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Make curl_getdate() handle dates before 1970 as well (returning negative
values).
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Make test 517 test dates for 64 bit time_t.
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
This fixes bug (3) mentioned in #2238
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #2250
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
- [McDonough, Tim brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
openssl: fix pinned public key build error in FIPS mode
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Here is a version that should work with all versions of openssl 0.9.7
through 1.1.0.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
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
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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."
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #2258
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- [Travis Burtrum brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
SChannel/WinSSL: Replace Curl_none_md5sum with Curl_schannel_md5sum
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Travis Burtrum brought this change]
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
SChannel/WinSSL: Implement public key pinning
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #1429
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- bump: towards 7.58.1
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- cookies: remove verbose "cookie size:" output
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
It was once used for some debugging/verifying logic but should never have
ended up in git!
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- TODO: hardcode the "localhost" addresses
- TODO: CURL_REFUSE_CLEARTEXT
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
An idea that popped up in discussions on twitter.
- progress-bar: don't use stderr explicitly, use bar->out
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Reported-By: Gisle Vanem
Bug: https://github.com/curl/curl/commit/993dd5651a6c853bfe3870f6a69c7b329fa4e8ce#commitcomment-27070080
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
GitHub (24 Jan 2018)
- [Gisle Vanem brought this change]
Fixes for MSDOS etc.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
djgpp do have 'mkdir(dir, mode)'. Other DOS-compilers does not
But djgpp seems the only choice for MSDOS anyway.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
PellesC do have a 'F_OK' defined in it's <unistd.h>.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Update year in Copyright.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- [Gisle Vanem brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Fix small typo.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Version 7.58.0 (23 Jan 2018)
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (23 Jan 2018)
- RELEASE: 7.58.0
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Gisle Vanem brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
progress-bar: get screen width on windows
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- test1454: --connect-to with IPv6 address w/o IPv6 support!
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- CONNECT_TO: fail attempt to set an IPv6 numerical without IPv6 support
Bug: https://curl.haxx.se/mail/lib-2018-01/0087.html
Reported-by: John Hascall
Closes #2257
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- docs: fix man page syntax to make test 1140 OK again
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- http: prevent custom Authorization headers in redirects
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
... unless CURLOPT_UNRESTRICTED_AUTH is set to allow them. This matches how
curl already handles Authorization headers created internally.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Note: this changes behavior slightly, for the sake of reducing mistakes.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Added test 317 and 318 to verify.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Craig de Stigter
Bug: https://curl.haxx.se/docs/adv_2018-b3bf.html
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- curl: progress bar refresh, get width using ioctl()
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Get screen width from the environment variable COLUMNS first, if set. If
not, use ioctl(). If nether works, assume 79.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2242
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
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:
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
The "-=O=-" ship moves when data is transferred. The four flying
"hashes" move (on a sine wave) on each refresh, independent of data.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced with bb0ffcc36
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- libcurl-env.3: first take
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- TODO: two possible name resolver improvements
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Kartik Mahajan brought this change]
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
http2: don't close connection when single transfer is stopped
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2237
Closes #2249
- test558: fix for multissl builds
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- examples/url2file.c: add missing curl_global_cleanup() call
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: XhstormR on github
Fixes #2245
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- [Michael Gmelin brought this change]
SSH: Fix state machine for ssh-agent authentication
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
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.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
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.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
[0] libssh2_agent_userauth returning LIBSSH2_ERROR_AUTHENTICATION_FAILED
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #2248
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- openssl: fix potential memory leak in SSLKEYLOGFILE logic
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Coverity CID 1427646.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- openssl: fix the libressl build again
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Follow-up to 84fcaa2e7. libressl does not have the API even if it says it is
late OpenSSL version...
Fixes #2246
Closes #2247
Reported-by: jungle-boogie on github
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- unit1307: test many wildcards too
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- curl_fnmatch: only allow 5 '*' sections in a single pattern
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
... to avoid excessive recursive calls. The number 5 is totally
arbitrary and could be modified if someone has a good motivation.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- ftp-wildcard: fix matching an empty string with "*[^a]"
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
.... and avoid advancing the pointer to trigger an out of buffer read.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Detected by OSS-fuzz
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5251
Assisted-by: Max Dymond
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- SMB: fix numeric constant suffix and variable types
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2211
Closes #2240
Reported-by: Chester Liu
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [rouzier brought this change]
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
CURLOPT_TCP_NODELAY.3: fix typo
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #2239
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- smtp/pop3/imap_get_message: decrease the data length too...
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Follow-up commit to 615edc1f73 which was incomplete.
Assisted-by: Max Dymond
Detected by OSS-fuzz
Bug: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5206
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- openssl: enable SSLKEYLOGFILE support by default
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2210
Closes #2236
Patrick Monnerat (14 Jan 2018)
- mime: clone mime tree upon easy handle duplication.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
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.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Because of this binding, a mime tree cannot be shared between different
easy handles, thus it needs to be cloned upon easy handle duplication.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
New test 654 checks proper mime structure duplication/release.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Add a warning note in curl_mime_data_cb() documentation about sharing
user data between duplicated handles.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2235
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- docs: comment about CURLE_READ_ERROR returned by curl_mime_filedata
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (13 Jan 2018)
- test395: HTTP with overflow Content-Length value
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- test394: verify abort of rubbish in Content-Length: value
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- test393: verify --max-filesize with excessive Content-Length
- HTTP: bail out on negative Content-Length: values
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
... and make the max filesize check trigger if the value is too big.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Updates test 178.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Brad Spencer
Fixes #2212
Closes #2223
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Marcel Raad (13 Jan 2018)
- [Dan Johnson brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
configure.ac: append extra linker flags instead of prepending them.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2234
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (13 Jan 2018)
- RELEASE-NOTES: synced with 6fa10c8fa
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (13 Jan 2018)
- setopt: fix SSLVERSION to allow CURL_SSLVERSION_MAX_ values
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Broken since f121575 (precedes 7.56.1).
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://github.com/curl/curl/issues/2225
Reported-by: cmfrolick@users.noreply.github.com
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2227
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (13 Jan 2018)
- setopt: reintroduce non-static Curl_vsetopt() for OS400 support
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
This also upgrades ILE/RPG bindings with latest setopt options.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Reported-By: jonrumsey on github
Fixes #2230
Closes #2233
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (11 Jan 2018)
- [Zhouyihai Ding brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
http2: fix incorrect trailer buffer size
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
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.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
The bug appears to have been born in 0761a51 (precedes 7.49.0).
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2231
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- [Basuke Suzuki brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
easy: fix connection ownership in curl_easy_pause
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Before calling Curl_client_chop_write(), change the owner of connection
to the current Curl_easy handle. This will fix the issue #2217.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Fixes https://github.com/curl/curl/issues/2217
Closes https://github.com/curl/curl/pull/2221
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (9 Jan 2018)
- [Dimitrios Apostolou brought this change]
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
system.h: Additionally check __LONG_MAX__ for defining curl_off_t
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
__SIZEOF_LONG__ was introduced in GCC 4.4, __LONG_MAX__ was introduced
in GCC 3.3.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #2216
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- COPYING: it's 2018!
- progress: calculate transfer speed on milliseconds if possible
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
to increase accuracy for quick transfers
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2200
Closes #2206
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (7 Jan 2018)
- scripts: allow all perl scripts to be run directly
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- Enable execute permission (chmod +x)
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- Change interpreter to /usr/bin/env perl
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2222
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- mail-rcpt.d: fix short-text description
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- build: remove HAVE_LIMITS_H check
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
.. because limits.h presence isn't optional, it's required by C89.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Ref: http://port70.net/~nsz/c/c89/c89-draft.html#2.2.4.2
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2215
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- openssl: fix memory leak of SSLKEYLOGFILE filename
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- Free the copy of SSLKEYLOGFILE env returned by curl_getenv during ossl
initialization.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Caught by ASAN.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- Revert "curl/system.h: fix compilation with gcc on AIX PPC and IA64 HP-UX"
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
This reverts commit c97648b55080343bb371522bf4233e94a2a13a99.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
SIZEOF_LONG should not be checked in system.h since that macro is only
defined when building libcurl.
Ref: https://github.com/curl/curl/pull/2186#issuecomment-354767080
Ref: https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Michael Kaufmann (30 Dec 2017)
- test1554: improve the error handling
- test1554: add global initialization and cleanup
Daniel Stenberg (29 Dec 2017)
- curl_version_info.3: call the argument 'age'
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Pete Lomax
Bug: https://curl.haxx.se/mail/lib-2017-12/0074.html
Patrick Monnerat (27 Dec 2017)
- [Mikalai Ananenka brought this change]
brotli: data at the end of content can be lost
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2194
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (26 Dec 2017)
- examples/cacertinmem: ignore cert-already-exists error
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- 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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- Remove the EXAMPLE code in the CURLOPT_SSL_CTX_FUNCTION.3 doc.
Instead have it direct the reader to this cacertinmem.c example.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- Fix the CA certificate to use the right CA for example.com, Digicert.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://curl.haxx.se/mail/lib-2017-12/0057.html
Reported-by: Thomas van Hesteren
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2182
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Gisle Vanem brought this change]
tool_getparam: Support size modifiers for --max-filesize
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- Move the size modifier detection code from limit-rate to its own
function so that it can also be used with max-filesize.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Size modifiers are the suffixes such as G (gigabyte), M (megabyte) etc.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
For example --max-filesize 1G
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Ref: https://curl.haxx.se/mail/archive-2017-12/0000.html
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2179
Steve Holme (22 Dec 2017)
- build: Fixed incorrect script termination from commit ad1dc10e61
- Makefile.vc: Added our standard copyright header
- winbuild: Added support for VC15
- build: Added Visual Studio 2017 project files
- 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
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2186
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- [Mattias Fornander brought this change]
examples/rtsp: fix error handling macros
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2185
Patrick Monnerat (20 Dec 2017)
- curl_easy_reset: release mime-related data.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://curl.haxx.se/mail/lib-2017-12/0060.html
Reported-by: Martin Galvan
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- content_encoding: rework zlib_inflate
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- 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.
Closes #2068
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- 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.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (13 Dec 2017)
- CURLOPT_READFUNCTION.3: refer to argument with correct name
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Bug: #2175
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
[ci skip]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- rand: add a clang-analyzer work-around
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- krb5: fix a potential access of uninitialized memory
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
A scan-build warning.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- conncache: fix a return code [regression]
This broke in 07cb27c98e. Make sure to return 'result' properly. Pointed
out by scan-build!
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- curl: support >256 bytes warning messsages
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Bug: #2174
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Michael Kaufmann (12 Dec 2017)
- libssh: fix a syntax error in configure.ac
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Follow-up to c92d2e1
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #2172
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (12 Dec 2017)
- examples/smtp-mail.c: use separate defines for options and mail
... to make it clearer that the options want address-only, while the
headers in an email can also have the real name.
Assisted-by: Sean MacLennan
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- THANKS: added missing names
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
... as I reran the contrithanks script after the mailmap name fixups.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- mailmap: added/clarified several names
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- setopt: less *or equal* than INT_MAX/1000 should be fine
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
... for the CURLOPT_TIMEOUT, CURLOPT_CONNECTTIMEOUT and
CURLOPT_SERVER_RESPONSE_TIMEOUT range checks.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Dominik Hölzl
Bug: https://curl.haxx.se/mail/lib-2017-12/0037.html
Closes #2173
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- [Dmitry Kostjuchenko brought this change]
vtls: replaced getenv() with curl_getenv()
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2171
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced with 3b9ea70ee
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- TODO: Expose tried IP addresses that failed
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Suggested-by: Rainer Canavan
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #2126
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- curl.1: mention http:// and https:// as valid proxy prefixes
- curl.1: documented two missing valid exit codes
- CURLOPT_DNS_LOCAL_IP4.3: fixed the seel also to not self-reference
- Revert "curl: don't set CURLOPT_INTERLEAVEDATA"
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
This reverts commit 9ffad8eb1329bb35c8988115ac7ed85cf91ef955.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
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.
Michael Kaufmann (10 Dec 2017)
- tests: mark data files as non-executable in git
- tests: update .gitignore for libtests
Daniel Stenberg (10 Dec 2017)
- multi_done: prune DNS cache
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
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.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Test506 is updated
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Oleg Pudeyev
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2169
Closes #2170
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- mailmap: fixup two old git Author "aliases"
Jay Satiro (10 Dec 2017)
- openssl: Disable file buffering for Win32 SSLKEYLOGFILE
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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).
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Ref: https://github.com/curl/curl/pull/1346#issuecomment-350530901
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (10 Dec 2017)
- RESOLVE: output verbose text when trying to set a duplicate name
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
... to help users understand what is or isn't done!
- CURLOPT_DNS_CACHE_TIMEOUT.3: see also CURLOPT_RESOLVE
- [John DeHelian brought this change]
sftp: allow quoted commands to use relative paths
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #1900
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (8 Dec 2017)
- [Richard Alcock brought this change]
CURLOPT_PRIVATE.3: fix grammar
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- Change "never does nothing" double-negative to "never does anything".
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2168
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (8 Dec 2017)
- curl: remove __EMX__ #ifdefs
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.
Closes #2166
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (8 Dec 2017)
- openssl: improve data-pending check for https proxy
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- Allow proxy_ssl to be checked for pending data even when connssl does
not yet have an SSL handle.
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
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].
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
[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.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Ref: https://github.com/curl/curl/commit/f4a6238#commitcomment-24396542
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/1916
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (8 Dec 2017)
- curl: don't set CURLOPT_INTERLEAVEDATA
That data is only ever used by the CURLOPT_INTERLEAVEFUNCTION callback
and that option isn't set or used by the curl tool!
Updates the 9 tests that verify --libcurl
Closes #2167
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- curl.h: remove incorrect comment about ERRORBUFFER
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
... error messages are _not_ sent to stderr if this is not set.
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
- [Michael Felt brought this change]
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
configure: add AX_CODE_COVERAGE only if using gcc
Fixes #2076
Closes #2125
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- curl: limit -# update frequency for unknown total size
Make it use a max 10Hz update frequency for this case as well. Return
early if the "point" hasn't moved since last invoke.
Reported-by: Elliot Saba
Fixes #2158
Closes #2163
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- BINDINGS: another PostgreSQL client
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
...the former link is dead.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Frank Gevaerts
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
- [Zachary Seguin brought this change]
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
CONNECT: keep close connection flag in http_connect_state struct
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2088
Closes #2157
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Per Malmberg brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
include: get netinet/in.h before linux/tcp.h
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
... to allow build on older Linux dists (specifically CentOS 4.8 on gcc
4.8.5)
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #2160
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
- openldap: fix checksrc nits
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- [Stepan Broz brought this change]
openldap: add commented out debug possibilities
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
... to aid debugging openldap library using its built-in debug messages.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2159
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- examples: move threaded-shared-conn.c to the "complicated" ones
... due it relying on pthreads to link.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced with b261c44e8
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
... and bump next release version to 7.58.0
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- [Jan Ehrhardt brought this change]
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
URL: tolerate backslash after drive letter for FILE:
... as in "file://c:\some\path\curl.out"
Reviewed-by: Matthew Kerwin
Closes #2154
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Randall S. Becker brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
tests: added netinet/in6.h includes in test servers
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Randall S. Becker brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
configure: check for netinet/in6.h
Needed by HPE NonStop NSE and NSX systems
Fixes #2146
Closes #2155
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- curl-config: add --ssl-backends
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Lists all SSL backends that were enabled at build-time.
Suggested-by: Oleg Pudeyev
Fixes #2128
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- conncache: only allow multiplexing within same multi handle
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
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.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2152
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- threaded-shared-conn.c: fixed typo in commenta
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- threaded-shared-conn.c: new example
- conncache: fix several lock issues
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
If the lock is released before the dealings with the bundle is over, it may
have changed by another thread in the mean time.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2132
Fixes #2151
Closes #2139
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- libssh: remove dead code in sftp_qoute
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
... by removing a superfluous NULL pointer check that also confuses
Coverity.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2143
Closes #2153
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- sasl_getmesssage: make sure we have a long enough string to pass
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
For pop3/imap/smtp, added test 891 to somewhat verify the pop3
case.
For this, I enhanced the pingpong test server to be able to send back
responses with LF-only instead of always using CRLF.
Closes #2150
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- libssh2: remove dead code from SSH_SFTP_QUOTE
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
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.
Pointed-out-by: Nikos Mavrogiannopoulos
Bug #2143
Closes #2148
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- ssh-libssh.c: please checksrc
Nikos Mavrogiannopoulos (4 Dec 2017)
- libssh: fixed dereference in statvfs access
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
The behavior is now equivalent to ssh.c when SSH_SFTP_QUOTE_STATVFS
handling fails.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2142
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (4 Dec 2017)
- [Guitared brought this change]
RESOURCES: update spec names
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2145
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Nikos Mavrogiannopoulos (3 Dec 2017)
- libssh: corrected use of sftp_statvfs() in SSH_SFTP_QUOTE_STATVFS
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
The previous code was incorrectly following the libssh2 error detection
for libssh2_sftp_statvfs, which is not correct for libssh's sftp_statvfs.
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2142
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- libssh: no need to call sftp_get_error as ssh_get_error is sufficient
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2141
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (2 Dec 2017)
- libssh: fix minor static code analyzer nits
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- remove superfluous NULL check which otherwise tricks the static code
analyzers to assume NULL pointer dereferences.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- fix fallthrough in switch()
- indent mistake
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- openssl: pkcs12 is supported by boringssl
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Removes another #ifdef for BoringSSL
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Pointed-out-by: David Benjamin
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #2134
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Jay Satiro brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
travis: use pip2 instead of pip
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
.. since now mac osx image expects pip2 or pip3, and doesn't know pip:
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
0.01s$ pip install --user cpp-coveralls
/Users/travis/.travis/job_stages: line 57: pip: command not found
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Ref: https://github.com/travis-ci/travis-ci/issues/8829
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2133
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- [Nikos Mavrogiannopoulos brought this change]
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
lib582: do not verify host for SFTP
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Note that the libssh back-end automatically verifies the peer's
host using the default known_hosts file.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- [Nikos Mavrogiannopoulos brought this change]
libssh: added SFTP support
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
The SFTP back-end supports asynchronous reading only, limited
to 32-bit file length. Writing is synchronous with no other
limitations.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
This also brings keyboard-interactive authentication.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Nikos Mavrogiannopoulos brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
symbols-in-versions: added new symbols with 7.56.3 version
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Nikos Mavrogiannopoulos brought this change]
.travis.yml: added build --with-libssh
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
- [Nikos Mavrogiannopoulos brought this change]
libssh2: return CURLE_UPLOAD_FAILED on failure to upload
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
This brings its in sync with the error code returned by the
libssh backend.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Nikos Mavrogiannopoulos brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
libssh2: send the correct CURLE error code on scp file not found
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
That also updates tests to expect the right error code
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
- [Nikos Mavrogiannopoulos brought this change]
Added support for libssh SSH SCP back-end
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
libssh is an alternative library to libssh2.
https://www.libssh.org/
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
That patch set also introduces support for ECDSA
ed25519 keys, as well as gssapi authentication.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced with af8cc7a69
- curlver: towards 7.57.1
- [W. Mark Kubacki brought this change]
lib: don't export all symbols, just everything curl_*
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
This did not happen if 'versioned symbols' were enabled (which is not
the default) because then a version script is employed.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
This limits exports to everything starting in 'curl_*'., which is
what "libcurl.vers" exports.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
This avoids strange side-effects such as with mixing methods
from system libraries and those erroneously offered by libcurl.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2127
- [Johannes Schindelin brought this change]
SSL: Avoid magic allocation of SSL backend specific data
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
However, getting the alignment right is tricky. Too tricky.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
So let's just bite the bullet and allocate the SSL backend-specific
data separately.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #2119
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- examples/xmlstream.c: don't switch off CURL_GLOBAL_SSL
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Dima Tisnek
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- travis: add boringssl build
Uses a separate build without --enable-debug and no valgrind.
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 #2118
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Version 7.57.0 (29 Nov 2017)
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (29 Nov 2017)
- RELEASE-NOTES: curl 7.57.0
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- THANKS: added contributors from 7.57.0 release
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- openssl: fix boringssl build again
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
commit d3ab7c5a21e broke the boringssl build since it doesn't have
RSA_flags(), so we disable that code block for boringssl builds.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: W. Mark Kubacki
Fixes #2117
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- curl_ntlm_core.c: use the limits.h's SIZE_T_MAX if provided
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- libcurl-share.3: the connection cache is shareable now
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- global_init: ignore CURL_GLOBAL_SSL's absense
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Not a single user responded to the call for users of it:
https://curl.haxx.se/mail/lib-2017-11/0072.html
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Evgeny Grin
Assisted-by: Jay Satiro
Fixes #2089
Fixes #2083
Closes #2107
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- ntlm: avoid integer overflow for malloc size
Reported-by: Alex Nichols
Assisted-by: Kamil Dudka and Max Dymond
CVE-2017-8816
Bug: https://curl.haxx.se/docs/adv_2017-11e7.html
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- wildcardmatch: fix heap buffer overflow in setcharset
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
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.
Detected by OSS-Fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4161
CVE-2017-8817
Bug: https://curl.haxx.se/docs/adv_2017-ae72.html
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Jay Satiro brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
url: fix alignment of ssl_backend_data struct
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- Align the array of ssl_backend_data on a max 32 byte boundary.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
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.
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?).
Closes https://github.com/curl/curl/issues/2093
CVE-2017-8818
Bug: https://curl.haxx.se/docs/adv_2017-af0a.html
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- ssh: remove check for a NULL pointer (!)
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #2111
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- [Matthew Kerwin brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
test: add test for bad UNC/SMB path in file: URL
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Matthew Kerwin brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
test: add tests to ensure basic file: URLs
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Matthew Kerwin brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
URL: update "file:" URL handling
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
* 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:/")
Closes #2110
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- metalink: fix memory-leak and NULL pointer dereference
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Reported by scan-build
Closes #2109
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Alessandro Ghedini brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
connect: add support for new TCP Fast Open API on Linux
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
The new API added in Linux 4.11 only requires setting a socket option
before connecting, without the whole sento() machinery.
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
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.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #2056
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- make: fix "make distclean"
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2097
Closes #2108
- RELEASE-NOTES: synced with 31f18d272
Jay Satiro (23 Nov 2017)
- connect: improve the bind error message
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
eg consider a non-existent interface eth8, curl --interface eth8
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Before: curl: (45) Could not resolve host: eth8
After: curl: (45) Couldn't bind to 'eth8'
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://github.com/curl/curl/issues/2104
Reported-by: Alfonso Martone
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (23 Nov 2017)
- examples/rtsp: clear RANGE again after use
Fixes #2106
Reported-by: youngchopin on github
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Michael Kaufmann brought this change]
test1264: verify URL with space in host name being rejected
- url: reject ASCII control characters and space in host names
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Host names like "127.0.0.1 moo" would otherwise be accepted by some
getaddrinfo() implementations.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Updated test 1034 and 1035 accordingly.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2073
Closes #2092
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- Curl_open: fix OOM return error correctly
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2098
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- http2: fix "Value stored to 'end' is never read" scan-build error
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- http2: fix "Value stored to 'hdbuf' is never read" scan-build error
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- openssl: fix "Value stored to 'rc' is never read" scan-build error
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- mime: fix "Value stored to 'sz' is never read" scan-build error
- Curl_llist_remove: fix potential NULL pointer deref
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Fixes a scan-build warning.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- ntlm: remove unnecessary NULL-check to please scan-build
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- BUGS: spellchecked
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (18 Nov 2017)
- [fmmedeiros brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
examples/curlx: Fix code style
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- Add braces around multi-line if statement.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2096
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (17 Nov 2017)
- resolve: allow IP address within [] brackets
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
... so that IPv6 addresses can be passed like they can for connect-to
and how they're used in URLs.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Added test 1324 to verify
Reported-by: Alex Malinovich
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2087
Closes #2091
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- [Pavol Markovic brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
macOS: Fix missing connectx function with Xcode version older than 9.0
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
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
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- [Dirk Feytons brought this change]
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
openssl: fix too broad use of HAVE_OPAQUE_EVP_PKEY
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Fixes #2079
Closes #2081
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- TODO: ignore private IP addresses in PASV response
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #1455
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced with ae7369b6d
Michael Kaufmann (14 Nov 2017)
- URL: return error on malformed URLs with junk after IPv6 bracket
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Follow-up to aadb7c7. Verified by new test 1263.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #2072
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (14 Nov 2017)
- INTERNALS: we may use libidn2 now, not libidn
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (13 Nov 2017)
- zlib/brotli: only include header files in modules needing them
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
There is a conflict on symbol 'free_func' between openssl/crypto.h and
zlib.h on AIX. This is an attempt to resolve it.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://curl.haxx.se/mail/lib-2017-11/0032.html
Reported-By: Michael Felt
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (13 Nov 2017)
- SMB: fix uninitialized local variable
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Brian Carpenter
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- [Orgad Shaneh brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
connect.c: remove executable bit on file
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2071
- [hsiao yi brought this change]
README.md: fixed layout
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #2069
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- setopt: split out curl_easy_setopt() to its own file
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
... to make url.c smaller.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #1944
Jay Satiro (10 Nov 2017)
- [John Starks brought this change]
cmake: Add missing setmode check
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2067
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (10 Nov 2017)
- curl_share_setopt: va_end was not called if conncache errors
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
CID 984459, detected by Coverity
Sergei Nikulov (10 Nov 2017)
- [John Starks brought this change]
cmake: Correctly include curl.rc in Windows builds (#2064)
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Update CMakeLists.txt to add curl.rc to the correct list.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (9 Nov 2017)
- RELEASE-NOTES: synced with 32828cc4f
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- [Luca Boccassi brought this change]
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
--interface: add support for Linux VRF
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
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.
Closes #2024
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- curl_share_setopt.3: document CURL_LOCK_DATA_CONNECT
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #2043
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- examples: add shared-connection-cache
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- test1554: verify connection cache sharing
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- share: add support for sharing the connection cache
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- imap: deal with commands case insensitively
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
As documented in RFC 3501 section 9:
https://tools.ietf.org/html/rfc3501#section-9
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #2061
- connect: store IPv6 connection status after valid connection
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
... 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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #2053
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- curl_multi_fdset.3: emphasize curl_multi_timeout
... even when there's no socket to wait for, the timeout can still be
very short.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (9 Nov 2017)
- content_encoding: fix inflate_stream for no bytes available
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- Don't call zlib's inflate() when avail_in stream bytes is 0.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
According to the zlib FAQ, Z_BUF_ERROR is not fatal.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
This bug would happen randomly since packet sizes are arbitrary. A test
of 10,000 transfers had 55 fail (ie 0.55%).
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Ref: https://zlib.net/zlib_faq.html#faq05
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/2060
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (7 Nov 2017)
- content_encoding: do not write 0 length data
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (6 Nov 2017)
- fnmatch: remove dead code
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
There was a duplicate check for backslashes in the setcharset()
function.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Coverity CID 1420611
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- url: remove unncessary NULL-check
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Since 'conn' won't be NULL in there and we also access the pointer in
there without the check.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Coverity CID 1420610
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Viktor Szakats (6 Nov 2017)
- src/Makefile.m32: fix typo in brotli lib customization
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Ref cc1f4436099decb9d1a7034b2bb773a9f8379d31
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- Makefile.m32: allow to customize brotli libs
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
It adds the ability to link against static brotli libs.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Also fix brotli include path.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (5 Nov 2017)
- travis: add a job with brotli enabled
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Viktor Szakats brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Makefile.m32: add brotli support
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- HTTP: implement Brotli content encoding
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
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.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Tests 314 and 315 check Brotli content unencoding with correct and
erroneous data.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Some tests are updated to accomodate with the now configuration dependent
parameters of the Accept-Encoding header.
- HTTP: support multiple Content-Encodings
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
This is implemented as an output streaming stack of unencoders, the last
calling the client write procedure.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
New test 230 checks this feature.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://github.com/curl/curl/pull/2002
Reported-By: Daniel Bankhead
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (4 Nov 2017)
- url: remove arg value check from CURLOPT_SSH_AUTH_TYPES
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Prior to this change since f121575 (7.56.1+) CURLOPT_SSH_AUTH_TYPES
erroneously rejected CURLSSH_AUTH_ANY with CURLE_BAD_FUNCTION_ARGUMENT.
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://github.com/curl/curl/commit/f121575#commitcomment-25347120
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (4 Nov 2017)
- ntlm: avoid malloc(0) for zero length passwords
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
It triggers an assert() when built with memdebug since malloc(0) may
return NULL *or* a valid pointer.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Detected by OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=4054
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Assisted-by: Max Dymond
Closes #2054
- RELEASE-NOTES: synced with ee8016b3d
- curl: speed up handling of many URLs
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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).
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: arainchik on github
Fixes #1959
Closes #2052
- curl: pass through [] in URLs instead of calling globbing error
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Assisted-by: Per Lundberg
Fixes #2044
Closes #2046
Closes #2048
- CURLOPT_INFILESIZE: accept -1
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Regression since f121575
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Petr Voytsik
Fixes #2047
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (2 Nov 2017)
- url: fix CURLOPT_DNS_CACHE_TIMEOUT arg value check to allow -1
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Prior to this change since f121575 (7.56.1+) CURLOPT_DNS_CACHE_TIMEOUT
erroneously rejected -1 with CURLE_BAD_FUNCTION_ARGUMENT.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Dan Fandrich (1 Nov 2017)
- http2: Fixed OOM handling in upgrade request
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
This caused the torture tests on test 1800 to fail.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- tests: Fixed torture tests on tests 556 and 650
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Test cleanup after OOM wasn't being consistently performed.
Daniel Stenberg (1 Nov 2017)
- CURLOPT_MAXREDIRS: allow -1 as a value
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
... which is valid according to documentation. Regression since
f121575c0b5f.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Verified now in test 501.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: cbartl on github
Fixes #2038
Closes #2039
- include: remove conncache.h inclusion from where its not needed
Jay Satiro (1 Nov 2017)
- url: fix CURLOPT_POSTFIELDSIZE arg value check to allow -1
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
.. also add same arg value check to CURLOPT_POSTFIELDSIZE_LARGE.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Prior to this change since f121575 (7.56.1+) CURLOPT_POSTFIELDSIZE
erroneously rejected -1 value with CURLE_BAD_FUNCTION_ARGUMENT.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://curl.haxx.se/mail/lib-2017-11/0000.html
Reported-by: Andrew Lambert
Daniel Stenberg (31 Oct 2017)
- cookie: avoid NULL dereference
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
... when expiring old cookies.
Reported-by: Pavel Gushchin
Fixes #2032
Closes #2035
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Marcel Raad (30 Oct 2017)
- memdebug: use send/recv signature for curl_dosend/curl_dorecv
This avoids build errors and warnings caused by implicit casts.
Closes https://github.com/curl/curl/pull/2031
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (30 Oct 2017)
- [Juro Bystricky brought this change]
mkhelp.pl: support reproducible build
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Do not generate line with the current date, such as:
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
* Generation time: Tue Oct-24 18:01:41 2017
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
This will improve reproducibility. The generated string is only
part of a comment, so there should be no adverse consequences.
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
closes #2026
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Dan Fandrich (30 Oct 2017)
- runtests.pl: Fixed typo in message
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (30 Oct 2017)
- curlx: the timeval functions are no longer provided as curlx_*
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Pointed-out-by: Dmitri Tikhonov
Bug: #2034
- select: update comments
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
s/curlx_tvnow/Curl_now
- INTERNALS: remove curlx_tv* functions no longer provided
- [Dmitri Tikhonov brought this change]
timeval: use mach time on MacOS
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
If clock_gettime() is not supported, use mach_absolute_time() on MacOS.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
closes #2033
Patrick Monnerat (29 Oct 2017)
- cli tool: improve ";type=" handling in -F option arguments
- cli tool: in -F option arg, comma is a delimiter for files only
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Also upgrade test 1133 to cover this case and clarify man page about
form data quoting.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://github.com/curl/curl/issues/2022
Reported-By: omau on github
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (29 Oct 2017)
- timeleft: made two more users of Curl_timeleft use timediff_t
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Jakub Zakrzewski (28 Oct 2017)
- cmake: Export libcurl and curl targets to use by other cmake projects
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #1879
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (28 Oct 2017)
- RELEASE-NOTES: synced with f20cbac97
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- [Florin Petriuc brought this change]
auth: Added test cases for RFC7616
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Updated docs to include support for RFC7616
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Florin <petriuc.florin@gmail.com>
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #1934
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Florin Petriuc brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
auth: add support for RFC7616 - HTTP Digest access authentication
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Florin <petriuc.florin@gmail.com>
- [Daniel Bankhead brought this change]
TODO: support multiple Content-Encodings
Closes #2002
- ROADMAP: cleanup
Removed done stuff. Removed entries no longer considered for the near
term.
- [Magicansk brought this change]
ROADMAP.md: spelling fixes
Closes #2028
- Curl_timeleft: change return type to timediff_t
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.
Closes #2021
- appveyor: add a win32 build
- setopt: fix CURLOPT_SSH_AUTH_TYPES option read
Regression since f121575c0b5f
Reported-by: Rob Cotrone
Marcel Raad (27 Oct 2017)
- resolvers: only include anything if needed
This avoids warnings about unused stuff.
Closes https://github.com/curl/curl/pull/2023
Daniel Stenberg (27 Oct 2017)
- HELP-US: rename the subtitle too since the label is changed
"PR-welcome" was the former name.
- curl_setup.h: oops, shorten the too long line
- [Martin Storsjo brought this change]
curl_setup: Improve detection of CURL_WINDOWS_APP
If WINAPI_FAMILY is defined, it should be safe to try to include
winapifamily.h to check what the define evaluates to.
This should fix detection of CURL_WINDOWS_APP if building with
_WIN32_WINNT set to 0x0600.
Closes #2025
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.
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.
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.
Bug: https://github.com/curl/curl/issues/2001
Reported-by: moohoorama@users.noreply.github.com
Closes https://github.com/curl/curl/pull/2010
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
- curl_fnmatch: return error on illegal wildcard pattern
... instead of doing an infinite loop!
Added test 1162 to verify.
Reported-by: Max Dymond
Fixes #2015
Closes #2017
- [Max Dymond brought this change]
wildcards: don't use with non-supported protocols
Fixes timeouts in the fuzzing tests for non-FTP protocols.
Closes #2016
- [Max Dymond brought this change]
multi: allow table handle sizes to be overridden
Allow users to specify their own hash define for
CURL_CONNECTION_HASH_SIZE so that both values can be overridden.
Closes #1982
- time: rename Curl_tvnow to Curl_now
... since the 'tv' stood for timeval and this function does not return a
timeval struct anymore.
Also, cleaned up the Curl_timediff*() functions to avoid typecasts and
clean up the descriptive comments.
Closes #2011
- ftplistparser: follow-up cleanup to remove PL_ERROR()
- [Max Dymond brought this change]
ftplistparser: free off temporary memory always
When using the FTP list parser, ensure that the memory that's
allocated is always freed.
Detected by OSS-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3682
Closes #2013
- 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
- [Paul Howarth brought this change]
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
- [Alessandro Ghedini brought this change]
libcurl-tutorial.3: fix typo
closes #2008
Alessandro Ghedini (23 Oct 2017)
- curl_mime_filedata.3: fix typos
Daniel Stenberg (23 Oct 2017)
- RELEASE-NOTES: clean slate towards 7.57.0
- [Max Dymond brought this change]
travis: exit if any steps fail
We don't expect any steps to fail in travis. Exit the script if they do.
Closes #1966
Version 7.56.1 (23 Oct 2017)
Daniel Stenberg (23 Oct 2017)
- RELEASE-NOTES: 7.56.1
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- THANKS: update at 7.56.1 release time
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- [Jon DeVree brought this change]
mk-ca-bundle: Remove URL for aurora
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Aurora is no longer used by Mozilla
https://hacks.mozilla.org/2017/04/simplifying-firefox-release-channels/
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- [Jon DeVree brought this change]
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
mk-ca-bundle: Fix URL for NSS
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
The 'tip' is the most recent branch committed to, this should be
'default' like the URLs for the browser are.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #1998
- imap: if a FETCH response has no size, don't call write callback
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
CVE-2017-1000257
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Brian Carpenter and 0xd34db347
Also detected by OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3586
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- ftp: reject illegal IP/port in PASV 227 response
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
... 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.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #1997
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Detected by OSS-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3694
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (20 Oct 2017)
- test653: check reuse of easy handle after mime data change
See issue #1999
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- mime: do not reuse previously computed multipart size
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
The contents might have changed: size must be recomputed.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: moteus on github
Fixes #1999
- test308: disable if MultiSSL feature enabled
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Even if OpenSSL is enabled, it might not be the default backend when
multi-ssl is enabled, causing the test to fail.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- runtests: support MultiSSL client feature
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- vtls: change struct Curl_ssl `close' field name to `close_one'.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
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.
- os400: add missing symbols in config file.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Also adjust makefile to renamed files and warn about installation dirs mix-up.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- test652: curl_mime_data + base64 encoder with large contents
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- mime: limit bas64-encoded lines length to 76 characters
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (16 Oct 2017)
- RELEASE-NOTES: synced with f121575c0
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- setopt: range check most long options
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
... filter early instead of risking "funny values" having to be dealt
with elsewhere.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- setopt: avoid integer overflows when setting millsecond values
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
... that are multiplied by 1000 when stored.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
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.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Also updated the man pages for these timeout options to mention the
return code.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #1938
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Viktor Szakats (15 Oct 2017)
- makefile.m32: allow to override gcc, ar and ranlib
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
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:
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
CURL_CC=clang
CURL_AR=llvm-ar
CURL_RANLIB=llvm-ranlib
Closes https://github.com/curl/curl/pull/1993
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- ldap: silence clang warning
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Use memset() to initialize a structure to avoid LLVM/Clang warning:
ldap.c:193:39: warning: missing field 'UserLength' initializer [-Wmissing-field-initializers]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/1992
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (14 Oct 2017)
- runtests: use valgrind for torture as well
NOTE: it makes them terribly slow. I recommend only using valgrind for
specific torture tests or using lots of patience.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- memdebug: trace send, recv and socket
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
... to allow them to be included in torture tests too.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
closes #1980
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- configure: remove the C++ compiler check
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
... we used it only for the fuzzer, which we now have in a separate git
repo.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #1990
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (13 Oct 2017)
- mime: do not call failf() if easy handle is NULL.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (13 Oct 2017)
- test651: curl_formadd with huge COPYCONTENTS
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- mime: fix the content reader to handle >16K data properly
Reported-by: Jeroen Ooms
Closes #1988
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (12 Oct 2017)
- mime: keep "text/plain" content type if user-specified.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Include test cases in 554, 587, 650.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Fixes https://github.com/curl/curl/issues/1986
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- cli tool: use file2memory() to buffer stdin in -F option.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes PR https://github.com/curl/curl/pull/1985
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- cli tool: reimplement stdin buffering in -F option.
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
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.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
--libcurl generated code is left as an unbuffered stdin fread/fseek callback
part with unknown data size.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Buffering is not supported in deprecated curl_formadd() API.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (12 Oct 2017)
- winbuild/BUILD.WINDOWS.txt: mention WITH_NGHTTP2
- HELP-US: the label "PR-welcome" is now renamed to "help wanted"
following the new github "standard"
- RELEASE-NOTES: synced with 5505df7d2
Jay Satiro (11 Oct 2017)
- [Artak Galoyan brought this change]
url: Update current connection SSL verify params in setopt
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.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
This functionality was available before and was broken by the
following change:
"proxy: Support HTTPS proxy and SOCKS+HTTP(s)"
CommitId: cb4e2be7c6d42ca0780f8e0a747cecf9ba45f151.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://github.com/curl/curl/issues/1941
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/1951
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (11 Oct 2017)
- [David Benjamin brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
openssl: don't use old BORINGSSL_YYYYMM macros
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #1979
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- test950; verify SMTP with custom request
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- ftpserver: support case insensitive commands
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- smtp_done: free data before returning (on send failure)
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
... as otherwise it could leak that memory.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Detected by OSS-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3600
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Assisted-by: Max Dymond
Closes #1977
- FTP: URL decode path for dir listing in nocwd mode
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Zenju on github
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Test 244 added to verify
Fixes #1974
Closes #1976
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- test298: verify --ftp-method nowcwd with URL encoded path
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Ref: #1974
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- CURLOPT_XFERINFODATA.3: fix duplicate see also
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- CURLOPT_NOPROGRESS.3: also refer to xferinfofunction
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- FAQ: s/CURLOPT_PROGRESSFUNCTION/CURLOPT_XFERINFOFUNCTION
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- openssl: enable PKCS12 support for !BoringSSL
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Enable PKCS12 for all non-boringssl builds without relying on configure
or cmake checks.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://curl.haxx.se/mail/lib-2017-10/0007.html
Reported-by: Christian Schmitz
Closes #1948
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- [Kristiyan Tsaklev brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
curl: don't pass semicolons when parsing Content-Disposition
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Test 1422 updated to verify.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #1964
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (9 Oct 2017)
- mime: properly unbind mime structure in curl_mime_free().
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
This allows freeing a mime structure bound to the easy handle before
curl_easy_cleanup().
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Fixes #1970.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (9 Oct 2017)
- RTSP: avoid integer overflow on funny RTSP response
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
... like a very large non-existing RTSP version number.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Added test 577 to verify.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Detected by OSS-fuzz.
Closes #1969
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (8 Oct 2017)
- ftpserver: properly reset $ftptargetdir.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- test643: verify curl_mime_subparts() rejects cyclic additions.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- mime: refuse to add subparts to one of their own descendants.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Alexey Melnichuk
Fixes #1962
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- mime: avoid resetting a part's encoder when part's contents change.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- mime: improve unbinding top multipart from easy handle.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Also avoid dangling pointers in referencing parts.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (8 Oct 2017)
- RELEASE-NOTES: synced with a4c1c75da30af1
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- curlver.h: next expected release is 7.57.0
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (8 Oct 2017)
- mime: be tolerant about setting twice the same header list in a part.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- docs: clarify form/mime usage of non-regular data files.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (8 Oct 2017)
- Revert "multi_done: wait for name resolve to finish if still ongoing"
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
This reverts commit f3e03f6c0ac52a1bf396e03f7d7e9b5b3b7165fe.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Caused memory leaks in the fuzzer, needs to be done differently.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Disable test 1553 for now too, as it causes memory leaks without this
commit!
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- remove_handle: call multi_done() first, then clear dns cache pointer
Closes #1960
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- multi_done: wait for name resolve to finish if still ongoing
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
... as we must clean up memory.
- pingpong: return error when trying to send without connection
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
When imap_done() got called before a connection is setup, it would try
to "finish up" and dereffed a NULL pointer.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
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.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Fixes #1953
Assisted-by: Max Dymond
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Dan Fandrich (6 Oct 2017)
- tests: added flaky keyword to tests 587 and 644
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
These are around 5% flaky in my Linux x86 autobuilds.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Marcel Raad (6 Oct 2017)
- vtls: fix warnings with --disable-crypto-auth
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
When CURL_DISABLE_CRYPTO_AUTH is defined, Curl_none_md5sum's parameters
are not used.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (6 Oct 2017)
- multi_cleanup: call DONE on handles that never got that
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
... fixes a memory leak with at least IMAP when remove_handle is never
called and the transfer is abruptly just abandoned early.
Test 1552 added to verify
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Detected by OSS-fuzz
Assisted-by: Max Dymond
Closes #1954
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Benbuck Nason brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
strtoofft: Remove extraneous null check
Fixes #1950: curlx_strtoofft() doesn't fully protect against null 'str'
argument.
Closes #1952
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- openssl: fix build without HAVE_OPAQUE_EVP_PKEY
Reported-by: Javier Sixto
Fixes #1955
Closes #1956
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Viktor Szakats (6 Oct 2017)
- lib/config-win32.h: let SMB/SMBS be enabled with OpenSSL/NSS
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
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.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
This in turn enables SMB (and SMBS) protocol support whenever
Win32 Crypto is available, regardless of what other crypto backends
are enabled.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Ref: https://github.com/curl/curl/pull/1840#issuecomment-325682052
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/1943
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (5 Oct 2017)
- build: fix --disable-crypto-auth
Reported-by: Wyatt O'Day
Fixes #1945
Closes #1947
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (5 Oct 2017)
- [Nick Zitzmann brought this change]
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
darwinssl: add support for TLSv1.3
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/1794
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (4 Oct 2017)
- [Felix Kaiser brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
docs: fix typo in curl_mime_data_cb man page
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #1946
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Viktor Szakats (4 Oct 2017)
- lib/Makefile.m32: allow customizing dll suffixes
- 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.
- 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`.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/1942
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (4 Oct 2017)
2018-02-04 17:52:34 +00:00
- [Max Dymond brought this change]
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
fuzzer: move to using external curl-fuzzer
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Use the external curl-fuzzer repository for fuzzing.
Closes #1923
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- failf: skip the sprintf() if there are no consumers
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #1936
- ftp: UBsan fixup 'pointer index expression overflowed'
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #1939
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-PROCEDURE: update the release schedule
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Version 7.56.0 (4 Oct 2017)
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (4 Oct 2017)
- RELEASE-NOTES: curl 7.56.0
- THANKS: added new 7.56.0 contributors
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (4 Oct 2017)
- build-openssl.bat: Warn OpenSSL 1.1.0 not yet supported
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Ref: https://github.com/curl/curl/issues/1002
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Michael Kaufmann (3 Oct 2017)
- idn: fix source code comment
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- vtls: compare and clone ssl configs properly
Compare these settings in Curl_ssl_config_matches():
- verifystatus (CURLOPT_SSL_VERIFYSTATUS)
- random_file (CURLOPT_RANDOM_FILE)
- egdsocket (CURLOPT_EGDSOCKET)
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Also copy the setting "verifystatus" in Curl_clone_primary_ssl_config(),
and copy the setting "sessionid" unconditionally.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Reviewed-by: Daniel Stenberg
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
Closes #1917
- proxy: read the "no_proxy" variable only if necessary
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Reviewed-by: Daniel Stenberg
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #1919
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (3 Oct 2017)
- libcurl-tutorial: add casts in example to avoid compilation warnings.
Daniel Stenberg (3 Oct 2017)
- examples: bring back curl_formadd-using examples
... 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
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- FTP: zero terminate the entry path even on bad input
... a single double quote could leave the entry path buffer without a zero
terminating byte. CVE-2017-1000254
Test 1152 added to verify.
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Max Dymond
Bug: https://curl.haxx.se/docs/adv_20171004.html
Jay Satiro (2 Oct 2017)
- [Sergei Nikulov brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
cmake: disable tests and man generation if perl/nroff not found
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Fixes https://github.com/curl/curl/issues/1500
Reported-by: Jay Satiro
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
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
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/1924
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (2 Oct 2017)
- libcurl-tutorial: fix two typos.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- TODO: remove deprecated form API items.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- libcurl-tutorial: describe MIME API and deprecate form API.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Include a guide to form/mime API conversion.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (30 Sep 2017)
- cookie: fix memory leak if path was set twice in header
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
... this will let the second occurance override the first.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Added test 1161 to verify.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Max Dymond
Fixes #1932
Closes #1933
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Dan Fandrich (30 Sep 2017)
- test650: Use variable replacement to set the host address and port
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Otherwise, the test fails when the -b test option is used to set a
different test port range.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- Set and use more necessary options when some protocols are disabled
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
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.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (29 Sep 2017)
- test1160: verifies cookie leak for large cookies
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
The fix done in 20ea22ff735
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- cookie: fix memory leak on oversized rejection
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Regression brought by 2bc230de63b
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Detected by OSS-fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3513
Assisted-by: Max Dymond
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #1930
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- [Anders Bakken brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
connect: fix race condition with happy eyeballs timeout
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
The timer should be started after conn->connecttime is set. Otherwise
the timer could expire without this condition being true:
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
/* should we try another protocol family? */
if(i == 0 && conn->tempaddr[1] == NULL &&
curlx_tvdiff(now, conn->connecttime) >= HAPPY_EYEBALLS_TIMEOUT) {
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Ref: #1928
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
Michael Kaufmann (28 Sep 2017)
- docs: link CURLOPT_CONNECTTIMEOUT and CURLOPT_CONNECTTIMEOUT_MS
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #1922
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- docs: clarify the use of environment variables for proxy
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #1921
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- http: add custom empty headers to repeated requests
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #1920
- reuse_conn: don't copy flags that are known to be equal
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
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().
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #1918
Daniel Stenberg (27 Sep 2017)
- curl.h: include <sys/select.h> on cygwin too
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
When building with -std=c++14 on cygwin, this header won't be
automatically included as it otherwise is.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
The <sys/select.h> include decision should ideally be reversed and be
avoided where that header file doesn't exist.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Ian Fette
Fixes #1925
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced with d8ab5dc50
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Michael Kaufmann (24 Sep 2017)
- tests: adjust .gitignore for new tests
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (23 Sep 2017)
- ntlm: move NTLM_NEEDS_NSS_INIT define into core NTLM header
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
.. and include the core NTLM header in all NTLM-related source files.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Follow up to 6f86022. Since then http_ntlm checks NTLM_NEEDS_NSS_INIT
but did not include vtls.h where it was defined.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/1911
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (23 Sep 2017)
- file_range: avoid integer overflow when figuring out byte range
When trying to bump the value with one and the value is already at max,
it causes an integer overflow.
Closes #1908
Detected by oss-fuzz:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3465
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Assisted-by: Max Dymond
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Michael Kaufmann (23 Sep 2017)
- tests: fix a compiler warning in test 643
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (23 Sep 2017)
- symbols-in-versions: fix CURLSSLSET_NO_BACKENDS entry
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- Use spaces instead of tabs as the delimiter.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
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.
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Viktor Szakats (22 Sep 2017)
- metalink: fix NSS issue in MultiSSL builds
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Ref: https://github.com/curl/curl/pull/1848
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- ntlm: use strict order for SSL backend #if branches
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
With the recently introduced MultiSSL support multiple SSL backends
can be compiled into cURL That means that now the order of the SSL
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Ref: https://github.com/curl/curl/pull/1848
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (22 Sep 2017)
- symbols-in-versions: add CURLSSLSET_NO_BACKENDS
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
...fixup from b8e0fe19ec
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- imap: quote atoms properly when escaping characters
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Updates test 800 to verify
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Fixes #1902
Closes #1903
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- tests: make the imap server not verify user+password
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
... as the test cases themselves do that and it makes it easier to add
crazy test cases.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Test 800 updated to use user name + password that need quoting.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Test 856 updated to trigger an auth fail differently.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Ref: #1902
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- vtls: provide curl_global_sslset() even in non-SSL builds
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
... it just returns error:
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://github.com/curl/curl/commit/1328f69d53f2f2e937696ea954c480412b018451#commitcomment-24470367
Reported-by: Marcel Raad
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #1906
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (22 Sep 2017)
- form/mime: field names are not allowed to contain zero-valued bytes.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Also suppress length argument of curl_mime_name() (names are always
zero-terminated).
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (21 Sep 2017)
- [Dirk Feytons brought this change]
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
openssl: only verify RSA private key if supported
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
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
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #1904
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Marcel Raad (21 Sep 2017)
- examples/post-callback: use long for CURLOPT_POSTFIELDSIZE
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Otherwise, typecheck-gcc.h warns on MinGW-w64.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (20 Sep 2017)
- mime: rephrase the multipart output state machine (#1898) ...
... in hope coverity will like it much.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- mime: fix an explicit null dereference (#1899)
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (20 Sep 2017)
- curl: check fseek() return code and bail on error
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Detected by coverity. CID 1418137.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- smtp: fix memory leak in OOM
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Regression since ce0881edee
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Coverity CID 1418139 and CID 1418136 found it, but it was also seen in
torture testing.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced with 5fe85587c
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- [Pavel Pavlov brought this change]
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
cookies: use lock when using CURLINFO_COOKIELIST
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Closes #1896
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Max Dymond brought this change]
ossfuzz: changes before merging the generated corpora
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes #1881
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- mime:escape_string minor clarification change
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
... as it also removes a warning with old gcc versions.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://curl.haxx.se/mail/lib-2017-09/0049.html
Reported-by: Ben Greear
- [Max Dymond brought this change]
ossfuzz: don't write out to stdout
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #1885
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- cookies: reject oversized cookies
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
... instead of truncating them.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
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.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Added test 1151 to verify
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://curl.haxx.se/mail/lib-2017-09/0062.html
Reported-by: Kevin Smith
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #1894
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- travis: on mac, don't install openssl or libidn
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- openssl is already installed and causes warnings when trying to
install again
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- libidn isn't used these days, and homebrew doesn't seem to have a
libidn2 package to replace with easily
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #1895
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- curl: make str2udouble not return values on error
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
... previously it would store a return value even when it returned
error, which could make the value get used anyway!
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Brian Carpenter
Closes #1893
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (18 Sep 2017)
- socks: fix incorrect port number in SOCKS4 error message
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://github.com/curl/curl/issues/1892
Reported-by: Jackarain@users.noreply.github.com
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- [Marc Aldorasi brought this change]
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
schannel: Support partial send for when data is too large
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://curl.haxx.se/mail/lib-2014-07/0033.html
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/1890
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [David Benjamin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
openssl: add missing includes
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/1891
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (15 Sep 2017)
- conversions: fix several compiler warnings
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- server/getpart: provide dummy function to build conversion enabled
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- non-ascii: use iconv() with 'char **' argument
Bug: https://curl.haxx.se/mail/lib-2017-09/0031.html
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- escape.c: error: pointer targets differ in signedness
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- docs: clarify the CURLOPT_INTERLEAVE* options behavior
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
- [Max Dymond brought this change]
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
rtsp: Segfault in rtsp.c when using WRITEDATA
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
If the INTERLEAVEFUNCTION is defined, then use that plus the
INTERLEAVEDATA information when writing RTP. Otherwise, use
WRITEFUNCTION and WRITEDATA.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Fixes #1880
Closes #1884
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Marcel Raad (15 Sep 2017)
- [Isaac Boukris brought this change]
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
tests: enable gssapi in travis-ci linux build
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/1687
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Isaac Boukris brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
tests: add initial gssapi test using stub implementation
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
The stub implementation is pre-loaded using LD_PRELOAD
and emulates common gssapi uses (only builds if curl is
initially built with gssapi support).
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
The initial tests are currently disabled for debug builds
as LD_PRELOAD is not used then.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Ref: https://github.com/curl/curl/pull/1687
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (15 Sep 2017)
- test1150: verify same host fetch using different ports over proxy
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #1889
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- URL: on connection re-use, still pick the new remote port
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
... as when a proxy connection is being re-used, it can still get a
different remote port.
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Fixes #1887
Reported-by: Oli Kingshott
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced with 87501e57f
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- code style: remove wrong uses of multiple spaces
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #1878
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- checksrc: detect and warn for multiple spaces
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- code style: use space after semicolon
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- checksrc: verify space after semicolons
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- code style: use spaces around pluses
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- checksrc: detect and warn for lack of spaces next to plus signs
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- code style: use spaces around equals signs
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- checksrc: verify spaces around equals signs
... as the code style mandates.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- Curl_checkheaders: make it available for IMAP and SMTP too
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
... not only HTTP uses this now.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Closes #1875
- travis: add build without HTTP/SMTP/IMAP
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (10 Sep 2017)
- mbedtls: enable CA path processing
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
CA path processing was implemented when mbedtls.c was added to libcurl
in fe7590f, but it was never enabled.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://github.com/curl/curl/issues/1877
Reported-by: SBKarr@users.noreply.github.com
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (8 Sep 2017)
- rtsp: do not call fwrite() with NULL pointer FILE *
If the default write callback is used and no destination has been set, a
NULL pointer would be passed to fwrite()'s 4th argument.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
OSS-fuzz bug https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3327
(not publicly open yet)
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Detected by OSS-fuzz
Closes #1874
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- configure: use -Wno-varargs on clang 3.9[.X] debug builds
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
... to avoid a clang bug
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- [Max Dymond brought this change]
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
ossfuzz: add some more handled CURL options
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Add support for HEADER, COOKIE, RANGE, CUSTOMREQUEST, MAIL_RECIPIENT,
MAIL_FROM and uploading data.
- configure: check for C++ compiler after C, to make it non-fatal
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
The tests for object file/executable file extensions are presumably only
done for the first of these macros in the configure file.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://github.com/curl/curl/pull/1851#issuecomment-327597515
Reported-by: Marcel Raad
Closes #1873
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (7 Sep 2017)
- configure: fix curl_off_t check's include order
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- Prepend srcdir include path instead of append.
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
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.
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/1870
Daniel Stenberg (7 Sep 2017)
- [Jakub Zakrzewski brought this change]
KNOWN_BUGS: Remove CMake symbol hiding issue
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
It has already been fixed in 6140dfc
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
- http-proxy: when not doing CONNECT, that phase is done immediately
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
`conn->connect_state` is NULL when doing a regular non-CONNECT request
over the proxy and should therefor be considered complete at once.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Fixes #1853
Closes #1862
Reported-by: Lawrence Wagerfield
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
OpenSSL: fix yet another mistake while encapsulating SSL backend data
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
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).
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Fixes #1855
Closes #1871
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
OpenSSL: fix erroneous SSL backend encapsulation
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
This conversion was partially automated (search-and-replace) and
partially manual (e.g. proxy_ssl's backend data).
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
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.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Reported by Jay Satiro in https://github.com/curl/curl/issues/1855.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Jay Satiro brought this change]
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
vtls: fix memory corruption
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
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).
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
[jes: provided the commit message, tested and verified the patch]
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- vtls: switch to CURL_SHA256_DIGEST_LENGTH define
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
... instead of the prefix-less version since WolfSSL 3.12 now uses an
enum with that name that causes build failures for us.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Fixes #1865
Closes #1867
Reported-by: Gisle Vanem
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- travis: add c-ares enabled builds linux + osx
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #1868
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- HISTORY: added some recent items
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (6 Sep 2017)
- SSL: fix unused parameter warnings
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (6 Sep 2017)
- mime: drop internal FILE * support.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- 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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (6 Sep 2017)
- configure: remove --enable-soname-bump and SONAME_BUMP
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.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
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).
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Finally, this bumping logic is not present in the cmake build.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #1861
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (6 Sep 2017)
- [Gisle Vanem brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
vtls: select ssl backend case-insensitive (follow-up)
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- Do a case-insensitive comparison of CURL_SSL_BACKEND env as well.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- Change Curl_strcasecompare calls to strcasecompare
(maps to the former but shorter).
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Follow-up to c290b8f.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://github.com/curl/curl/commit/c290b8f#commitcomment-24094313
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Co-authored-by: Jay Satiro
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- openssl: Integrate Peter Wu's SSLKEYLOGFILE implementation
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
This is an adaptation of 2 of Peter Wu's SSLKEYLOGFILE implementations.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
The first one, written for old OpenSSL versions:
https://git.lekensteyn.nl/peter/wireshark-notes/tree/src/sslkeylog.c
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
The second one, written for BoringSSL and new OpenSSL versions:
https://github.com/curl/curl/pull/1346
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Note the first one is GPL licensed but the author gave permission to
waive that license for libcurl.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
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.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
And in Wireshark change your preferences to point to that key file:
Edit > Preferences > Protocols > SSL > Master-Secret
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Co-authored-by: Peter Wu
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Ref: https://github.com/curl/curl/pull/1030
Ref: https://github.com/curl/curl/pull/1346
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/1866
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (5 Sep 2017)
- mime: fix a trivial warning.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- mime: replace 'struct Curl_mimepart' by 'curl_mimepart' in encoder code.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
mime_state is now a typedef.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- mime: implement encoders.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- runtests.pl: support attribute "nonewline" in part verify/upload.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Daniel Stenberg brought this change]
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
fixup data/test1135
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Daniel Stenberg brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
mime: unified to use the typedef'd mime structs everywhere
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
... and slightly edited to follow our code style better.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- [Daniel Stenberg brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
curl.h: use lower case curl_mime* as for all public symbols
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Daniel Stenberg brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
docs/curl_mime_*.3: use correct variable types in examples
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Kamil Dudka (5 Sep 2017)
- openssl: use OpenSSL's default ciphers by default
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
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
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Closes #1846
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Viktor Szakats (5 Sep 2017)
- examples/mime: minor example code fixes
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (5 Sep 2017)
- docs/curl_mime_*.3: added examples
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- configure: add MultiSSL to FEATURES when enabled
...for curl-config and its corresponding test 1014
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- http-proxy: treat all 2xx as CONNECT success
Added test 1904 to verify.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Lawrence Wagerfield
Fixes #1859
Closes #1860
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- MAIL-ETIQUETTE: added "1.9 Your emails are public"
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
- curl.h: fix "unused checksrc ignore", remove dangling reference
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
... to a README file that doesn't exist anymore
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Viktor Szakats (4 Sep 2017)
- docs: Update to secure URL versions
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- mime: use CURL_ZERO_TERMINATED in examples
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
and some minor whitespace fixes
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (4 Sep 2017)
- schannel: return CURLE_SSL_CACERT on failed verification
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
... not *CACERT_BADFILE as it isn't really because of a bad file.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Bug: https://curl.haxx.se/mail/lib-2017-09/0002.html
Closes #1858
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- test1135: fixed after bd8070085f9
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- examples/post-callback: stop returning one byte at a time
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
... 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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Instead this now returns as much data as possible.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: fixed the function counter script
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- curl.h: make the curl_strequal() protos use the same style
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
... as the other functions. Makes it easier to machine-parse!
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- docs: curl_mime_*.3 man page formatting edits
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced with 1ab9e9b50
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (4 Sep 2017)
- lib: bump version info (soname). Adapt and reenable test 1135.
Daniel Stenberg (3 Sep 2017)
- headers: move the global_sslset() proto from multi.h to curl.h
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (3 Sep 2017)
- mime: fix signed/unsigned conversions.
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Use and generate CURL_ZERO_TERMINATED in curl tool and tests.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (3 Sep 2017)
- tool_formparse: fix some trivial warnings
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Patrick Monnerat (3 Sep 2017)
- mime: use size_t instead of ssize_t in public API interface.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
To support telling a string is nul-terminated, symbol CURL_ZERO_TERMINATED
has been introduced.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Documentation updated accordingly.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
symbols in versions updated. Added form API symbols deprecation info.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- mime: remove support "-" stdin pseudo-file name in curl_mime_filedata().
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
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.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
The cli tool and documentation are updated accordingly.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
The feature is however kept internally for form API compatibility, with
the known caveats it always had.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
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.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- mime: fix some implicit curl_off_t --> size_t conversion warnings.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- mime: tests and examples.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- mime: use in curl cli tool instead of form API.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Extended -F option syntax to support multipart mail messages.
-F keyword headers= added to include custom headers in parts.
Documentation upgraded.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- mime: new MIME API.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Available in HTTP, SMTP and IMAP.
Deprecates the FORM API.
See CURLOPT_MIMEPOST.
Lib code and associated documentation.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- test564: Add a warning comment about shell profile output.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Shell profile output makes the SSH server failing and this problem reason
is not easy to find when no hint is given.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- checksrc: disable SPACEBEFOREPAREN for case statement.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
The case keyword may be followed by a constant expression and thus should
allow it to start with an open parenthesis.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- runtests.pl: allow <file[1-4]> tags in client section.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
This enables tests to create more than one file on the client side.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- runtests.pl: Apply strippart to upload too.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
This will allow substitution of boundaries in mail messages.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- Curl_base64_encode: always call with a real data handle.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Some calls in different modules were setting the data handle to NULL, causing
segmentation faults when using builds that enable character code conversions.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- non-ascii: allow conversion functions to be called with a NULL data handle.
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
- http: fix a memory leakage in checkrtspprefix().
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (2 Sep 2017)
2018-03-20 13:49:31 +00:00
- [Max Dymond brought this change]
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
ossfuzz: Move to C++ for curl_fuzzer.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
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.
- curl_global_sslset: select backend by name case insensitively
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #1849
2017-03-02 22:46:25 +00:00
2018-03-20 13:49:31 +00:00
- [Max Dymond brought this change]
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
ossfuzz: additional seed corpora
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Create simple seed corpora for:
- FTP
- telnet
- dict
- tftp
- imap
- pop3
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
based off the tests of the same number.
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Closes #1842
2018-02-04 17:52:34 +00:00
2018-03-20 13:49:31 +00:00
- [Max Dymond brought this change]
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
ossfuzz: moving towards the ideal integration
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- 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
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- strcase: corrected comment header for Curl_strcasecompare()
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- unit1301: fix error message on first test
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- curl_global_sslset.3: show the struct and enum too
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
... so that users can actually write code based on the man page alone,
not having to read the header file.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Jay Satiro (31 Aug 2017)
- darwinssl: handle long strings in TLS certs (follow-up)
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- Fix handling certificate subjects that are already UTF-8 encoded.
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
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.
2016-12-04 13:31:28 +00:00
2018-07-15 15:57:46 +00:00
Ref: https://github.com/curl/curl/issues/1823
Ref: https://github.com/curl/curl/pull/1831
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/1836
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (31 Aug 2017)
- cyassl: call it the "WolfSSL" backend
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
... instead of cyassl, as this is the current name for it.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Closes #1844
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- polarssl: fix multissl breakage
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Dan Fandrich
Bug: https://curl.haxx.se/mail/lib-2017-08/0121.html
Closes #1843
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
- configure: remove the leading comma from the backends list
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
... when darwinssl is used.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Viktor Szakats
Bug: https://github.com/curl/curl/commit/b0989cd3abaff4f9a0717b4875022fa79e33b481#commitcomment-23943493
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Closes #1845
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
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
^
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
Viktor Szakats (30 Aug 2017)
- makefile.m32: add multissl support
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Closes https://github.com/curl/curl/pull/1840
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (30 Aug 2017)
- curl.h: CURLSSLBACKEND_WOLFSSL used wrong value
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
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.
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Gisle Vanem
Bug: https://curl.haxx.se/mail/lib-2017-08/0120.html
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- curl_global_sslset.3: clarify
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
clarify that the available backends are the ones this build supports
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
plus add some formatting
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Rich Gray
Bug: https://curl.haxx.se/mail/lib-2017-08/0119.html
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- curl/multi.h: remove duplicated closing c++ brace
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Regression since 1328f69d53f2f2e93
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Fixes #1841
Reported-by: Andrei Karas
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- RELEASE-NOTES: synced with 8c33c963a
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
- HELP-US.md: spelling
- HELP-US.md: "How to get started helping out in the curl project"
2015-03-05 11:01:11 +00:00
2018-07-15 15:57:46 +00:00
Closes #1837
Dan Fandrich (29 Aug 2017)
- asyn-thread: Fixed cleanup after OOM
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
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.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (28 Aug 2017)
- curl_global_init.3: mention curl_global_sslset(3)
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Dan Fandrich (28 Aug 2017)
- unit1606: Fixed shadowed variable warning
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- asyn-thread: Improved cleanup after OOM situations
2017-03-02 22:46:25 +00:00
2018-07-15 15:57:46 +00:00
- 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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Daniel Stenberg (28 Aug 2017)
- [Johannes Schindelin brought this change]
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
configure: Handle "MultiSSL" specially When versioning symbols
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
There is a mode in which libcurl is compiled with versioned symbols,
depending on the active SSL backend.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
configure: allow setting the default SSL backend
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Previously, we used as default SSL backend whatever was first in the
`available_backends` array.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
However, some users may want to override that default without patching
the source code.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Now they can: with the --with-default-ssl-backend=<backend> option of
the ./configure script.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
vtls: use Curl_ssl_multi pseudo backend only when needed
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
version: if built with more than one SSL backend, report all of them
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
To discern the active one from the inactive ones, put the latter into
parentheses.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
version: add the CURL_VERSION_MULTI_SSL feature flag
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
This new feature flag reports When cURL was built with multiple SSL
backends.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
metalink: allow compiling with multiple SSL backends
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
docs/examples: demonstrate how to select SSL backends
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
The newly-introduced curl_global_sslset() function deserves to be
show-cased.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Add a man page for curl_global_sslset()
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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).
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
curl_global_sslset(-1, NULL, &avail);
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
which will return CURLSSLSET_UNKNOWN_BACKEND and populate the avail
variable to point to the relevant information to present to the user.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
vtls: refactor out essential information about the SSL backends
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
vtls: allow selecting which SSL backend to use at runtime
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
When building software for the masses, it is sometimes not possible to
decide for all users which SSL backend is appropriate.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
By running ./configure with multiple --with-<backend> options, cURL will
be built with multiple backends.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
For the moment, the backend can be configured using the environment
variable CURL_SSL_BACKEND (valid values are e.g. "openssl" and
"schannel").
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
vtls: fold the backend ID into the Curl_ssl structure
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
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
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
To avoid too many malloc() calls, we simply append the private structs
to the connectdata struct in allocate_conn().
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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).
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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).
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
vtls: prepare the SSL backends for encapsulated private data
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
urldata.h: move SSPI-specific #include to correct location
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Fix this problem by moving the correct #include instead.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
urldata.h: remove support for obsolete PolarSSL version
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
getinfo: access SSL internals via Curl_ssl
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
This will also allow for switching SSL backends as a runtime option.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
vtls: move SSL backends' private constants out of their header files
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
axtls: use Curl_none_* versions of init() and cleanup()
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
There are convenient no-op versions of the init/cleanup functions now,
no need to define private ones for axTLS.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
vtls: remove obsolete declarations of SSL backend functionality
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
These functions are all available via the Curl_ssl struct now, no need
to declare them separately anymore.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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).
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
schannel: reorder functions topologically
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
So let's just move the _session_free() function's definition before it
is called.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
axtls: reorder functions topologically
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
So let's just move the Curl_axtls_close() function's definition before
it is called.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
vtls: move the SUPPORT_HTTPS_PROXY flag into the Curl_ssl struct
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
That will allow us to choose the SSL backend at runtime.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
vtls: convert the have_curlssl_* constants to runtime flags
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
The entire idea of introducing the Curl_ssl struct to describe SSL
backends is to prepare for choosing the SSL backend at runtime.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
To that end, convert all the #ifdef have_curlssl_* style conditionals
to use bit flags instead.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
vtls: move sha256sum into the Curl_ssl struct
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
The SHA-256 checksumming is also an SSL backend-specific function.
Let's include it in the struct declaring the functionality of SSL
backends.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
vtls: move md5sum into the Curl_ssl struct
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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).
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
vtls: use the Curl_ssl struct to access all SSL backends' functionality
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
vtls: declare Curl_ssl structs for every SSL backend
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
vtls: introduce a new struct for SSL backends
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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).
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
vtls: make sure all _data_pending() functions return bool
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
vtls: make sure all _cleanup() functions return void
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
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.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2015-01-23 15:30:59 +00:00
2018-07-15 15:57:46 +00:00
- [Johannes Schindelin brought this change]
2016-09-16 04:29:17 +00:00
2018-07-15 15:57:46 +00:00
vtls: use consistent signature for _random() implementations
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
This will make the upcoming multissl backend much easier to implement.
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
- strtooff: fix build for systems with long long but no strtoll option
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Closes #1829
2012-06-01 15:23:17 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Dan Fandrich
Bug: https://github.com/curl/curl/pull/1758#issuecomment-324861615
- darwinssl: handle long strings in TLS certs
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
... as the previous fixed length 128 bytes buffer was sometimes too
small.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Fixes #1823
Closes #1831
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Benjamin Sergeant
Assisted-by: Bill Pyne, Ray Satiro, Nick Zitzmann
2017-07-01 14:06:24 +00:00
2018-07-15 15:57:46 +00:00
- system.h: include sys/poll.h for AIX
2018-03-20 13:49:31 +00:00
2018-07-15 15:57:46 +00:00
... to get the event/revent defines that might be used for the poll
struct.
2018-02-04 17:52:34 +00:00
2018-07-15 15:57:46 +00:00
Reported-by: Michael Smith
Fixes #1828
Closes #1833