aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-10-30 23:15:15 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-10-30 23:15:15 +0000
commit5c0b2f29b9423b9e0130d26ea9cb1bb8e280ccd2 (patch)
tree7db43600c46f3dc9db1f2174d4e9cda1f6d5c065 /include
parente446edc2882b3b601e40783ff3d71d2e0b9cba35 (diff)
Added CURLOPT_SSL_VERIFYPEER and CURLOPT_CAINFO
Diffstat (limited to 'include')
-rw-r--r--include/curl/curl.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h
index 0a2c25fa7..51cad8e7e 100644
--- a/include/curl/curl.h
+++ b/include/curl/curl.h
@@ -394,6 +394,13 @@ typedef enum {
* set but doesn't match one of these, 'private' will be used. */
CINIT(KRB4LEVEL, OBJECTPOINT, 63),
+ /* Set if we should verify the peer in ssl handshake, set 1 to verify. */
+ CINIT(SSL_VERIFYPEER, LONG, 64),
+
+ /* The CApath or CAfile used to validate the peer certificate
+ this option is used only if SSL_VERIFYPEER is true */
+ CINIT(CAINFO, OBJECTPOINT, 65),
+
CURLOPT_LASTENTRY /* the last unusued */
} CURLoption;
@@ -438,8 +445,8 @@ char *curl_getenv(char *variable);
char *curl_version(void);
/* This is the version number */
-#define LIBCURL_VERSION "7.4.1"
-#define LIBCURL_VERSION_NUM 0x070401
+#define LIBCURL_VERSION "7.4.2-pre2"
+#define LIBCURL_VERSION_NUM 0x070402
/* linked-list structure for the CURLOPT_QUOTE option (and other) */
struct curl_slist {
@@ -659,8 +666,9 @@ typedef enum {
CURLINFO_SPEED_UPLOAD = CURLINFO_DOUBLE + 10,
CURLINFO_HEADER_SIZE = CURLINFO_LONG + 11,
CURLINFO_REQUEST_SIZE = CURLINFO_LONG + 12,
+ CURLINFO_SSL_VERIFYRESULT = CURLINFO_LONG + 13,
- CURLINFO_LASTONE = 13,
+ CURLINFO_LASTONE = 14,
} CURLINFO;
/*