aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-08-08 07:16:47 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-08-08 07:16:47 +0000
commit95837043e269b4e8eb96d0d2933c75c86a399419 (patch)
tree1bc4af5b98003e4f377ede81e6cf3cde0aeea362 /lib/url.c
parentdcfb10fb31ccc93a6affab36c1910201ea5275d9 (diff)
Patrick Bihan-Faou introduced CURLOPT_SSL_VERIFYHOST and code to deal with
it.
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 48e1d6b06..a40d1bbe9 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -792,6 +792,12 @@ CURLcode Curl_setopt(CURL *curl, CURLoption option, ...)
*/
data->ssl.verifypeer = va_arg(param, long);
break;
+ case CURLOPT_SSL_VERIFYHOST:
+ /*
+ * Enable verification of the CN contained in the peer certificate
+ */
+ data->ssl.verifyhost = va_arg(param, long);
+ break;
case CURLOPT_CAINFO:
/*
* Set CA info for SSL connection. Specify file name of the CA certificate