Skip to content

Commit df5ce06

Browse files
committed
Update cURL from 8.4.0 to 8.5.0
1 parent edca110 commit df5ce06

File tree

149 files changed

+12060
-10357
lines changed

Some content is hidden

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

149 files changed

+12060
-10357
lines changed

vendor/curl/CHANGES

Lines changed: 6760 additions & 5931 deletions
Large diffs are not rendered by default.

vendor/curl/RELEASE-NOTES

Lines changed: 393 additions & 376 deletions
Large diffs are not rendered by default.

vendor/curl/include/curl/curl.h

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,28 +53,19 @@
5353
#include "curlver.h" /* libcurl version defines */
5454
#include "system.h" /* determine things run-time */
5555

56-
/*
57-
* Define CURL_WIN32 when build target is Win32 API
58-
*/
59-
60-
#if (defined(_WIN32) || defined(__WIN32__) || defined(WIN32)) && \
61-
!defined(__SYMBIAN32__)
62-
#define CURL_WIN32
63-
#endif
64-
6556
#include <stdio.h>
6657
#include <limits.h>
6758

68-
#if (defined(__FreeBSD__) && (__FreeBSD__ >= 2)) || defined(__MidnightBSD__)
59+
#if defined(__FreeBSD__) || defined(__MidnightBSD__)
6960
/* Needed for __FreeBSD_version or __MidnightBSD_version symbol definition */
70-
#include <osreldate.h>
61+
#include <sys/param.h>
7162
#endif
7263

7364
/* The include stuff here below is mainly for time_t! */
7465
#include <sys/types.h>
7566
#include <time.h>
7667

77-
#if defined(CURL_WIN32) && !defined(_WIN32_WCE) && !defined(__CYGWIN__)
68+
#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__CYGWIN__)
7869
#if !(defined(_WINSOCKAPI_) || defined(_WINSOCK_H) || \
7970
defined(__LWIP_OPT_H__) || defined(LWIP_HDR_OPT_H))
8071
/* The check above prevents the winsock2 inclusion if winsock.h already was
@@ -88,7 +79,7 @@
8879
libc5-based Linux systems. Only include it on systems that are known to
8980
require it! */
9081
#if defined(_AIX) || defined(__NOVELL_LIBC__) || defined(__NetBSD__) || \
91-
defined(__minix) || defined(__SYMBIAN32__) || defined(__INTEGRITY) || \
82+
defined(__minix) || defined(__INTEGRITY) || \
9283
defined(ANDROID) || defined(__ANDROID__) || defined(__OpenBSD__) || \
9384
defined(__CYGWIN__) || defined(AMIGA) || defined(__NuttX__) || \
9485
(defined(__FreeBSD_version) && (__FreeBSD_version < 800000)) || \
@@ -97,11 +88,11 @@
9788
#include <sys/select.h>
9889
#endif
9990

100-
#if !defined(CURL_WIN32) && !defined(_WIN32_WCE)
91+
#if !defined(_WIN32) && !defined(_WIN32_WCE)
10192
#include <sys/socket.h>
10293
#endif
10394

104-
#if !defined(CURL_WIN32)
95+
#if !defined(_WIN32)
10596
#include <sys/time.h>
10697
#endif
10798

@@ -128,7 +119,7 @@ typedef void CURLSH;
128119

129120
#ifdef CURL_STATICLIB
130121
# define CURL_EXTERN
131-
#elif defined(CURL_WIN32) || defined(__SYMBIAN32__) || \
122+
#elif defined(_WIN32) || \
132123
(__has_declspec_attribute(dllexport) && \
133124
__has_declspec_attribute(dllimport))
134125
# if defined(BUILDING_LIBCURL)
@@ -144,7 +135,7 @@ typedef void CURLSH;
144135

