|
30 | 30 | */
|
31 | 31 |
|
32 | 32 | #ifdef CURL_NO_OLDIES
|
33 |
| -#define CURL_STRICTER |
| 33 | +#define CURL_STRICTER /* not used since 8.11.0 */ |
34 | 34 | #endif
|
35 | 35 |
|
36 | 36 | /* Compile-time deprecation macros. */
|
37 |
| -#if (defined(__GNUC__) && \ |
38 |
| - ((__GNUC__ > 12) || ((__GNUC__ == 12) && (__GNUC_MINOR__ >= 1 ))) || \ |
39 |
| - defined(__IAR_SYSTEMS_ICC__)) && \ |
40 |
| - !defined(__INTEL_COMPILER) && \ |
| 37 | +#if (defined(__GNUC__) && \ |
| 38 | + ((__GNUC__ > 12) || ((__GNUC__ == 12) && (__GNUC_MINOR__ >= 1))) || \ |
| 39 | + (defined(__clang__) && __clang_major__ >= 3) || \ |
| 40 | + defined(__IAR_SYSTEMS_ICC__)) && \ |
| 41 | + !defined(__INTEL_COMPILER) && \ |
41 | 42 | !defined(CURL_DISABLE_DEPRECATION) && !defined(BUILDING_LIBCURL)
|
42 | 43 | #define CURL_DEPRECATED(version, message) \
|
43 | 44 | __attribute__((deprecated("since " # version ". " message)))
|
|
113 | 114 | extern "C" {
|
114 | 115 | #endif
|
115 | 116 |
|
116 |
| -#if defined(BUILDING_LIBCURL) || defined(CURL_STRICTER) |
117 |
| -typedef struct Curl_easy CURL; |
118 |
| -typedef struct Curl_share CURLSH; |
119 |
| -#else |
120 | 117 | typedef void CURL;
|
121 | 118 | typedef void CURLSH;
|
122 |
| -#endif |
123 | 119 |
|
124 | 120 | /*
|
125 | 121 | * libcurl external API function linkage decorations.
|
@@ -253,12 +249,12 @@ typedef int (*curl_xferinfo_callback)(void *clientp,
|
253 | 249 | #endif
|
254 | 250 |
|
255 | 251 | #ifndef CURL_MAX_WRITE_SIZE
|
256 |
| - /* Tests have proven that 20K is a very bad buffer size for uploads on |
257 |
| - Windows, while 16K for some odd reason performed a lot better. |
258 |
| - We do the ifndef check to allow this value to easier be changed at build |
259 |
| - time for those who feel adventurous. The practical minimum is about |
260 |
| - 400 bytes since libcurl uses a buffer of this size as a scratch area |
261 |
| - (unrelated to network send operations). */ |
| 252 | + /* Tests have proven that 20K is a bad buffer size for uploads on Windows, |
| 253 | + while 16K for some odd reason performed a lot better. We do the ifndef |
| 254 | + check to allow this value to easier be changed at build time for those |
| 255 | + who feel adventurous. The practical minimum is about 400 bytes since |
| 256 | + libcurl uses a buffer of this size as a scratch area (unrelated to |
| 257 | + network send operations). */ |
262 | 258 | #define CURL_MAX_WRITE_SIZE 16384
|
263 | 259 | #endif
|
264 | 260 |
|
@@ -555,14 +551,14 @@ typedef enum {
|
555 | 551 | CURLE_FTP_COULDNT_USE_REST, /* 31 - the REST command failed */
|
556 | 552 | CURLE_OBSOLETE32, /* 32 - NOT USED */
|
557 | 553 | CURLE_RANGE_ERROR, /* 33 - RANGE "command" did not work */
|
558 |
| - CURLE_HTTP_POST_ERROR, /* 34 */ |
| 554 | + CURLE_OBSOLETE34, /* 34 */ |
559 | 555 | CURLE_SSL_CONNECT_ERROR, /* 35 - wrong when connecting with SSL */
|
560 | 556 | CURLE_BAD_DOWNLOAD_RESUME, /* 36 - could not resume download */
|
561 | 557 | CURLE_FILE_COULDNT_READ_FILE, /* 37 */
|
562 | 558 | CURLE_LDAP_CANNOT_BIND, /* 38 */
|
563 | 559 | CURLE_LDAP_SEARCH_FAILED, /* 39 */
|
564 | 560 | CURLE_OBSOLETE40, /* 40 - NOT USED */
|
565 |
| - CURLE_FUNCTION_NOT_FOUND, /* 41 - NOT USED starting with 7.53.0 */ |
| 561 | + CURLE_OBSOLETE41, /* 41 - NOT USED starting with 7.53.0 */ |
566 | 562 | CURLE_ABORTED_BY_CALLBACK, /* 42 */
|
567 | 563 | CURLE_BAD_FUNCTION_ARGUMENT, /* 43 */
|
568 | 564 | CURLE_OBSOLETE44, /* 44 - NOT USED */
|
@@ -647,6 +643,12 @@ typedef enum {
|
647 | 643 | #ifndef CURL_NO_OLDIES /* define this to test if your app builds with all
|
648 | 644 | the obsolete stuff removed! */
|
649 | 645 |
|
| 646 | +/* removed in 7.53.0 */ |
| 647 | +#define CURLE_FUNCTION_NOT_FOUND CURLE_OBSOLETE41 |
| 648 | + |
| 649 | +/* removed in 7.56.0 */ |
| 650 | +#define CURLE_HTTP_POST_ERROR CURLE_OBSOLETE34 |
| 651 | + |
650 | 652 | /* Previously obsolete error code reused in 7.38.0 */
|
651 | 653 | #define CURLE_OBSOLETE16 CURLE_HTTP2
|
652 | 654 |
|
@@ -942,6 +944,9 @@ typedef enum {
|
942 | 944 | a client certificate for authentication. (Schannel) */
|
943 | 945 | #define CURLSSLOPT_AUTO_CLIENT_CERT (1<<5)
|
944 | 946 |
|
| 947 | +/* If possible, send data using TLS 1.3 early data */ |
| 948 | +#define CURLSSLOPT_EARLYDATA (1<<6) |
| 949 | + |
945 | 950 | /* The default connection attempt delay in milliseconds for happy eyeballs.
|
946 | 951 | CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS.3 and happy-eyeballs-timeout-ms.d document
|
947 | 952 | this value, keep them in sync. */
|
@@ -2953,7 +2958,8 @@ typedef enum {
|
2953 | 2958 | CURLINFO_QUEUE_TIME_T = CURLINFO_OFF_T + 65,
|
2954 | 2959 | CURLINFO_USED_PROXY = CURLINFO_LONG + 66,
|
2955 | 2960 | CURLINFO_POSTTRANSFER_TIME_T = CURLINFO_OFF_T + 67,
|
2956 |
| - CURLINFO_LASTONE = 67 |
| 2961 | + CURLINFO_EARLYDATA_SENT_T = CURLINFO_OFF_T + 68, |
| 2962 | + CURLINFO_LASTONE = 68 |
2957 | 2963 | } CURLINFO;
|
2958 | 2964 |
|
2959 | 2965 | /* CURLINFO_RESPONSE_CODE is the new name for the option previously known as
|
|
0 commit comments