@@ -2634,10 +2634,6 @@ typedef enum {
26342634 CURLINFO_PROXY_SSL_VERIFYRESULT = CURLINFO_LONG + 47 ,
26352635 CURLINFO_PROTOCOL = CURLINFO_LONG + 48 ,
26362636 CURLINFO_SCHEME = CURLINFO_STRING + 49 ,
2637- /* Fill in new entries below here! */
2638-
2639- /* Preferably these would be defined conditionally based on the
2640- sizeof curl_off_t being 64-bits */
26412637 CURLINFO_TOTAL_TIME_T = CURLINFO_OFF_T + 50 ,
26422638 CURLINFO_NAMELOOKUP_TIME_T = CURLINFO_OFF_T + 51 ,
26432639 CURLINFO_CONNECT_TIME_T = CURLINFO_OFF_T + 52 ,
@@ -2646,8 +2642,9 @@ typedef enum {
26462642 CURLINFO_REDIRECT_TIME_T = CURLINFO_OFF_T + 55 ,
26472643 CURLINFO_APPCONNECT_TIME_T = CURLINFO_OFF_T + 56 ,
26482644 CURLINFO_RETRY_AFTER = CURLINFO_OFF_T + 57 ,
2645+ CURLINFO_EFFECTIVE_METHOD = CURLINFO_STRING + 58 ,
26492646
2650- CURLINFO_LASTONE = 57
2647+ CURLINFO_LASTONE = 58
26512648} CURLINFO ;
26522649
26532650/* CURLINFO_RESPONSE_CODE is the new name for the option previously known as
@@ -2748,6 +2745,7 @@ typedef enum {
27482745 CURLVERSION_FIFTH ,
27492746 CURLVERSION_SIXTH ,
27502747 CURLVERSION_SEVENTH ,
2748+ CURLVERSION_EIGHTH ,
27512749 CURLVERSION_LAST /* never actually use this */
27522750} CURLversion ;
27532751
@@ -2756,7 +2754,7 @@ typedef enum {
27562754 meant to be a built-in version number for what kind of struct the caller
27572755 expects. If the struct ever changes, we redefine the NOW to another enum
27582756 from above. */
2759- #define CURLVERSION_NOW CURLVERSION_SEVENTH
2757+ #define CURLVERSION_NOW CURLVERSION_EIGHTH
27602758
27612759struct curl_version_info_data {
27622760 CURLversion age ; /* age of the returned struct */
@@ -2802,6 +2800,11 @@ struct curl_version_info_data {
28022800 const char * capath ; /* the built-in default CURLOPT_CAPATH, might
28032801 be NULL */
28042802
2803+ /* These fields were added in CURLVERSION_EIGHTH */
2804+ unsigned int zstd_ver_num ; /* Numeric Zstd version
2805+ (MAJOR << 24) | (MINOR << 12) | PATCH */
2806+ const char * zstd_version ; /* human readable string. */
2807+
28052808};
28062809typedef struct curl_version_info_data curl_version_info_data ;
28072810
@@ -2836,6 +2839,8 @@ typedef struct curl_version_info_data curl_version_info_data;
28362839#define CURL_VERSION_BROTLI (1<<23) /* Brotli features are present. */
28372840#define CURL_VERSION_ALTSVC (1<<24) /* Alt-Svc handling built-in */
28382841#define CURL_VERSION_HTTP3 (1<<25) /* HTTP3 support built-in */
2842+ #define CURL_VERSION_ZSTD (1<<26) /* zstd features are present */
2843+ #define CURL_VERSION_UNICODE (1<<27) /* Unicode support on Windows */
28392844
28402845 /*
28412846 * NAME curl_version_info()
0 commit comments