mirror of
https://github.com/curl/curl.git
synced 2026-06-08 12:34:15 +03:00
CURLOPT_PROXY_SSL_OPTIONS.md drop cast, add note to history
This commit is contained in:
parent
7d189f806e
commit
44834cd5ea
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue