Skip to content

Commit

Permalink
Update libcurl to version 8.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed Oct 31, 2024
1 parent 723c5c8 commit af693da
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 16 deletions.
24 changes: 13 additions & 11 deletions Windows/curl/include/curl/curl.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
#if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__CYGWIN__)
#if !(defined(_WINSOCKAPI_) || defined(_WINSOCK_H) || \
defined(__LWIP_OPT_H__) || defined(LWIP_HDR_OPT_H))
/* The check above prevents the winsock2 inclusion if winsock.h already was
/* The check above prevents the winsock2.h inclusion if winsock.h already was
included, since they cannot co-exist without problems */
#include <winsock2.h>
#include <ws2tcpip.h>
Expand Down Expand Up @@ -721,6 +721,8 @@ typedef enum {
with them. */
#define CURLOPT_WRITEINFO CURLOPT_OBSOLETE40
#define CURLOPT_CLOSEPOLICY CURLOPT_OBSOLETE72
#define CURLOPT_OBSOLETE72 9999
#define CURLOPT_OBSOLETE40 9999

#endif /* !CURL_NO_OLDIES */

Expand Down Expand Up @@ -1250,8 +1252,7 @@ typedef enum {
/* send linked-list of post-transfer QUOTE commands */
CURLOPT(CURLOPT_POSTQUOTE, CURLOPTTYPE_SLISTPOINT, 39),

/* OBSOLETE, do not use! */
CURLOPT(CURLOPT_OBSOLETE40, CURLOPTTYPE_OBJECTPOINT, 40),
/* 40 is not used */

/* talk a lot */
CURLOPT(CURLOPT_VERBOSE, CURLOPTTYPE_LONG, 41),
Expand Down Expand Up @@ -1352,9 +1353,7 @@ typedef enum {
/* Max amount of cached alive connections */
CURLOPT(CURLOPT_MAXCONNECTS, CURLOPTTYPE_LONG, 71),

/* OBSOLETE, do not use! */
CURLOPT(CURLOPT_OBSOLETE72, CURLOPTTYPE_LONG, 72),

/* 72 = OBSOLETE */
/* 73 = OBSOLETE */

/* Set to explicitly use a new connection for the upcoming transfer.
Expand Down Expand Up @@ -1398,7 +1397,7 @@ typedef enum {
operation. Set filename to "-" (dash) to make it go to stdout. */
CURLOPT(CURLOPT_COOKIEJAR, CURLOPTTYPE_STRINGPOINT, 82),

/* Specify which SSL ciphers to use */
/* Specify which TLS 1.2 (1.1, 1.0) ciphers to use */
CURLOPT(CURLOPT_SSL_CIPHER_LIST, CURLOPTTYPE_STRINGPOINT, 83),

/* Specify which HTTP version to use! This must be set to one of the
Expand Down Expand Up @@ -2022,7 +2021,7 @@ typedef enum {
/* password for the SSL private key for proxy */
CURLOPT(CURLOPT_PROXY_KEYPASSWD, CURLOPTTYPE_STRINGPOINT, 258),

/* Specify which SSL ciphers to use for proxy */
/* Specify which TLS 1.2 (1.1, 1.0) ciphers to use for proxy */
CURLOPT(CURLOPT_PROXY_SSL_CIPHER_LIST, CURLOPTTYPE_STRINGPOINT, 259),

/* CRL file for proxy */
Expand Down Expand Up @@ -2203,7 +2202,7 @@ typedef enum {
/* specify which protocols that libcurl is allowed to follow directs to */
CURLOPT(CURLOPT_REDIR_PROTOCOLS_STR, CURLOPTTYPE_STRINGPOINT, 319),

/* websockets options */
/* WebSockets options */
CURLOPT(CURLOPT_WS_OPTIONS, CURLOPTTYPE_LONG, 320),

/* CA cache timeout */
Expand Down Expand Up @@ -2645,7 +2644,7 @@ CURL_EXTERN char *curl_getenv(const char *variable);
*
* DESCRIPTION
*
* Returns a static ascii string of the libcurl version.
* Returns a static ASCII string of the libcurl version.
*/
CURL_EXTERN char *curl_version(void);

Expand Down Expand Up @@ -2953,7 +2952,8 @@ typedef enum {
CURLINFO_CONN_ID = CURLINFO_OFF_T + 64,
CURLINFO_QUEUE_TIME_T = CURLINFO_OFF_T + 65,
CURLINFO_USED_PROXY = CURLINFO_LONG + 66,
CURLINFO_LASTONE = 66
CURLINFO_POSTTRANSFER_TIME_T = CURLINFO_OFF_T + 67,
CURLINFO_LASTONE = 67
} CURLINFO;

/* CURLINFO_RESPONSE_CODE is the new name for the option previously known as
Expand Down Expand Up @@ -3236,7 +3236,9 @@ CURL_EXTERN CURLcode curl_easy_pause(CURL *handle, int bitmask);
#include "options.h"
#include "header.h"
#include "websockets.h"
#ifndef CURL_SKIP_INCLUDE_MPRINTF
#include "mprintf.h"
#endif

/* the typechecker does not work in C++ (yet) */
#if defined(__GNUC__) && defined(__GNUC_MINOR__) && \
Expand Down
6 changes: 3 additions & 3 deletions Windows/curl/include/curl/curlver.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@

/* This is the version number of the libcurl package from which this header
file origins: */
#define LIBCURL_VERSION "8.9.1-DEV"
#define LIBCURL_VERSION "8.10.1-DEV"

/* The numeric version number is also available "in parts" by using these
defines: */
#define LIBCURL_VERSION_MAJOR 8
#define LIBCURL_VERSION_MINOR 9
#define LIBCURL_VERSION_MINOR 10
#define LIBCURL_VERSION_PATCH 1

/* This is the numeric version of the libcurl version number, meant for easier
Expand All @@ -59,7 +59,7 @@
CURL_VERSION_BITS() macro since curl's own configure script greps for it
and needs it to contain the full number.
*/
#define LIBCURL_VERSION_NUM 0x080901
#define LIBCURL_VERSION_NUM 0x080a01

/*
* This is the date and time when the full source package was created. The
Expand Down
8 changes: 7 additions & 1 deletion Windows/curl/include/curl/mprintf.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,26 @@
extern "C" {
#endif

#ifndef CURL_TEMP_PRINTF
#if (defined(__GNUC__) || defined(__clang__) || \
defined(__IAR_SYSTEMS_ICC__)) && \
defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && \
!defined(CURL_NO_FMT_CHECKS)
#if defined(__MINGW32__) && !defined(__clang__)
#if defined(__MINGW_PRINTF_FORMAT) /* mingw-w64 3.0.0+. Needs stdio.h. */
#define CURL_TEMP_PRINTF(fmt, arg) \
__attribute__((format(gnu_printf, fmt, arg)))
__attribute__((format(__MINGW_PRINTF_FORMAT, fmt, arg)))
#else
#define CURL_TEMP_PRINTF(fmt, arg)
#endif
#else
#define CURL_TEMP_PRINTF(fmt, arg) \
__attribute__((format(printf, fmt, arg)))
#endif
#else
#define CURL_TEMP_PRINTF(fmt, arg)
#endif
#endif

CURL_EXTERN int curl_mprintf(const char *format, ...)
CURL_TEMP_PRINTF(1, 2);
Expand Down
2 changes: 1 addition & 1 deletion Windows/curl/include/curl/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* changed.
*
* In order to differentiate between platforms/compilers/architectures use
* only compiler built in predefined preprocessor symbols.
* only compiler built-in predefined preprocessor symbols.
*
* curl_off_t
* ----------
Expand Down
Binary file modified Windows/curl/lib/x64/libcurl.dll
Binary file not shown.
Binary file modified Windows/curl/lib/x64/libcurl.pdb
Binary file not shown.
Binary file modified Windows/curl/lib/x86/libcurl.dll
Binary file not shown.
Binary file modified Windows/curl/lib/x86/libcurl.pdb
Binary file not shown.

0 comments on commit af693da

Please sign in to comment.