From f0b4db1ab0f803fdad576d77220434d04651db76 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 26 Jun 2017 18:05:38 +0200 Subject: vtls: move the SUPPORT_HTTPS_PROXY flag into the Curl_ssl struct That will allow us to choose the SSL backend at runtime. Signed-off-by: Johannes Schindelin --- lib/version.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/version.c') diff --git a/lib/version.c b/lib/version.c index 3d1776813..b1959dee1 100644 --- a/lib/version.c +++ b/lib/version.c @@ -323,9 +323,6 @@ static curl_version_info_data version_info = { #endif #if defined(USE_LIBPSL) | CURL_VERSION_PSL -#endif -#if defined(HTTPS_PROXY_SUPPORT) - | CURL_VERSION_HTTPS_PROXY #endif , NULL, /* ssl_version */ @@ -355,6 +352,10 @@ curl_version_info_data *curl_version_info(CURLversion stamp) #ifdef USE_SSL Curl_ssl_version(ssl_buffer, sizeof(ssl_buffer)); version_info.ssl_version = ssl_buffer; + if(Curl_ssl->support_https_proxy) + version_info.features |= CURL_VERSION_HTTPS_PROXY; + else + version_info.features &= ~CURL_VERSION_HTTPS_PROXY; #endif #ifdef HAVE_LIBZ -- cgit v1.2.3