aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-05-28 09:21:29 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-05-28 09:21:29 +0000
commit59c11b82d55b6e8110f2232f0fd47068e4072495 (patch)
treea5c684acecf09ad70e05ec653f690f8136c37e4e /lib
parent98871d1e9e0234cc9431dbea08ef1915cb131ee8 (diff)
Cris Bailiff's CAPATH support added
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index 62e727e93..d008ba459 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -981,7 +981,13 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, ...)
* Set CA info for SSL connection. Specify file name of the CA certificate
*/
data->set.ssl.CAfile = va_arg(param, char *);
- data->set.ssl.CApath = NULL; /*This does not work on windows.*/
+ break;
+ case CURLOPT_CAPATH:
+ /*
+ * Set CA path info for SSL connection. Specify directory name of the CA certificates
+ * which have been prepared using openssl c_rehash utility.
+ */
+ data->set.ssl.CApath = va_arg(param, char *); /*This does not work on windows.*/
break;
case CURLOPT_TELNETOPTIONS:
/*