aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorOkhin Vasilij <OkhinVI@gmail.com>2016-11-25 16:27:22 +0700
committerDaniel Stenberg <daniel@haxx.se>2016-11-26 17:28:53 +0100
commita4b2f7aafde33c2ab810adb6c3d119c9a0b824e7 (patch)
treeaad341f638c47257403729f86cf54834147431fb /lib/url.c
parente38fe7abbf127c50b846a4456835dd2c1be631a5 (diff)
curl_version_info: add CURL_VERSION_HTTPS_PROXY
Closes #1142
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index 675d7ee57..c1c3a931b 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -4924,6 +4924,14 @@ static CURLcode parse_proxy(struct Curl_easy *data,
else
proxyptr = proxy; /* No xxx:// head: It's a HTTP proxy */
+#ifndef HTTPS_PROXY_SUPPORT
+ if(proxytype == CURLPROXY_HTTPS) {
+ failf(data, "Unsupported proxy \'%s\'"
+ ", libcurl is built without the HTTPS-proxy support.", proxy);
+ return CURLE_NOT_BUILT_IN;
+ }
+#endif
+
sockstype = proxytype == CURLPROXY_SOCKS5_HOSTNAME ||
proxytype == CURLPROXY_SOCKS5 ||
proxytype == CURLPROXY_SOCKS4A ||