diff options
author | Okhin Vasilij <OkhinVI@gmail.com> | 2016-11-25 16:27:22 +0700 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-11-26 17:28:53 +0100 |
commit | a4b2f7aafde33c2ab810adb6c3d119c9a0b824e7 (patch) | |
tree | aad341f638c47257403729f86cf54834147431fb /lib/url.c | |
parent | e38fe7abbf127c50b846a4456835dd2c1be631a5 (diff) |
curl_version_info: add CURL_VERSION_HTTPS_PROXY
Closes #1142
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 || |