Skip to content

Commit 8ff182f

Browse files
patrikjuvonenqaisjp
authored andcommitted
Update curl from 7.65.1 to 7.65.3 (#1027)
* Update curl from 7.65.1 to 7.65.2 * Update curl from 7.65.2 to 7.65.3
1 parent 52c368e commit 8ff182f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+6259
-6268
lines changed

vendor/curl/CHANGES

Lines changed: 5651 additions & 5548 deletions
Large diffs are not rendered by default.

vendor/curl/RELEASE-NOTES

Lines changed: 7 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,14 @@
1-
curl and libcurl 7.65.1
1+
curl and libcurl 7.65.3
22

3-
Public curl releases: 182
3+
Public curl releases: 184
44
Command line options: 221
55
curl_easy_setopt() options: 268
66
Public functions in libcurl: 80
7-
Contributors: 1965
7+
Contributors: 1991
88

99
This release includes the following bugfixes:
1010

11-
o CURLOPT_LOW_SPEED_* repaired [6]
12-
o NTLM: reset proxy "multipass" state when CONNECT request is done [32]
13-
o PolarSSL: deprecate support step 1. Removed from configure [3]
14-
o appveyor: add Visual Studio solution build [25]
15-
o cmake: check for if_nametoindex() [2]
16-
o cmake: support CMAKE_OSX_ARCHITECTURES when detecting SIZEOF variables [17]
17-
o config-win32: add support for if_nametoindex and getsockname [8]
18-
o conncache: Remove the DEBUGASSERT on length check [27]
19-
o conncache: make "bundles" per host name when doing proxy tunnels [21]
20-
o curl-win32.h: Enable Unix Domain Sockets based on the Windows SDK version [16]
21-
o curl_share_setopt.3: improve wording [34]
22-
o dump-header.d: spell out that no headers == empty file [30]
23-
o example/http2-download: fix format specifier [4]
24-
o examples: cleanups and compiler warning fixes [4]
25-
o http2: Stop drain from being permanently set [26]
26-
o http: don't parse body-related headers in bodyless responses [28]
27-
o md4: build correctly with openssl without MD4 [9]
28-
o md4: include the mbedtls config.h to get the MD4 info [10]
29-
o multi: track users of a socket better [15]
30-
o nss: allow to specify TLS 1.3 ciphers if supported by NSS [20]
31-
o parse_proxy: make sure portptr is initialized [23]
32-
o parse_proxy: use the IPv6 zone id if given [1]
33-
o sectransp: handle errSSLPeerAuthCompleted from SSLRead() [13]
34-
o singlesocket: use separate variable for inner loop [31]
35-
o ssl: Update outdated "openssl-only" comments for supported backends [33]
36-
o tests: add HAProxy keywords [18]
37-
o tests: add support to test against OpenSSH for Windows [5]
38-
o tests: make test 1420 and 1406 work with rtsp-disabled libcurl [19]
39-
o tls13-docs: mention it is only for OpenSSL >= 1.1.1 [29]
40-
o tool_parse_cfg: Avoid 2 fopen() for WIN32
41-
o tool_setopt: for builds with disabled-proxy, skip all proxy setopts() [12]
42-
o url: Load if_nametoindex() dynamically from iphlpapi.dll on Windows [24]
43-
o url: fix bad feature-disable #ifdef [7]
44-
o url: use correct port in ConnectionExists() [22]
45-
o winbuild: Use two space indentation [11]
11+
o progress: make the progress meter appear again [1]
4612

4713
This release includes the following known bugs:
4814

@@ -51,50 +17,11 @@ This release includes the following known bugs:
5117
This release would not have looked like this without help, code, reports and
5218
advice from friends like these:
5319

54-
Benbuck Nason, Carlos ORyan, Daniel Stenberg, Dave Reisner,
55-
dbrowndan on github, dkwolfe4 on github, Edmond Yu, elsamuko on github,
56-
Eric Wu, Frank Gevaerts, Gisle Vanem, Hubert Kario, Jonas Vautherin,
57-
Josie Huddleston, Kunal Ekawde, Maksim Stsepanenka, Marcel Raad,
58-
Marc Hörsken, Michael Kaufmann, Patrick Monnerat, Ray Satiro,
59-
Sergey Ogryzkov, smuellerDD on github, Steve Holme, Tom Greenslade,
60-
Tom van der Woerdt, wesinator on github,
61-
(27 contributors)
20+
Chih-Hsuan Yen, Daniel Stenberg,
21+
(2 contributors)
6222

6323
Thanks! (and sorry if I forgot to mention someone)
6424

6525
References to bug reports and discussions on issues:
6626

67-
[1] = https://curl.haxx.se/bug/?i=3482
68-
[2] = https://curl.haxx.se/bug/?i=3917
69-
[3] = https://curl.haxx.se/bug/?i=3888
70-
[4] = https://curl.haxx.se/bug/?i=3919
71-
[5] = https://curl.haxx.se/bug/?i=3290
72-
[6] = https://curl.haxx.se/bug/?i=3927
73-
[7] = https://curl.haxx.se/bug/?i=3924
74-
[8] = https://curl.haxx.se/bug/?i=3923
75-
[9] = https://curl.haxx.se/bug/?i=3921
76-
[10] = https://curl.haxx.se/bug/?i=3922
77-
[11] = https://curl.haxx.se/bug/?i=3930
78-
[12] = https://curl.haxx.se/bug/?i=3926
79-
[13] = https://curl.haxx.se/bug/?i=3932
80-
[14] = https://curl.haxx.se/bug/?i=3653
81-
[15] = https://curl.haxx.se/bug/?i=3952
82-
[16] = https://curl.haxx.se/bug/?i=3939
83-
[17] = https://curl.haxx.se/bug/?i=3945
84-
[18] = https://curl.haxx.se/bug/?i=3949
85-
[19] = https://curl.haxx.se/bug/?i=3948
86-
[20] = https://curl.haxx.se/bug/?i=3916
87-
[21] = https://curl.haxx.se/bug/?i=3951
88-
[22] = https://curl.haxx.se/bug/?i=3956
89-
[23] = https://curl.haxx.se/bug/?i=3959
90-
[24] = https://curl.haxx.se/bug/?i=3960
91-
[25] = https://curl.haxx.se/bug/?i=3941
92-
[26] = https://curl.haxx.se/bug/?i=3966
93-
[27] = https://curl.haxx.se/bug/?i=3962
94-
[28] = https://curl.haxx.se/bug/?i=3968
95-
[29] = https://curl.haxx.se/bug/?i=3938
96-
[30] = https://curl.haxx.se/bug/?i=3964
97-
[31] = https://curl.haxx.se/bug/?i=3970
98-
[32] = https://curl.haxx.se/bug/?i=3972
99-
[33] = https://curl.haxx.se/bug/?i=3985
100-
[34] = https://curl.haxx.se/mail/lib-2019-06/0009.html
27+
[1] = https://curl.haxx.se/bug/?i=4122

vendor/curl/include/curl/curl.h

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,6 @@ typedef enum {
927927
but 32 */
928928
#define CURLOPTTYPE_LONG 0
929929
#define CURLOPTTYPE_OBJECTPOINT 10000
930-
#define CURLOPTTYPE_STRINGPOINT 10000
931930
#define CURLOPTTYPE_FUNCTIONPOINT 20000
932931
#define CURLOPTTYPE_OFF_T 30000
933932

@@ -947,12 +946,15 @@ typedef enum {
947946
/* The macro "##" is ISO C, we assume pre-ISO C doesn't support it. */
948947
#define LONG CURLOPTTYPE_LONG
949948
#define OBJECTPOINT CURLOPTTYPE_OBJECTPOINT
950-
#define STRINGPOINT CURLOPTTYPE_OBJECTPOINT
951949
#define FUNCTIONPOINT CURLOPTTYPE_FUNCTIONPOINT
952950
#define OFF_T CURLOPTTYPE_OFF_T
953951
#define CINIT(name,type,number) CURLOPT_/**/name = type + number
954952
#endif
955953

954+
/* handy aliases that make no run-time difference */
955+
#define CURLOPTTYPE_STRINGPOINT CURLOPTTYPE_OBJECTPOINT
956+
#define CURLOPTTYPE_SLISTPOINT CURLOPTTYPE_OBJECTPOINT
957+
956958
/*
957959
* This macro-mania below setups the CURLOPT_[what] enum, to be used with
958960
* curl_easy_setopt(). The first argument in the CINIT() macro is the [what]
@@ -1050,7 +1052,7 @@ typedef enum {
10501052

10511053
/* This points to a linked list of headers, struct curl_slist kind. This
10521054
list is also used for RTSP (in spite of its name) */
1053-
CINIT(HTTPHEADER, OBJECTPOINT, 23),
1055+
CINIT(HTTPHEADER, SLISTPOINT, 23),
10541056

10551057
/* This points to a linked list of post entries, struct curl_httppost */
10561058
CINIT(HTTPPOST, OBJECTPOINT, 24),
@@ -1065,7 +1067,7 @@ typedef enum {
10651067
CINIT(CRLF, LONG, 27),
10661068

10671069
/* send linked-list of QUOTE commands */
1068-
CINIT(QUOTE, OBJECTPOINT, 28),
1070+
CINIT(QUOTE, SLISTPOINT, 28),
10691071

10701072
/* send FILE * or void * to store headers to, if you use a callback it
10711073
is simply passed to the callback unmodified */
@@ -1100,7 +1102,7 @@ typedef enum {
11001102
/* 38 is not used */
11011103

11021104
/* send linked-list of post-transfer QUOTE commands */
1103-
CINIT(POSTQUOTE, OBJECTPOINT, 39),
1105+
CINIT(POSTQUOTE, SLISTPOINT, 39),
11041106

11051107
CINIT(OBSOLETE40, OBJECTPOINT, 40), /* OBSOLETE, do not use! */
11061108

@@ -1176,7 +1178,7 @@ typedef enum {
11761178
CINIT(FILETIME, LONG, 69),
11771179

11781180
/* This points to a linked list of telnet options */
1179-
CINIT(TELNETOPTIONS, OBJECTPOINT, 70),
1181+
CINIT(TELNETOPTIONS, SLISTPOINT, 70),
11801182

11811183
/* Max amount of cached alive connections */
11821184
CINIT(MAXCONNECTS, LONG, 71),
@@ -1260,7 +1262,7 @@ typedef enum {
12601262
CINIT(DNS_CACHE_TIMEOUT, LONG, 92),
12611263

12621264
/* send linked-list of pre-transfer QUOTE commands */
1263-
CINIT(PREQUOTE, OBJECTPOINT, 93),
1265+
CINIT(PREQUOTE, SLISTPOINT, 93),
12641266

12651267
/* set the debug function */
12661268
CINIT(DEBUGFUNCTION, FUNCTIONPOINT, 94),
@@ -1300,7 +1302,7 @@ typedef enum {
13001302
CINIT(PRIVATE, OBJECTPOINT, 103),
13011303

13021304
/* Set aliases for HTTP 200 in the HTTP Response header */
1303-
CINIT(HTTP200ALIASES, OBJECTPOINT, 104),
1305+
CINIT(HTTP200ALIASES, SLISTPOINT, 104),
13041306

13051307
/* Continue to send authentication (user+password) when following locations,
13061308
even when hostname changed. This can potentially send off the name
@@ -1572,8 +1574,7 @@ typedef enum {
15721574

15731575
/* set the bitmask for the protocols that libcurl is allowed to follow to,
15741576
as a subset of the CURLOPT_PROTOCOLS ones. That means the protocol needs
1575-
to be set in both bitmasks to be allowed to get redirected to. Defaults
1576-
to all protocols except FILE and SCP. */
1577+
to be set in both bitmasks to be allowed to get redirected to. */
15771578
CINIT(REDIR_PROTOCOLS, LONG, 182),
15781579

15791580
/* set the SSH knownhost file name to use */
@@ -1590,7 +1591,7 @@ typedef enum {
15901591
CINIT(MAIL_FROM, STRINGPOINT, 186),
15911592

15921593
/* set the list of SMTP mail receiver(s) */
1593-
CINIT(MAIL_RCPT, OBJECTPOINT, 187),
1594+
CINIT(MAIL_RCPT, SLISTPOINT, 187),
15941595

15951596
/* FTP: send PRET before PASV */
15961597
CINIT(FTP_USE_PRET, LONG, 188),
@@ -1640,7 +1641,7 @@ typedef enum {
16401641
CINIT(FNMATCH_DATA, OBJECTPOINT, 202),
16411642

16421643
/* send linked-list of name:port:address sets */
1643-
CINIT(RESOLVE, OBJECTPOINT, 203),
1644+
CINIT(RESOLVE, SLISTPOINT, 203),
16441645

16451646
/* Set a username for authenticated TLS */
16461647
CINIT(TLSAUTH_USERNAME, STRINGPOINT, 204),
@@ -1730,7 +1731,7 @@ typedef enum {
17301731

17311732
/* This points to a linked list of headers used for proxy requests only,
17321733
struct curl_slist kind */
1733-
CINIT(PROXYHEADER, OBJECTPOINT, 228),
1734+
CINIT(PROXYHEADER, SLISTPOINT, 228),
17341735

17351736
/* Pass in a bitmask of "header options" */
17361737
CINIT(HEADEROPT, LONG, 229),
@@ -1777,7 +1778,7 @@ typedef enum {
17771778

17781779
/* Linked-list of host:port:connect-to-host:connect-to-port,
17791780
overrides the URL's host:port (only for the network layer) */
1780-
CINIT(CONNECT_TO, OBJECTPOINT, 243),
1781+
CINIT(CONNECT_TO, SLISTPOINT, 243),
17811782

17821783
/* Set TCP Fast Open */
17831784
CINIT(TCP_FASTOPEN, LONG, 244),

vendor/curl/include/curl/curlver.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030

3131
/* This is the version number of the libcurl package from which this header
3232
file origins: */
33-
#define LIBCURL_VERSION "7.65.1"
33+
#define LIBCURL_VERSION "7.65.3"
3434

3535
/* The numeric version number is also available "in parts" by using these
3636
defines: */
3737
#define LIBCURL_VERSION_MAJOR 7
3838
#define LIBCURL_VERSION_MINOR 65
39-
#define LIBCURL_VERSION_PATCH 1
39+
#define LIBCURL_VERSION_PATCH 3
4040

4141
/* This is the numeric version of the libcurl version number, meant for easier
4242
parsing and comparions by programs. The LIBCURL_VERSION_NUM define will
@@ -57,7 +57,7 @@
5757
CURL_VERSION_BITS() macro since curl's own configure script greps for it
5858
and needs it to contain the full number.
5959
*/
60-
#define LIBCURL_VERSION_NUM 0x074101
60+
#define LIBCURL_VERSION_NUM 0x074103
6161

6262
/*
6363
* This is the date and time when the full source package was created. The
@@ -68,7 +68,7 @@
6868
*
6969
* "2007-11-23"
7070
*/
71-
#define LIBCURL_TIMESTAMP "2019-06-05"
71+
#define LIBCURL_TIMESTAMP "2019-07-19"
7272

7373
#define CURL_VERSION_BITS(x,y,z) ((x)<<16|(y)<<8|(z))
7474
#define CURL_AT_LEAST_VERSION(x,y,z) \

vendor/curl/include/curl/typecheck-gcc.h

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,14 @@ _CURL_WARNING(_curl_easy_getinfo_err_curl_off_t,
300300
(option) == CURLOPT_PROXY_SSLKEY || \
301301
(option) == CURLOPT_PROXY_SSLKEYTYPE || \
302302
(option) == CURLOPT_PROXY_SSL_CIPHER_LIST || \
303+
(option) == CURLOPT_PROXY_TLS13_CIPHERS || \
303304
(option) == CURLOPT_PROXY_TLSAUTH_PASSWORD || \
304-
(option) == CURLOPT_PROXY_TLSAUTH_USERNAME || \
305305
(option) == CURLOPT_PROXY_TLSAUTH_TYPE || \
306+
(option) == CURLOPT_PROXY_TLSAUTH_USERNAME || \
306307
(option) == CURLOPT_RANDOM_FILE || \
307308
(option) == CURLOPT_RANGE || \
308309
(option) == CURLOPT_REFERER || \
310+
(option) == CURLOPT_REQUEST_TARGET || \
309311
(option) == CURLOPT_RTSP_SESSION_ID || \
310312
(option) == CURLOPT_RTSP_STREAM_URI || \
311313
(option) == CURLOPT_RTSP_TRANSPORT || \
@@ -321,6 +323,7 @@ _CURL_WARNING(_curl_easy_getinfo_err_curl_off_t,
321323
(option) == CURLOPT_SSLKEY || \
322324
(option) == CURLOPT_SSLKEYTYPE || \
323325
(option) == CURLOPT_SSL_CIPHER_LIST || \
326+
(option) == CURLOPT_TLS13_CIPHERS || \
324327
(option) == CURLOPT_TLSAUTH_PASSWORD || \
325328
(option) == CURLOPT_TLSAUTH_TYPE || \
326329
(option) == CURLOPT_TLSAUTH_USERNAME || \
@@ -362,7 +365,7 @@ _CURL_WARNING(_curl_easy_getinfo_err_curl_off_t,
362365
(option) == CURLOPT_SSL_CTX_DATA || \
363366
(option) == CURLOPT_WRITEDATA || \
364367
(option) == CURLOPT_RESOLVER_START_DATA || \
365-
(option) == CURLOPT_CURLU || \
368+
(option) == CURLOPT_TRAILERDATA || \
366369
0)
367370

368371
/* evaluates to true if option takes a POST data argument (void* or char*) */
@@ -382,6 +385,7 @@ _CURL_WARNING(_curl_easy_getinfo_err_curl_off_t,
382385
(option) == CURLOPT_QUOTE || \
383386
(option) == CURLOPT_RESOLVE || \
384387
(option) == CURLOPT_TELNETOPTIONS || \
388+
(option) == CURLOPT_CONNECT_TO || \
385389
0)
386390

387391
/* groups of curl_easy_getinfo infos that take the same type of argument */

vendor/curl/lib/asyn-ares.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,11 @@ CURLcode Curl_set_dns_servers(struct Curl_easy *data,
734734
return CURLE_OK;
735735

736736
#if (ARES_VERSION >= 0x010704)
737+
#if (ARES_VERSION >= 0x010b00)
738+
ares_result = ares_set_servers_ports_csv(data->state.resolver, servers);
739+
#else
737740
ares_result = ares_set_servers_csv(data->state.resolver, servers);
741+
#endif
738742
switch(ares_result) {
739743
case ARES_SUCCESS:
740744
result = CURLE_OK;

0 commit comments

Comments
 (0)