CURLOPT_SSL_OPTIONS.md drop cast, add note to history

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

View file

@ -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