CURLOPT_PROXY_SSL_OPTIONS.md drop cast, add note to history

This commit is contained in:
Viktor Szakats 2025-08-01 13:30:55 +02:00
parent 7d189f806e
commit 44834cd5ea
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -109,7 +109,7 @@ int main(void)
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
curl_easy_setopt(curl, CURLOPT_PROXY, "https://proxy");
/* weaken TLS only for use with silly proxies */
curl_easy_setopt(curl, CURLOPT_PROXY_SSL_OPTIONS, (long)
curl_easy_setopt(curl, CURLOPT_PROXY_SSL_OPTIONS,
CURLSSLOPT_ALLOW_BEAST | CURLSSLOPT_NO_REVOKE);
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
@ -117,6 +117,11 @@ int main(void)
}
~~~
# HISTORY
CURLSSLOPT_\* macros became `long` types in 8.15.0, prior to this version
a `long` cast is necessary when passing to curl_easy_setopt(3).
# %AVAILABILITY%
# RETURN VALUE