mirror of
https://github.com/curl/curl.git
synced 2026-08-02 02:30:27 +03:00
CURLOPT_SSL_OPTIONS.md drop cast, add note to history
This commit is contained in:
parent
4232931f1b
commit
7d189f806e
1 changed files with 6 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ int main(void)
|
|||
CURLcode res;
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
|
||||
/* weaken TLS only for use with silly servers */
|
||||
curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, (long)CURLSSLOPT_ALLOW_BEAST |
|
||||
curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, CURLSSLOPT_ALLOW_BEAST |
|
||||
CURLSSLOPT_NO_REVOKE);
|
||||
res = curl_easy_perform(curl);
|
||||
curl_easy_cleanup(curl);
|
||||
|
|
@ -130,6 +130,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