summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-03-26 13:05:03 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-03-27 09:04:27 +0100
commit6de756c9b1de34b7a1b1d6cd978ca75f3b1d719b (patch)
treed59970370b7d7ba0332959f3a21bab1a17d74fa5 /include
parent62112d2bb49bf6ac79d45d65d60e270fa9e7b611 (diff)
downloadcurl-6de756c9b1de34b7a1b1d6cd978ca75f3b1d719b.tar.gz
version: add 'cainfo' and 'capath' to version info struct
Suggested-by: Timothe Litt URL: https://curl.haxx.se/mail/lib-2020-03/0090.html Reviewed-by: Jay Satiro Closes #5150
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index 9da97924f..716024753 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -2729,6 +2729,7 @@ typedef enum {
CURLVERSION_FOURTH,
CURLVERSION_FIFTH,
CURLVERSION_SIXTH,
+ CURLVERSION_SEVENTH,
CURLVERSION_LAST /* never actually use this */
} CURLversion;
@@ -2737,7 +2738,7 @@ typedef enum {
meant to be a built-in version number for what kind of struct the caller
expects. If the struct ever changes, we redefine the NOW to another enum
from above. */
-#define CURLVERSION_NOW CURLVERSION_SIXTH
+#define CURLVERSION_NOW CURLVERSION_SEVENTH
typedef struct {
CURLversion age; /* age of the returned struct */
@@ -2776,6 +2777,13 @@ typedef struct {
const char *nghttp2_version; /* human readable string. */
const char *quic_version; /* human readable quic (+ HTTP/3) library +
version or NULL */
+
+ /* These fields were added in CURLVERSION_SEVENTH */
+ const char *cainfo; /* the built-in default CURLOPT_CAINFO, might
+ be NULL */
+ const char *capath; /* the built-in default CURLOPT_CAPATH, might
+ be NULL */
+
} curl_version_info_data;
#define CURL_VERSION_IPV6 (1<<0) /* IPv6-enabled */