Skip to content
This repository was archived by the owner on Jan 16, 2024. It is now read-only.

Commit a66c4d9

Browse files
committed
rebuild for 7.53.1
1 parent 093a3c5 commit a66c4d9

File tree

17 files changed

+131
-47
lines changed

17 files changed

+131
-47
lines changed

include/curl/curl.h

Lines changed: 89 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* | (__| |_| | _ <| |___
88
* \___|\___/|_| \_\_____|
99
*
10-
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
10+
* Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, 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
@@ -143,7 +143,7 @@ struct curl_httppost {
143143
char *buffer; /* pointer to allocated buffer contents */
144144
long bufferlength; /* length of buffer field */
145145
char *contenttype; /* Content-Type */
146-
struct curl_slist* contentheader; /* list of extra headers for this form */
146+
struct curl_slist *contentheader; /* list of extra headers for this form */
147147
struct curl_httppost *more; /* if one field name has more than one
148148
file, this link should link to following
149149
files */
@@ -193,6 +193,11 @@ typedef int (*curl_xferinfo_callback)(void *clientp,
193193
curl_off_t ultotal,
194194
curl_off_t ulnow);
195195

196+
#ifndef CURL_MAX_READ_SIZE
197+
/* The maximum receive buffer size configurable via CURLOPT_BUFFERSIZE. */
198+
#define CURL_MAX_READ_SIZE 524288
199+
#endif
200+
196201
#ifndef CURL_MAX_WRITE_SIZE
197202
/* Tests have proven that 20K is a very bad buffer size for uploads on
198203
Windows, while 16K for some odd reason performed a lot better.
@@ -270,7 +275,7 @@ struct curl_fileinfo {
270275
unsigned int flags;
271276

272277
/* used internally */
273-
char * b_data;
278+
char *b_data;
274279
size_t b_size;
275280
size_t b_used;
276281
};
@@ -479,7 +484,7 @@ typedef enum {
479484
CURLE_LDAP_CANNOT_BIND, /* 38 */
480485
CURLE_LDAP_SEARCH_FAILED, /* 39 */
481486
CURLE_OBSOLETE40, /* 40 - NOT USED */
482-
CURLE_FUNCTION_NOT_FOUND, /* 41 */
487+
CURLE_FUNCTION_NOT_FOUND, /* 41 - NOT USED starting with 7.53.0 */
483488
CURLE_ABORTED_BY_CALLBACK, /* 42 */
484489
CURLE_BAD_FUNCTION_ARGUMENT, /* 43 */
485490
CURLE_OBSOLETE44, /* 44 - NOT USED */
@@ -640,6 +645,7 @@ typedef enum {
640645
CONNECT HTTP/1.1 */
641646
CURLPROXY_HTTP_1_0 = 1, /* added in 7.19.4, force to use CONNECT
642647
HTTP/1.0 */
648+
CURLPROXY_HTTPS = 2, /* added in 7.52.0 */
643649
CURLPROXY_SOCKS4 = 4, /* support added in 7.15.2, enum existed already
644650
in 7.10 */
645651
CURLPROXY_SOCKS5 = 5, /* added in 7.10 */
@@ -1206,7 +1212,8 @@ typedef enum {
12061212
CINIT(SHARE, OBJECTPOINT, 100),
12071213

12081214
/* indicates type of proxy. accepted values are CURLPROXY_HTTP (default),
1209-
CURLPROXY_SOCKS4, CURLPROXY_SOCKS4A and CURLPROXY_SOCKS5. */
1215+
CURLPROXY_HTTPS, CURLPROXY_SOCKS4, CURLPROXY_SOCKS4A and
1216+
CURLPROXY_SOCKS5. */
12101217
CINIT(PROXYTYPE, LONG, 101),
12111218

12121219
/* Set the Accept-Encoding string. Use this to tell a server you would like
@@ -1704,6 +1711,73 @@ typedef enum {
17041711
* HTTP status code >= 300 */
17051712
CINIT(KEEP_SENDING_ON_ERROR, LONG, 245),
17061713

1714+
/* The CApath or CAfile used to validate the proxy certificate
1715+
this option is used only if PROXY_SSL_VERIFYPEER is true */
1716+
CINIT(PROXY_CAINFO, STRINGPOINT, 246),
1717+
1718+
/* The CApath directory used to validate the proxy certificate
1719+
this option is used only if PROXY_SSL_VERIFYPEER is true */
1720+
CINIT(PROXY_CAPATH, STRINGPOINT, 247),
1721+
1722+
/* Set if we should verify the proxy in ssl handshake,
1723+
set 1 to verify. */
1724+
CINIT(PROXY_SSL_VERIFYPEER, LONG, 248),
1725+
1726+
/* Set if we should verify the Common name from the proxy certificate in ssl
1727+
* handshake, set 1 to check existence, 2 to ensure that it matches
1728+
* the provided hostname. */
1729+
CINIT(PROXY_SSL_VERIFYHOST, LONG, 249),
1730+
1731+
/* What version to specifically try to use for proxy.
1732+
See CURL_SSLVERSION defines below. */
1733+
CINIT(PROXY_SSLVERSION, LONG, 250),
1734+
1735+
/* Set a username for authenticated TLS for proxy */
1736+
CINIT(PROXY_TLSAUTH_USERNAME, STRINGPOINT, 251),
1737+
1738+
/* Set a password for authenticated TLS for proxy */
1739+
CINIT(PROXY_TLSAUTH_PASSWORD, STRINGPOINT, 252),
1740+
1741+
/* Set authentication type for authenticated TLS for proxy */
1742+
CINIT(PROXY_TLSAUTH_TYPE, STRINGPOINT, 253),
1743+
1744+
/* name of the file keeping your private SSL-certificate for proxy */
1745+
CINIT(PROXY_SSLCERT, STRINGPOINT, 254),
1746+
1747+
/* type of the file keeping your SSL-certificate ("DER", "PEM", "ENG") for
1748+
proxy */
1749+
CINIT(PROXY_SSLCERTTYPE, STRINGPOINT, 255),
1750+
1751+
/* name of the file keeping your private SSL-key for proxy */
1752+
CINIT(PROXY_SSLKEY, STRINGPOINT, 256),
1753+
1754+
/* type of the file keeping your private SSL-key ("DER", "PEM", "ENG") for
1755+
proxy */
1756+
CINIT(PROXY_SSLKEYTYPE, STRINGPOINT, 257),
1757+
1758+
/* password for the SSL private key for proxy */
1759+
CINIT(PROXY_KEYPASSWD, STRINGPOINT, 258),
1760+
1761+
/* Specify which SSL ciphers to use for proxy */
1762+
CINIT(PROXY_SSL_CIPHER_LIST, STRINGPOINT, 259),
1763+
1764+
/* CRL file for proxy */
1765+
CINIT(PROXY_CRLFILE, STRINGPOINT, 260),
1766+
1767+
/* Enable/disable specific SSL features with a bitmask for proxy, see
1768+
CURLSSLOPT_* */
1769+
CINIT(PROXY_SSL_OPTIONS, LONG, 261),
1770+
1771+
/* Name of pre proxy to use. */
1772+
CINIT(PRE_PROXY, STRINGPOINT, 262),
1773+
1774+
/* The public key in DER form used to validate the proxy public key
1775+
this option is used only if PROXY_SSL_VERIFYPEER is true */
1776+
CINIT(PROXY_PINNEDPUBLICKEY, STRINGPOINT, 263),
1777+
1778+
/* Path to an abstract Unix domain socket */
1779+
CINIT(ABSTRACT_UNIX_SOCKET, STRINGPOINT, 264),
1780+
17071781
CURLOPT_LASTENTRY /* the last unused */
17081782
} CURLoption;
17091783

@@ -1805,6 +1879,7 @@ enum {
18051879
CURL_SSLVERSION_TLSv1_0,
18061880
CURL_SSLVERSION_TLSv1_1,
18071881
CURL_SSLVERSION_TLSv1_2,
1882+
CURL_SSLVERSION_TLSv1_3,
18081883

18091884
CURL_SSLVERSION_LAST /* never use, keep last */
18101885
};
@@ -1839,7 +1914,10 @@ typedef enum {
18391914

18401915

18411916
/* curl_strequal() and curl_strnequal() are subject for removal in a future
1842-
libcurl, see lib/README.curlx for details */
1917+
libcurl, see lib/README.curlx for details
1918+
1919+
!checksrc! disable SPACEBEFOREPAREN 2
1920+
*/
18431921
CURL_EXTERN int (curl_strequal)(const char *s1, const char *s2);
18441922
CURL_EXTERN int (curl_strnequal)(const char *s1, const char *s2, size_t n);
18451923

@@ -2209,9 +2287,12 @@ typedef enum {
22092287
CURLINFO_ACTIVESOCKET = CURLINFO_SOCKET + 44,
22102288
CURLINFO_TLS_SSL_PTR = CURLINFO_SLIST + 45,
22112289
CURLINFO_HTTP_VERSION = CURLINFO_LONG + 46,
2290+
CURLINFO_PROXY_SSL_VERIFYRESULT = CURLINFO_LONG + 47,
2291+
CURLINFO_PROTOCOL = CURLINFO_LONG + 48,
2292+
CURLINFO_SCHEME = CURLINFO_STRING + 49,
22122293
/* Fill in new entries below here! */
22132294

2214-
CURLINFO_LASTONE = 46
2295+
CURLINFO_LASTONE = 49
22152296
} CURLINFO;
22162297

22172298
/* CURLINFO_RESPONSE_CODE is the new name for the option previously known as
@@ -2372,6 +2453,7 @@ typedef struct {
23722453
#define CURL_VERSION_UNIX_SOCKETS (1<<19) /* Unix domain sockets support */
23732454
#define CURL_VERSION_PSL (1<<20) /* Mozilla's Public Suffix List, used
23742455
for cookie domain verification */
2456+
#define CURL_VERSION_HTTPS_PROXY (1<<21) /* HTTPS-proxy support built-in */
23752457

23762458
/*
23772459
* NAME curl_version_info()

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 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
10+
* Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, 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 - 2016 Daniel Stenberg, <daniel@haxx.se>."
29+
#define LIBCURL_COPYRIGHT "1996 - 2017 Daniel Stenberg, <daniel@haxx.se>."
3030

3131
/* This is the version number of the libcurl package from which this header
3232
file origins: */
33-
#define LIBCURL_VERSION "7.51.0"
33+
#define LIBCURL_VERSION "7.53.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 51
39-
#define LIBCURL_VERSION_PATCH 0
38+
#define LIBCURL_VERSION_MINOR 53
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 0x073300
60+
#define LIBCURL_VERSION_NUM 0x073501
6161

6262
/*
6363
* This is the date and time when the full source package was created. The
@@ -68,7 +68,7 @@
6868
*
6969
* "Mon Feb 12 11:35:33 UTC 2007"
7070
*/
71-
#define LIBCURL_TIMESTAMP "Wed Nov 2 06:54:46 UTC 2016"
71+
#define LIBCURL_TIMESTAMP "Fri Feb 24 07:49:42 UTC 2017"
7272

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

include/curl/easy.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* | (__| |_| | _ <| |___
88
* \___|\___/|_| \_\_____|
99
*
10-
* Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
10+
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, 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
@@ -58,7 +58,7 @@ CURL_EXTERN CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...);
5858
* curl_easy_duphandle() for each new thread to avoid a series of identical
5959
* curl_easy_setopt() invokes in every thread.
6060
*/
61-
CURL_EXTERN CURL* curl_easy_duphandle(CURL *curl);
61+
CURL_EXTERN CURL *curl_easy_duphandle(CURL *curl);
6262

6363
/*
6464
* NAME curl_easy_reset()

include/curl/stdcheaders.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* | (__| |_| | _ <| |___
88
* \___|\___/|_| \_\_____|
99
*
10-
* Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
10+
* Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, 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
@@ -24,8 +24,8 @@
2424

2525
#include <sys/types.h>
2626

27-
size_t fread (void *, size_t, size_t, FILE *);
28-
size_t fwrite (const void *, size_t, size_t, FILE *);
27+
size_t fread(void *, size_t, size_t, FILE *);
28+
size_t fwrite(const void *, size_t, size_t, FILE *);
2929

3030
int strcasecmp(const char *, const char *);
3131
int strncasecmp(const char *, const char *, size_t);

0 commit comments

Comments
 (0)