mirror of
https://github.com/curl/curl.git
synced 2026-06-08 19:04:21 +03:00
CURLOPT_PROXY_SSLVERSION.md add history, drop cast
This commit is contained in:
parent
461ab6c11b
commit
bb1d7e934b
1 changed files with 6 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ int main(void)
|
|||
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
|
||||
|
||||
/* ask libcurl to use TLS version 1.0 or later */
|
||||
curl_easy_setopt(curl, CURLOPT_SSLVERSION, (long)CURL_SSLVERSION_TLSv1);
|
||||
curl_easy_setopt(curl, CURLOPT_SSLVERSION, CURL_SSLVERSION_TLSv1);
|
||||
|
||||
/* Perform the request */
|
||||
curl_easy_perform(curl);
|
||||
|
|
@ -124,6 +124,11 @@ int main(void)
|
|||
}
|
||||
~~~
|
||||
|
||||
# HISTORY
|
||||
|
||||
**CURL_SSLVERSION_*** macros became `long` types in 8.16.0, prior to this
|
||||
version a `long` cast was necessary when passed to curl_easy_setopt(3).
|
||||
|
||||
# %AVAILABILITY%
|
||||
|
||||
# RETURN VALUE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue