aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-09-13 14:56:27 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-09-13 14:56:27 +0200
commit8250f93d413eaff47d8e2ac0284059afa92dcea4 (patch)
treeeb9c571884789db72883a8c29ab80bbb180b9881 /lib/url.c
parent7d9bef9286cd8efbed032d41a36e82d1c44058a7 (diff)
CURLOPT_CAPATH: return failure if set without backend support
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 67126ab35..b4d4a3919 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1991,6 +1991,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
va_arg(param, char *));
break;
case CURLOPT_CAPATH:
+#ifdef have_ca_path /* not supported by all backends */
/*
* Set CA path info for SSL connection. Specify directory name of the CA
* certificates which have been prepared using openssl c_rehash utility.
@@ -1998,6 +1999,9 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option,
/* This does not work on windows. */
result = setstropt(&data->set.str[STRING_SSL_CAPATH],
va_arg(param, char *));
+#else
+ result = CURLE_NOT_BUILT_IN;
+#endif
break;
case CURLOPT_CRLFILE:
/*