145136
#ifndef curl_socket_typedef
146137
/* socket typedef */
147-
#if defined(CURL_WIN32) && !defined(__LWIP_OPT_H__) && !defined(LWIP_HDR_OPT_H)
138+
#if defined(_WIN32) && !defined(__LWIP_OPT_H__) && !defined(LWIP_HDR_OPT_H)
148139
typedef SOCKET curl_socket_t;
149140
#define CURL_SOCKET_BAD INVALID_SOCKET
150141
#else
@@ -3220,6 +3211,7 @@ CURL_EXTERN CURLcode curl_easy_pause(CURL *handle, int bitmask);
32203211
#include "options.h"
32213212
#include "header.h"
32223213
#include "websockets.h"
3214+
#include "mprintf.h"
32233215

32243216
/* the typechecker doesn't work in C++ (yet) */
32253217
#if defined(__GNUC__) && defined(__GNUC_MINOR__) && \

vendor/curl/include/curl/curlver.h

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

3333
/* This is the version number of the libcurl package from which this header
3434
file origins: */
35-
#define LIBCURL_VERSION "8.4.0"
35+
#define LIBCURL_VERSION "8.5.0"
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 4
40+
#define LIBCURL_VERSION_MINOR 5
4141
#define LIBCURL_VERSION_PATCH 0
4242

4343
/* This is the numeric version of the libcurl version number, meant for easier
@@ -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 0x080400
62+
#define LIBCURL_VERSION_NUM 0x080500
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 "2023-10-11"
73+
#define LIBCURL_TIMESTAMP "2023-12-06"
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/system.h

Lines changed: 11 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -141,29 +141,6 @@
141141
# define CURL_TYPEOF_CURL_SOCKLEN_T int
142142
# endif
143143

144-
#elif defined(__SYMBIAN32__)
145-
# if defined(__EABI__) /* Treat all ARM compilers equally */
146-
# define CURL_TYPEOF_CURL_OFF_T long long
147-
# define CURL_FORMAT_CURL_OFF_T "lld"
148-
# define CURL_FORMAT_CURL_OFF_TU "llu"
149-
# define CURL_SUFFIX_CURL_OFF_T LL
150-
# define CURL_SUFFIX_CURL_OFF_TU ULL
151-
# elif defined(__CW32__)
152-
# pragma longlong on
153-
# define CURL_TYPEOF_CURL_OFF_T long long
154-
# define CURL_FORMAT_CURL_OFF_T "lld"
155-
# define CURL_FORMAT_CURL_OFF_TU "llu"
156-
# define CURL_SUFFIX_CURL_OFF_T LL
157-
# define CURL_SUFFIX_CURL_OFF_TU ULL
158-
# elif defined(__VC32__)
159-
# define CURL_TYPEOF_CURL_OFF_T __int64
160-
# define CURL_FORMAT_CURL_OFF_T "lld"
161-
# define CURL_FORMAT_CURL_OFF_TU "llu"
162-
# define CURL_SUFFIX_CURL_OFF_T LL
163-
# define CURL_SUFFIX_CURL_OFF_TU ULL
164-
# endif
165-
# define CURL_TYPEOF_CURL_SOCKLEN_T unsigned int
166-
167144
#elif defined(macintosh)
168145
# include <ConditionalMacros.h>
169146
# if TYPE_LONGLONG
@@ -201,9 +178,10 @@
201178
# define CURL_TYPEOF_CURL_SOCKLEN_T int
202179

203180
#elif defined(__MINGW32__)
181+
# include <inttypes.h>
204182
# define CURL_TYPEOF_CURL_OFF_T long long
205-
# define CURL_FORMAT_CURL_OFF_T "I64d"
206-
# define CURL_FORMAT_CURL_OFF_TU "I64u"
183+
# define CURL_FORMAT_CURL_OFF_T PRId64
184+
# define CURL_FORMAT_CURL_OFF_TU PRIu64
207185
# define CURL_SUFFIX_CURL_OFF_T LL
208186
# define CURL_SUFFIX_CURL_OFF_TU ULL
209187
# define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
@@ -370,7 +348,14 @@
370348
/* ===================================== */
371349

