7
7
* | (__| |_| | _ <| |___
8
8
* \___|\___/|_| \_\_____|
9
9
*
10
- * Copyright (C) 1998 - 2015 , Daniel Stenberg, <[email protected] >, et al.
10
+ * Copyright (C) 1998 - 2016 , Daniel Stenberg, <[email protected] >, et al.
11
11
*
12
12
* This software is licensed as described in the file COPYING, which
13
13
* you should have received as part of this distribution. The terms
91
91
extern "C" {
92
92
#endif
93
93
94
- typedef void CURL ;
94
+ typedef struct Curl_easy CURL ;
95
95
96
96
/*
97
97
* libcurl external API function linkage decorations.
@@ -373,6 +373,7 @@ typedef curlioerr (*curl_ioctl_callback)(CURL *handle,
373
373
int cmd ,
374
374
void * clientp );
375
375
376
+ #ifndef CURL_DID_MEMORY_FUNC_TYPEDEFS
376
377
/*
377
378
* The following typedef's are signatures of malloc, free, realloc, strdup and
378
379
* calloc respectively. Function pointers of these types can be passed to the
@@ -385,6 +386,9 @@ typedef void *(*curl_realloc_callback)(void *ptr, size_t size);
385
386
typedef char * (* curl_strdup_callback )(const char * str );
386
387
typedef void * (* curl_calloc_callback )(size_t nmemb , size_t size );
387
388
389
+ #define CURL_DID_MEMORY_FUNC_TYPEDEFS
390
+ #endif
391
+
388
392
/* the kind of data that is passed to information_callback*/
389
393
typedef enum {
390
394
CURLINFO_TEXT = 0 ,
@@ -471,9 +475,9 @@ typedef enum {
471
475
CURLE_OBSOLETE44 , /* 44 - NOT USED */
472
476
CURLE_INTERFACE_FAILED , /* 45 - CURLOPT_INTERFACE failed */
473
477
CURLE_OBSOLETE46 , /* 46 - NOT USED */
474
- CURLE_TOO_MANY_REDIRECTS , /* 47 - catch endless re-direct loops */
478
+ CURLE_TOO_MANY_REDIRECTS , /* 47 - catch endless re-direct loops */
475
479
CURLE_UNKNOWN_OPTION , /* 48 - User specified an unknown option */
476
- CURLE_TELNET_OPTION_SYNTAX , /* 49 - Malformed telnet option */
480
+ CURLE_TELNET_OPTION_SYNTAX , /* 49 - Malformed telnet option */
477
481
CURLE_OBSOLETE50 , /* 50 - NOT USED */
478
482
CURLE_PEER_FAILED_VERIFICATION , /* 51 - peer's certificate or fingerprint
479
483
wasn't verified fine */
@@ -535,6 +539,8 @@ typedef enum {
535
539
CURLE_SSL_PINNEDPUBKEYNOTMATCH , /* 90 - specified pinned public key did not
536
540
match */
537
541
CURLE_SSL_INVALIDCERTSTATUS , /* 91 - invalid certificate status */
542
+ CURLE_HTTP2_STREAM , /* 92 - stream error in HTTP/2 framing layer
543
+ */
538
544
CURL_LAST /* never use! */
539
545
} CURLcode ;
540
546
@@ -1460,7 +1466,7 @@ typedef enum {
1460
1466
CINIT (TFTP_BLKSIZE , LONG , 178 ),
1461
1467
1462
1468
/* Socks Service */
1463
- CINIT (SOCKS5_GSSAPI_SERVICE , STRINGPOINT , 179 ),
1469
+ CINIT (SOCKS5_GSSAPI_SERVICE , STRINGPOINT , 179 ), /* DEPRECATED, do not use! */
1464
1470
1465
1471
/* Socks Service */
1466
1472
CINIT (SOCKS5_GSSAPI_NEC , LONG , 180 ),
@@ -1676,6 +1682,13 @@ typedef enum {
1676
1682
/* Do not send any tftp option requests to the server */
1677
1683
CINIT (TFTP_NO_OPTIONS , LONG , 242 ),
1678
1684
1685
+ /* Linked-list of host:port:connect-to-host:connect-to-port,
1686
+ overrides the URL's host:port (only for the network layer) */
1687
+ CINIT (CONNECT_TO , OBJECTPOINT , 243 ),
1688
+
1689
+ /* Set TCP Fast Open */
1690
+ CINIT (TCP_FASTOPEN , LONG , 244 ),
1691
+
1679
1692
CURLOPT_LASTENTRY /* the last unused */
1680
1693
} CURLoption ;
1681
1694
@@ -1727,6 +1740,8 @@ enum {
1727
1740
CURL_HTTP_VERSION_1_1 , /* please use HTTP 1.1 in the request */
1728
1741
CURL_HTTP_VERSION_2_0 , /* please use HTTP 2 in the request */
1729
1742
CURL_HTTP_VERSION_2TLS , /* use version 2 for HTTPS, version 1.1 for HTTP */
1743
+ CURL_HTTP_VERSION_2_PRIOR_KNOWLEDGE , /* please use HTTP 2 without HTTP/1.1
1744
+ Upgrade */
1730
1745
1731
1746
CURL_HTTP_VERSION_LAST /* *ILLEGAL* http version */
1732
1747
};
@@ -2110,6 +2125,11 @@ typedef enum {
2110
2125
CURLSSLBACKEND_MBEDTLS = 11
2111
2126
} curl_sslbackend ;
2112
2127
2128
+ /* aliases for library clones and renames */
2129
+ #define CURLSSLBACKEND_LIBRESSL 1
2130
+ #define CURLSSLBACKEND_BORINGSSL 1
2131
+ #define CURLSSLBACKEND_WOLFSSL 6
2132
+
2113
2133
/* Information about the SSL library used and the respective internal SSL
2114
2134
handle, which can be used to obtain further information regarding the
2115
2135
connection. Asked for with CURLINFO_TLS_SSL_PTR or CURLINFO_TLS_SESSION. */
@@ -2173,9 +2193,10 @@ typedef enum {
2173
2193
CURLINFO_TLS_SESSION = CURLINFO_SLIST + 43 ,
2174
2194
CURLINFO_ACTIVESOCKET = CURLINFO_SOCKET + 44 ,
2175
2195
CURLINFO_TLS_SSL_PTR = CURLINFO_SLIST + 45 ,
2196
+ CURLINFO_HTTP_VERSION = CURLINFO_LONG + 46 ,
2176
2197
/* Fill in new entries below here! */
2177
2198
2178
- CURLINFO_LASTONE = 45
2199
+ CURLINFO_LASTONE = 46
2179
2200
} CURLINFO ;
2180
2201
2181
2202
/* CURLINFO_RESPONSE_CODE is the new name for the option previously known as
@@ -2237,7 +2258,7 @@ typedef void (*curl_unlock_function)(CURL *handle,
2237
2258
curl_lock_data data ,
2238
2259
void * userptr );
2239
2260
2240
- typedef void CURLSH ;
2261
+ typedef struct Curl_share CURLSH ;
2241
2262
2242
2263
typedef enum {
2243
2264
CURLSHE_OK , /* all is fine */
0 commit comments