Skip to content

Commit cdde4db

Browse files
Synchronize changes from 1.6 master branch [ci skip]
3effd53 Update curl to version 8.11.1
2 parents 1bb161b + 3effd53 commit cdde4db

File tree

267 files changed

+23370
-29758
lines changed

Some content is hidden

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

267 files changed

+23370
-29758
lines changed

vendor/curl/CHANGES

Lines changed: 0 additions & 10709 deletions
This file was deleted.

vendor/curl/RELEASE-NOTES

Lines changed: 178 additions & 482 deletions
Large diffs are not rendered by default.

vendor/curl/include/curl/curl.h

Lines changed: 103 additions & 84 deletions
Large diffs are not rendered by default.

vendor/curl/include/curl/curlver.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232

3333
/* This is the version number of the libcurl package from which this header
3434
file origins: */
35-
#define LIBCURL_VERSION "8.8.0"
35+
#define LIBCURL_VERSION "8.11.1"
3636

3737
/* The numeric version number is also available "in parts" by using these
3838
defines: */
3939
#define LIBCURL_VERSION_MAJOR 8
40-
#define LIBCURL_VERSION_MINOR 8
41-
#define LIBCURL_VERSION_PATCH 0
40+
#define LIBCURL_VERSION_MINOR 11
41+
#define LIBCURL_VERSION_PATCH 1
4242

4343
/* This is the numeric version of the libcurl version number, meant for easier
4444
parsing and comparisons by programs. The LIBCURL_VERSION_NUM define will
@@ -48,7 +48,7 @@
4848
4949
Where XX, YY and ZZ are the main version, release and patch numbers in
5050
hexadecimal (using 8 bits each). All three numbers are always represented
51-
using two digits. 1.2 would appear as "0x010200" while version 9.11.7
51+
using two digits. 1.2 would appear as "0x010200" while version 9.11.7
5252
appears as "0x090b07".
5353
5454
This 6-digit (24 bits) hexadecimal number does not show pre-release number,
@@ -59,7 +59,7 @@
5959
CURL_VERSION_BITS() macro since curl's own configure script greps for it
6060
and needs it to contain the full number.
6161
*/
62-
#define LIBCURL_VERSION_NUM 0x080800
62+
#define LIBCURL_VERSION_NUM 0x080b01
6363

6464
/*
6565
* This is the date and time when the full source package was created. The
@@ -70,7 +70,7 @@
7070
*
7171
* "2007-11-23"
7272
*/
73-
#define LIBCURL_TIMESTAMP "2024-05-22"
73+
#define LIBCURL_TIMESTAMP "2024-12-11"
7474

7575
#define CURL_VERSION_BITS(x,y,z) ((x)<<16|(y)<<8|(z))
7676
#define CURL_AT_LEAST_VERSION(x,y,z) \

vendor/curl/include/curl/easy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ CURL_EXTERN void curl_easy_cleanup(CURL *curl);
5050
*
5151
* Request internal information from the curl session with this function.
5252
* The third argument MUST be pointing to the specific type of the used option
53-
* which is documented in each man page of the option. The data pointed to
53+
* which is documented in each manpage of the option. The data pointed to
5454
* will be filled in accordingly and can be relied upon only if the function
5555
* returns CURLE_OK. This function is intended to get used *AFTER* a performed
5656
* transfer, all results from this function are undefined until the transfer

vendor/curl/include/curl/mprintf.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,26 @@
3232
extern "C" {
3333
#endif
3434

35-
#if (defined(__GNUC__) || defined(__clang__)) && \
35+
#ifndef CURL_TEMP_PRINTF
36+
#if (defined(__GNUC__) || defined(__clang__) || \
37+
defined(__IAR_SYSTEMS_ICC__)) && \
3638
defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && \
3739
!defined(CURL_NO_FMT_CHECKS)
3840
#if defined(__MINGW32__) && !defined(__clang__)
41+
#if defined(__MINGW_PRINTF_FORMAT) /* mingw-w64 3.0.0+. Needs stdio.h. */
3942
#define CURL_TEMP_PRINTF(fmt, arg) \
40-
__attribute__((format(gnu_printf, fmt, arg)))
43+
__attribute__((format(__MINGW_PRINTF_FORMAT, fmt, arg)))
44+
#else
45+
#define CURL_TEMP_PRINTF(fmt, arg)
46+
#endif
4147
#else
4248
#define CURL_TEMP_PRINTF(fmt, arg) \
4349
__attribute__((format(printf, fmt, arg)))
4450
#endif
4551
#else
4652
#define CURL_TEMP_PRINTF(fmt, arg)
4753
#endif
54+
#endif
4855

4956
CURL_EXTERN int curl_mprintf(const char *format, ...)
5057
CURL_TEMP_PRINTF(1, 2);

