CURLOPT_USE_SSL.md drop cast, add note to history

This commit is contained in:
Viktor Szakats 2025-08-01 13:32:51 +02:00
parent 9348e489a3
commit 398ef65d23
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -71,7 +71,7 @@ int main(void)
curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/dir/file.ext");
/* require use of SSL for this, or fail */
curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL);
curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_ALL);
/* Perform the request */
curl_easy_perform(curl);
@ -84,6 +84,9 @@ int main(void)
This option was known as CURLOPT_FTP_SSL up to 7.16.4. Supported by LDAP since
7.81.0. Fully supported by the OpenLDAP backend only.
CURLUSESSL_\* enums became `long` types in 8.13.0, prior to this version
a `long` cast is necessary when passing to curl_easy_setopt(3).
# %AVAILABILITY%
# RETURN VALUE