Patrick Bihan-Faou introduced CURLOPT_SSL_VERIFYHOST and code to deal with

it.
This commit is contained in:
Daniel Stenberg
2001-08-08 07:16:47 +00:00
parent dcfb10fb31
commit 95837043e2
3 changed files with 36 additions and 3 deletions

View File

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