vendor/curl/include/curl/multi.h

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*
2525
***************************************************************************/
2626
/*
27-
This is an "external" header file. Don't give away any internals here!
27+
This is an "external" header file. Do not give away any internals here!
2828
2929
GOALS
3030
@@ -54,19 +54,15 @@
5454
extern "C" {
5555
#endif
5656

57-
#if defined(BUILDING_LIBCURL) || defined(CURL_STRICTER)
58-
typedef struct Curl_multi CURLM;
59-
#else
6057
typedef void CURLM;
61-
#endif
6258

6359
typedef enum {
6460
CURLM_CALL_MULTI_PERFORM = -1, /* please call curl_multi_perform() or
6561
curl_multi_socket*() soon */
6662
CURLM_OK,
6763
CURLM_BAD_HANDLE, /* the passed-in handle is not a valid CURLM handle */
6864
CURLM_BAD_EASY_HANDLE, /* an easy handle was not good/valid */
69-
CURLM_OUT_OF_MEMORY, /* if you ever get this, you're in deep sh*t */
65+
CURLM_OUT_OF_MEMORY, /* if you ever get this, you are in deep sh*t */
7066
CURLM_INTERNAL_ERROR, /* this is a libcurl bug */
7167
CURLM_BAD_SOCKET, /* the passed in socket argument did not match */
7268
CURLM_UNKNOWN_OPTION, /* curl_multi_setopt() with unsupported option */
@@ -109,7 +105,7 @@ struct CURLMsg {
109105
typedef struct CURLMsg CURLMsg;
110106

111107
/* Based on poll(2) structure and values.
112-
* We don't use pollfd and POLL* constants explicitly
108+
* We do not use pollfd and POLL* constants explicitly
113109
* to cover platforms without poll(). */
114110
#define CURL_WAIT_POLLIN 0x0001
115111
#define CURL_WAIT_POLLPRI 0x0002
@@ -205,7 +201,7 @@ CURL_EXTERN CURLMcode curl_multi_wakeup(CURLM *multi_handle);
205201
/*
206202
* Name: curl_multi_perform()
207203
*
208-
* Desc: When the app thinks there's data available for curl it calls this
204+
* Desc: When the app thinks there is data available for curl it calls this
209205
* function to read/write whatever there is right now. This returns
210206
* as soon as the reads and writes are done. This function does not
211207
* require that there actually is data available for reading or that
@@ -236,7 +232,7 @@ CURL_EXTERN CURLMcode curl_multi_cleanup(CURLM *multi_handle);
236232
/*
237233
* Name: curl_multi_info_read()
238234
*
239-
* Desc: Ask the multi handle if there's any messages/informationals from
235+
* Desc: Ask the multi handle if there is any messages/informationals from
240236
* the individual transfers. Messages include informationals such as
241237
* error code from the transfer or just the fact that a transfer is
242238
* completed. More details on these should be written down as well.
@@ -248,13 +244,13 @@ CURL_EXTERN CURLMcode curl_multi_cleanup(CURLM *multi_handle);
248244
* The data the returned pointer points to will not survive calling
249245
* curl_multi_cleanup().
250246
*
251-
* The 'CURLMsg' struct is meant to be very simple and only contain
252-
* very basic information. If more involved information is wanted,
253-
* we will provide the particular "transfer handle" in that struct
254-
* and that should/could/would be used in subsequent
255-
* curl_easy_getinfo() calls (or similar). The point being that we
256-
* must never expose complex structs to applications, as then we'll
257-
* undoubtably get backwards compatibility problems in the future.
247+
* The 'CURLMsg' struct is meant to be simple and only contain basic
248+
* information. If more involved information is wanted, we will
249+
* provide the particular "transfer handle" in that struct and that
250+
* should/could/would be used in subsequent curl_easy_getinfo() calls
251+
* (or similar). The point being that we must never expose complex
252+
* structs to applications, as then we will undoubtably get backwards
253+
* compatibility problems in the future.
258254
*
259255
* Returns: A pointer to a filled-in struct, or NULL if it failed or ran out
260256
* of structs. It also writes the number of messages left in the
@@ -268,7 +264,7 @@ CURL_EXTERN CURLMsg *curl_multi_info_read(CURLM *multi_handle,
268264
* Name: curl_multi_strerror()
269265
*
270266
* Desc: The curl_multi_strerror function may be used to turn a CURLMcode
271-
* value into the equivalent human readable error string. This is
267+
* value into the equivalent human readable error string. This is
272268
* useful for printing meaningful error messages.
273269
*
274270
* Returns: A pointer to a null-terminated error message.
@@ -282,7 +278,7 @@ CURL_EXTERN const char *curl_multi_strerror(CURLMcode);
282278
* Desc: An alternative version of curl_multi_perform() that allows the
283279
* application to pass in one of the file descriptors that have been
284280
* detected to have "action" on them and let libcurl perform.
285-
* See man page for details.
281+
* See manpage for details.
286282
*/
287283
#define CURL_POLL_NONE 0
288284
#define CURL_POLL_IN 1

vendor/curl/include/curl/system.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* changed.
3232
*
3333
* In order to differentiate between platforms/compilers/architectures use
34-
* only compiler built in predefined preprocessor symbols.
34+
* only compiler built-in predefined preprocessor symbols.
3535
*
3636
* curl_off_t
3737
* ----------
@@ -46,7 +46,7 @@
4646
* As a general rule, curl_off_t shall not be mapped to off_t. This rule shall
4747
* only be violated if off_t is the only 64-bit data type available and the
4848
* size of off_t is independent of large file support settings. Keep your
49-
* build on the safe side avoiding an off_t gating. If you have a 64-bit
49+
* build on the safe side avoiding an off_t gating. If you have a 64-bit
5050
* off_t then take for sure that another 64-bit data type exists, dig deeper
5151
* and you will find it.
5252
*
@@ -402,7 +402,7 @@
402402
# define CURL_PULL_SYS_SOCKET_H 1
403403

404404
#else
405-
/* generic "safe guess" on old 32 bit style */
405+
/* generic "safe guess" on old 32-bit style */
406406
# define CURL_TYPEOF_CURL_OFF_T long
407407
# define CURL_FORMAT_CURL_OFF_T "ld"
408408
# define CURL_FORMAT_CURL_OFF_TU "lu"

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
* _curl_easy_setopt_err_sometype below
3535
*
3636
* NOTE: We use two nested 'if' statements here instead of the && operator, in
37-
* order to work around gcc bug #32061. It affects only gcc 4.3.x/4.4.x
37+
* order to work around gcc bug #32061. It affects only gcc 4.3.x/4.4.x
3838
* when compiling with -Wlogical-op.
3939
*
40-
* To add an option that uses the same type as an existing option, you'll just
41-
* need to extend the appropriate _curl_*_option macro
40+
* To add an option that uses the same type as an existing option, you will
41+
* just need to extend the appropriate _curl_*_option macro
4242
*/
4343
#define curl_easy_setopt(handle, option, value) \
4444
__extension__({ \
@@ -245,7 +245,7 @@ CURLWARNING(_curl_easy_getinfo_err_curl_off_t,
245245

246246
/* To add a new option to one of the groups, just add
247247
* (option) == CURLOPT_SOMETHING
248-
* to the or-expression. If the option takes a long or curl_off_t, you don't
248+
* to the or-expression. If the option takes a long or curl_off_t, you do not
249249
* have to do anything
250250
*/
251251

@@ -678,7 +678,7 @@ typedef CURLcode (*_curl_ssl_ctx_callback4)(CURL *, const void *,
678678
const void *);
679679
#ifdef HEADER_SSL_H
680680
/* hack: if we included OpenSSL's ssl.h, we know about SSL_CTX
681-
* this will of course break if we're included before OpenSSL headers...
681+
* this will of course break if we are included before OpenSSL headers...
682682
*/
683683
typedef CURLcode (*_curl_ssl_ctx_callback5)(CURL *, SSL_CTX *, void *);
684684
typedef CURLcode (*_curl_ssl_ctx_callback6)(CURL *, SSL_CTX *, const void *);

vendor/curl/include/curl/urlapi.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,12 @@ typedef enum {
9797
#define CURLU_NO_AUTHORITY (1<<10) /* Allow empty authority when the
9898
scheme is unknown. */
9999
#define CURLU_ALLOW_SPACE (1<<11) /* Allow spaces in the URL */
100-
#define CURLU_PUNYCODE (1<<12) /* get the host name in punycode */
100+
#define CURLU_PUNYCODE (1<<12) /* get the hostname in punycode */
101101
#define CURLU_PUNY2IDN (1<<13) /* punycode => IDN conversion */
102102
#define CURLU_GET_EMPTY (1<<14) /* allow empty queries and fragments
103103
when extracting the URL or the
104104
components */
105+
#define CURLU_NO_GUESS_SCHEME (1<<15) /* for get, do not accept a guess */
105106

106107
typedef struct Curl_URL CURLU;
107108

@@ -142,7 +143,7 @@ CURL_EXTERN CURLUcode curl_url_set(CURLU *handle, CURLUPart what,
142143

143144
/*
144145
* curl_url_strerror() turns a CURLUcode value into the equivalent human
145-
* readable error string. This is useful for printing meaningful error
146+
* readable error string. This is useful for printing meaningful error
146147
* messages.
147148
*/
148149
CURL_EXTERN const char *curl_url_strerror(CURLUcode);

0 commit comments

Comments
 (0)