mirror of
https://github.com/curl/curl.git
synced 2026-06-08 10:24:15 +03:00
CURLOPT_USE_SSL.md drop cast, add note to history
This commit is contained in:
parent
9348e489a3
commit
398ef65d23
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue