Patrick Bihan-Faou's verifyhost addition

This commit is contained in:
Daniel Stenberg
2001-08-08 07:15:00 +00:00
parent 0553ab8181
commit dcfb10fb31
2 changed files with 8 additions and 0 deletions

View File

@@ -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 */