aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-08-08 07:15:00 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-08-08 07:15:00 +0000
commitdcfb10fb31ccc93a6affab36c1910201ea5275d9 (patch)
tree4b3ea376e4eec6b4346dd0bb7f5e3b956f5688ed /src
parent0553ab8181cc375d871d63306ba8935989b8fde1 (diff)
Patrick Bihan-Faou's verifyhost addition
Diffstat (limited to 'src')
-rw-r--r--src/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 3e0b3dcda..7e2ac4669 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1881,7 +1881,10 @@ operate(struct Configurable *config, int argc, char *argv[])
/* available from libcurl 7.5: */
curl_easy_setopt(curl, CURLOPT_CAINFO, config->cacert);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, TRUE);
+ curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 2);
}
+ else
+ curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 1);
if(config->conf&(CONF_NOBODY|CONF_USEREMOTETIME)) {
/* no body or use remote time */