Skip to content

Commit af3bfd3

Browse files
Update curl to 7.69.1 (#1302)
* Update curl to 7.69.1 Co-authored-by: Qais Patankar <[email protected]>
1 parent d1c6067 commit af3bfd3

Some content is hidden

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

98 files changed

+9978
-8493
lines changed

vendor/curl/CHANGES

Lines changed: 4928 additions & 4855 deletions
Large diffs are not rendered by default.

vendor/curl/RELEASE-NOTES

Lines changed: 62 additions & 267 deletions
Large diffs are not rendered by default.

vendor/curl/include/curl/curl.h

Lines changed: 337 additions & 345 deletions
Large diffs are not rendered by default.

vendor/curl/include/curl/curlver.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* | (__| |_| | _ <| |___
88
* \___|\___/|_| \_\_____|
99
*
10-
* Copyright (C) 1998 - 2019, Daniel Stenberg, <[email protected]>, et al.
10+
* Copyright (C) 1998 - 2020, Daniel Stenberg, <[email protected]>, et al.
1111
*
1212
* This software is licensed as described in the file COPYING, which
1313
* you should have received as part of this distribution. The terms
@@ -26,17 +26,17 @@
2626
a script at release-time. This was made its own header file in 7.11.2 */
2727

2828
/* This is the global package copyright */
29-
#define LIBCURL_COPYRIGHT "1996 - 2019 Daniel Stenberg, <[email protected]>."
29+
#define LIBCURL_COPYRIGHT "1996 - 2020 Daniel Stenberg, <[email protected]>."
3030

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

3535
/* The numeric version number is also available "in parts" by using these
3636
defines: */
3737
#define LIBCURL_VERSION_MAJOR 7
38-
#define LIBCURL_VERSION_MINOR 68
39-
#define LIBCURL_VERSION_PATCH 0
38+
#define LIBCURL_VERSION_MINOR 69
39+
#define LIBCURL_VERSION_PATCH 1
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 0x074400
60+
#define LIBCURL_VERSION_NUM 0x074501
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 "2020-01-08"
71+
#define LIBCURL_TIMESTAMP "2020-03-11"
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/multi.h

Lines changed: 18 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ typedef enum {
7272
attempted to get added - again */
7373
CURLM_RECURSIVE_API_CALL, /* an api function was called from inside a
7474
callback */
75-
CURLM_WAKEUP_FAILURE, /* wakeup is unavailable or failed */
75+
CURLM_WAKEUP_FAILURE, /* wakeup is unavailable or failed */
76+
CURLM_BAD_FUNCTION_ARGUMENT, /* function called with a bad parameter */
7677
CURLM_LAST
7778
} CURLMcode;
7879

@@ -343,71 +344,58 @@ CURL_EXTERN CURLMcode curl_multi_socket_all(CURLM *multi_handle,
343344
CURL_EXTERN CURLMcode curl_multi_timeout(CURLM *multi_handle,
344345
long *milliseconds);
345346

346-
#undef CINIT /* re-using the same name as in curl.h */
347-
348-
#ifdef CURL_ISOCPP
349-
#define CINIT(name,type,num) CURLMOPT_ ## name = CURLOPTTYPE_ ## type + num
350-
#else
351-
/* The macro "##" is ISO C, we assume pre-ISO C doesn't support it. */
352-
#define LONG CURLOPTTYPE_LONG
353-
#define OBJECTPOINT CURLOPTTYPE_OBJECTPOINT
354-
#define FUNCTIONPOINT CURLOPTTYPE_FUNCTIONPOINT
355-
#define OFF_T CURLOPTTYPE_OFF_T
356-
#define CINIT(name,type,number) CURLMOPT_/**/name = type + number
357-
#endif
358-
359347
typedef enum {
360348
/* This is the socket callback function pointer */
361-
CINIT(SOCKETFUNCTION, FUNCTIONPOINT, 1),
349+
CURLOPT(CURLMOPT_SOCKETFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 1),
362350

363351
/* This is the argument passed to the socket callback */
364-
CINIT(SOCKETDATA, OBJECTPOINT, 2),
352+
CURLOPT(CURLMOPT_SOCKETDATA, CURLOPTTYPE_OBJECTPOINT, 2),
365353

366354
/* set to 1 to enable pipelining for this multi handle */
367-
CINIT(PIPELINING, LONG, 3),
355+
CURLOPT(CURLMOPT_PIPELINING, CURLOPTTYPE_LONG, 3),
368356

369357
/* This is the timer callback function pointer */
370-
CINIT(TIMERFUNCTION, FUNCTIONPOINT, 4),
358+
CURLOPT(CURLMOPT_TIMERFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 4),
371359

372360
/* This is the argument passed to the timer callback */
373-
CINIT(TIMERDATA, OBJECTPOINT, 5),
361+
CURLOPT(CURLMOPT_TIMERDATA, CURLOPTTYPE_OBJECTPOINT, 5),
374362

375363
/* maximum number of entries in the connection cache */
376-
CINIT(MAXCONNECTS, LONG, 6),
364+
CURLOPT(CURLMOPT_MAXCONNECTS, CURLOPTTYPE_LONG, 6),
377365

378366
/* maximum number of (pipelining) connections to one host */
379-
CINIT(MAX_HOST_CONNECTIONS, LONG, 7),
367+
CURLOPT(CURLMOPT_MAX_HOST_CONNECTIONS, CURLOPTTYPE_LONG, 7),
380368

381369
/* maximum number of requests in a pipeline */
382-
CINIT(MAX_PIPELINE_LENGTH, LONG, 8),
370+
CURLOPT(CURLMOPT_MAX_PIPELINE_LENGTH, CURLOPTTYPE_LONG, 8),
383371

384372
/* a connection with a content-length longer than this
385373
will not be considered for pipelining */
386-
CINIT(CONTENT_LENGTH_PENALTY_SIZE, OFF_T, 9),
374+
CURLOPT(CURLMOPT_CONTENT_LENGTH_PENALTY_SIZE, CURLOPTTYPE_OFF_T, 9),
387375

388376
/* a connection with a chunk length longer than this
389377
will not be considered for pipelining */
390-
CINIT(CHUNK_LENGTH_PENALTY_SIZE, OFF_T, 10),
378+
CURLOPT(CURLMOPT_CHUNK_LENGTH_PENALTY_SIZE, CURLOPTTYPE_OFF_T, 10),
391379

392380
/* a list of site names(+port) that are blacklisted from
393381
pipelining */
394-
CINIT(PIPELINING_SITE_BL, OBJECTPOINT, 11),
382+
CURLOPT(CURLMOPT_PIPELINING_SITE_BL, CURLOPTTYPE_OBJECTPOINT, 11),
395383

396384
/* a list of server types that are blacklisted from
397385
pipelining */
398-
CINIT(PIPELINING_SERVER_BL, OBJECTPOINT, 12),
386+
CURLOPT(CURLMOPT_PIPELINING_SERVER_BL, CURLOPTTYPE_OBJECTPOINT, 12),
399387

400388
/* maximum number of open connections in total */
401-
CINIT(MAX_TOTAL_CONNECTIONS, LONG, 13),
389+
CURLOPT(CURLMOPT_MAX_TOTAL_CONNECTIONS, CURLOPTTYPE_LONG, 13),
402390

403391
/* This is the server push callback function pointer */
404-
CINIT(PUSHFUNCTION, FUNCTIONPOINT, 14),
392+
CURLOPT(CURLMOPT_PUSHFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 14),
405393

406394
/* This is the argument passed to the server push callback */
407-
CINIT(PUSHDATA, OBJECTPOINT, 15),
395+
CURLOPT(CURLMOPT_PUSHDATA, CURLOPTTYPE_OBJECTPOINT, 15),
408396

409397
/* maximum number of concurrent streams to support on a connection */
410-
CINIT(MAX_CONCURRENT_STREAMS, LONG, 16),
398+
CURLOPT(CURLMOPT_MAX_CONCURRENT_STREAMS, CURLOPTTYPE_LONG, 16),
411399

412400
CURLMOPT_LASTENTRY /* the last unused */
413401
} CURLMoption;

0 commit comments

Comments
 (0)