From a4b2f7aafde33c2ab810adb6c3d119c9a0b824e7 Mon Sep 17 00:00:00 2001 From: Okhin Vasilij Date: Fri, 25 Nov 2016 16:27:22 +0700 Subject: curl_version_info: add CURL_VERSION_HTTPS_PROXY Closes #1142 --- lib/url.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/url.c') 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 || -- cgit v1.2.3