372350
#elif defined(_MSC_VER)
373-
# if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
351+
# if (_MSC_VER >= 1800)
352+
# include <inttypes.h>
353+
# define CURL_TYPEOF_CURL_OFF_T __int64
354+
# define CURL_FORMAT_CURL_OFF_T PRId64
355+
# define CURL_FORMAT_CURL_OFF_TU PRIu64
356+
# define CURL_SUFFIX_CURL_OFF_T i64
357+
# define CURL_SUFFIX_CURL_OFF_TU ui64
358+
# elif (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
374359
# define CURL_TYPEOF_CURL_OFF_T __int64
375360
# define CURL_FORMAT_CURL_OFF_T "I64d"
376361
# define CURL_FORMAT_CURL_OFF_TU "I64u"

vendor/curl/lib/altsvc.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static struct altsvc *altsvc_createid(const char *srchost,
9797
unsigned int srcport,
9898
unsigned int dstport)
9999
{
100-
struct altsvc *as = calloc(sizeof(struct altsvc), 1);
100+
struct altsvc *as = calloc(1, sizeof(struct altsvc));
101101
size_t hlen;
102102
size_t dlen;
103103
if(!as)
@@ -123,15 +123,13 @@ static struct altsvc *altsvc_createid(const char *srchost,
123123
dlen -= 2;
124124
}
125125

126-
as->src.host = Curl_memdup(srchost, hlen + 1);
126+
as->src.host = Curl_strndup(srchost, hlen);
127127
if(!as->src.host)
128128
goto error;
129-
as->src.host[hlen] = 0;
130129

131-
as->dst.host = Curl_memdup(dsthost, dlen + 1);
130+
as->dst.host = Curl_strndup(dsthost, dlen);
132131
if(!as->dst.host)
133132
goto error;
134-
as->dst.host[dlen] = 0;
135133

136134
as->src.alpnid = srcalpnid;
137135
as->dst.alpnid = dstalpnid;
@@ -301,7 +299,7 @@ static CURLcode altsvc_out(struct altsvc *as, FILE *fp)
301299
*/
302300
struct altsvcinfo *Curl_altsvc_init(void)
303301
{
304-
struct altsvcinfo *asi = calloc(sizeof(struct altsvcinfo), 1);
302+
struct altsvcinfo *asi = calloc(1, sizeof(struct altsvcinfo));
305303
if(!asi)
306304
return NULL;
307305
Curl_llist_init(&asi->list, NULL);

vendor/curl/lib/arpa_telnet.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,14 @@ static const char * const telnetoptions[]=
5656
"TERM SPEED", "LFLOW", "LINEMODE", "XDISPLOC",
5757
"OLD-ENVIRON", "AUTHENTICATION", "ENCRYPT", "NEW-ENVIRON"
5858
};
59+
#define CURL_TELOPT(x) telnetoptions[x]
60+
#else
61+
#define CURL_TELOPT(x) ""
5962
#endif
6063

6164
#define CURL_TELOPT_MAXIMUM CURL_TELOPT_NEW_ENVIRON
6265

6366
#define CURL_TELOPT_OK(x) ((x) <= CURL_TELOPT_MAXIMUM)
64-
#define CURL_TELOPT(x) telnetoptions[x]
6567

6668
#define CURL_NTELOPTS 40
6769

@@ -103,7 +105,12 @@ static const char * const telnetcmds[]=
103105

104106
#define CURL_TELCMD_OK(x) ( ((unsigned int)(x) >= CURL_TELCMD_MINIMUM) && \
105107
((unsigned int)(x) <= CURL_TELCMD_MAXIMUM) )
108+
109+
#ifndef CURL_DISABLE_VERBOSE_STRINGS
106110
#define CURL_TELCMD(x) telnetcmds[(x)-CURL_TELCMD_MINIMUM]
111+
#else
112+
#define CURL_TELCMD(x) ""
113+
#endif
107114

108115
#endif /* CURL_DISABLE_TELNET */
109116

0 commit comments

Comments
 (0)