mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-01 11:50:11 -05:00
cmCTestCurl: Avoid using undocumented type for CURLOPT_PROXYTYPE values
Since upstream curl commit `1a12663d06` (CURLOPT: bump `CURLPROXY_*` enums to `long`, drop casts, 2025-07-28), the `CURLPROXY_*` constants are integer literals instead of `enum curl_proxytype`. It turns out that `curl_easy_setopt` has always expected a `long` anyway, and that `curl_proxytype` is not documented for public use. Fixes: #27178
This commit is contained in:
@@ -52,7 +52,7 @@ private:
|
|||||||
std::vector<std::string> HttpHeaders;
|
std::vector<std::string> HttpHeaders;
|
||||||
std::string HTTPProxyAuth;
|
std::string HTTPProxyAuth;
|
||||||
std::string HTTPProxy;
|
std::string HTTPProxy;
|
||||||
curl_proxytype HTTPProxyType;
|
long HTTPProxyType;
|
||||||
bool UseHttp10 = false;
|
bool UseHttp10 = false;
|
||||||
bool Quiet = false;
|
bool Quiet = false;
|
||||||
int TimeOutSeconds = 0;
|
int TimeOutSeconds = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user