CURLOPT_FTPSSLAUTH.md drop cast, add note to history

This commit is contained in:
Viktor Szakats 2025-08-01 13:26:38 +02:00
parent d4f10b54ea
commit d629d53e8c
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -61,13 +61,18 @@ int main(void)
curl_easy_setopt(curl, CURLOPT_URL, "ftp://example.com/file.txt");
curl_easy_setopt(curl, CURLOPT_USE_SSL, CURLUSESSL_TRY);
/* funny server, ask for SSL before TLS */
curl_easy_setopt(curl, CURLOPT_FTPSSLAUTH, (long)CURLFTPAUTH_SSL);
curl_easy_setopt(curl, CURLOPT_FTPSSLAUTH, CURLFTPAUTH_SSL);
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
}
~~~
# HISTORY
CURLFTPAUTH_\* enums became `long` types in 8.16.0, prior to this version
a `long` cast is necessary when passing to curl_easy_setopt(3).
# %AVAILABILITY%
# RETURN VALUE