Skip to content

Commit 2fe598b

Browse files
stammenminggo
authored and
minggo
committed
updated win10 libs for websockets with openssl (#269)
1 parent 1d40685 commit 2fe598b

File tree

189 files changed

+43099
-2761
lines changed

Some content is hidden

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

189 files changed

+43099
-2761
lines changed
665 KB
Binary file not shown.
787 KB
Binary file not shown.
738 KB
Binary file not shown.

curl/include/win10/curl/curl.h

Lines changed: 95 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
* https://cool.haxx.se/mailman/listinfo/curl-library/
3131
*/
3232

33+
#ifdef CURL_NO_OLDIES
34+
#define CURL_STRICTER
35+
#endif
36+
3337
#include "curlver.h" /* libcurl version defines */
3438
#include "curlbuild.h" /* libcurl build definitions */
3539
#include "curlrules.h" /* libcurl rules enforcement */
@@ -91,7 +95,13 @@
9195
extern "C" {
9296
#endif
9397

98+
#if defined(BUILDING_LIBCURL) || defined(CURL_STRICTER)
9499
typedef struct Curl_easy CURL;
100+
typedef struct Curl_share CURLSH;
101+
#else
102+
typedef void CURL;
103+
typedef void CURLSH;
104+
#endif
95105

96106
/*
97107
* libcurl external API function linkage decorations.
@@ -133,7 +143,7 @@ struct curl_httppost {
133143
char *buffer; /* pointer to allocated buffer contents */
134144
long bufferlength; /* length of buffer field */
135145
char *contenttype; /* Content-Type */
136-
struct curl_slist* contentheader; /* list of extra headers for this form */
146+
struct curl_slist *contentheader; /* list of extra headers for this form */
137147
struct curl_httppost *more; /* if one field name has more than one
138148
file, this link should link to following
139149
files */
@@ -260,7 +270,7 @@ struct curl_fileinfo {
260270
unsigned int flags;
261271

262272
/* used internally */
263-
char * b_data;
273+
char *b_data;
264274
size_t b_size;
265275
size_t b_used;
266276
};
@@ -425,7 +435,7 @@ typedef enum {
425435
CURLE_COULDNT_RESOLVE_PROXY, /* 5 */
426436
CURLE_COULDNT_RESOLVE_HOST, /* 6 */
427437
CURLE_COULDNT_CONNECT, /* 7 */
428-
CURLE_FTP_WEIRD_SERVER_REPLY, /* 8 */
438+
CURLE_WEIRD_SERVER_REPLY, /* 8 */
429439
CURLE_REMOTE_ACCESS_DENIED, /* 9 a service was denied by the server
430440
due to lack of access - when login fails
431441
this is not returned. */
@@ -556,6 +566,7 @@ typedef enum {
556566

557567
/* compatibility with older names */
558568
#define CURLOPT_ENCODING CURLOPT_ACCEPT_ENCODING
569+
#define CURLE_FTP_WEIRD_SERVER_REPLY CURLE_WEIRD_SERVER_REPLY
559570

560571
/* The following were added in 7.21.5, April 2011 */
561572
#define CURLE_UNKNOWN_TELNET_OPTION CURLE_UNKNOWN_OPTION
@@ -629,6 +640,7 @@ typedef enum {
629640
CONNECT HTTP/1.1 */
630641
CURLPROXY_HTTP_1_0 = 1, /* added in 7.19.4, force to use CONNECT
631642
HTTP/1.0 */
643+
CURLPROXY_HTTPS = 2, /* added in 7.52.0 */
632644
CURLPROXY_SOCKS4 = 4, /* support added in 7.15.2, enum existed already
633645
in 7.10 */
634646
CURLPROXY_SOCKS5 = 5, /* added in 7.10 */
@@ -1195,7 +1207,8 @@ typedef enum {
11951207
CINIT(SHARE, OBJECTPOINT, 100),
11961208

11971209
/* indicates type of proxy. accepted values are CURLPROXY_HTTP (default),
1198-
CURLPROXY_SOCKS4, CURLPROXY_SOCKS4A and CURLPROXY_SOCKS5. */
1210+
CURLPROXY_HTTPS, CURLPROXY_SOCKS4, CURLPROXY_SOCKS4A and
1211+
CURLPROXY_SOCKS5. */
11991212
CINIT(PROXYTYPE, LONG, 101),
12001213

12011214
/* Set the Accept-Encoding string. Use this to tell a server you would like
@@ -1689,6 +1702,74 @@ typedef enum {
16891702
/* Set TCP Fast Open */
16901703
CINIT(TCP_FASTOPEN, LONG, 244),
16911704

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

@@ -1790,6 +1871,7 @@ enum {
17901871
CURL_SSLVERSION_TLSv1_0,
17911872
CURL_SSLVERSION_TLSv1_1,
17921873
CURL_SSLVERSION_TLSv1_2,
1874+
CURL_SSLVERSION_TLSv1_3,
17931875

17941876
CURL_SSLVERSION_LAST /* never use, keep last */
17951877
};
@@ -1824,7 +1906,10 @@ typedef enum {
18241906

18251907

18261908
/* curl_strequal() and curl_strnequal() are subject for removal in a future
1827-
libcurl, see lib/README.curlx for details */
1909+
libcurl, see lib/README.curlx for details
1910+
1911+
!checksrc! disable SPACEBEFOREPAREN 2
1912+
*/
18281913
CURL_EXTERN int (curl_strequal)(const char *s1, const char *s2);
18291914
CURL_EXTERN int (curl_strnequal)(const char *s1, const char *s2, size_t n);
18301915

@@ -2194,9 +2279,12 @@ typedef enum {
21942279
CURLINFO_ACTIVESOCKET = CURLINFO_SOCKET + 44,
21952280
CURLINFO_TLS_SSL_PTR = CURLINFO_SLIST + 45,
21962281
CURLINFO_HTTP_VERSION = CURLINFO_LONG + 46,
2282+
CURLINFO_PROXY_SSL_VERIFYRESULT = CURLINFO_LONG + 47,
2283+
CURLINFO_PROTOCOL = CURLINFO_LONG + 48,
2284+
CURLINFO_SCHEME = CURLINFO_STRING + 49,
21972285
/* Fill in new entries below here! */
21982286

2199-
CURLINFO_LASTONE = 46
2287+
CURLINFO_LASTONE = 49
22002288
} CURLINFO;
22012289

22022290
/* CURLINFO_RESPONSE_CODE is the new name for the option previously known as
@@ -2258,7 +2346,6 @@ typedef void (*curl_unlock_function)(CURL *handle,
22582346
curl_lock_data data,
22592347
void *userptr);
22602348

2261-
typedef struct Curl_share CURLSH;
22622349

22632350
typedef enum {
22642351
CURLSHE_OK, /* all is fine */
@@ -2358,6 +2445,7 @@ typedef struct {
23582445
#define CURL_VERSION_UNIX_SOCKETS (1<<19) /* Unix domain sockets support */
23592446
#define CURL_VERSION_PSL (1<<20) /* Mozilla's Public Suffix List, used
23602447
for cookie domain verification */
2448+
#define CURL_VERSION_HTTPS_PROXY (1<<21) /* HTTPS-proxy support built-in */
23612449

23622450
/*
23632451
* NAME curl_version_info()

curl/include/win10/curl/curlver.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030

3131
/* This is the version number of the libcurl package from which this header
3232
file origins: */
33-
#define LIBCURL_VERSION "7.50.0"
33+
#define LIBCURL_VERSION "7.52.1-DEV"
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 50
39-
#define LIBCURL_VERSION_PATCH 0
38+
#define LIBCURL_VERSION_MINOR 52
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 0x073200
60+
#define LIBCURL_VERSION_NUM 0x073401
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 "Thu Jul 21 08:55:43 UTC 2016"
71+
#define LIBCURL_TIMESTAMP "DEV"
7272

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

curl/include/win10/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, <[email protected]>, et al.
10+
* Copyright (C) 1998 - 2016, 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
@@ -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()

curl/include/win10/curl/multi.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@
5252
extern "C" {
5353
#endif
5454

55+
#if defined(BUILDING_LIBCURL) || defined(CURL_STRICTER)
5556
typedef struct Curl_multi CURLM;
57+
#else
58+
typedef void CURLM;
59+
#endif
5660

5761
typedef enum {
5862
CURLM_CALL_MULTI_PERFORM = -1, /* please call curl_multi_perform() or

curl/include/win10/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, <[email protected]>, et al.
10+
* Copyright (C) 1998 - 2016, 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
@@ -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)