mirror of
https://github.com/curl/curl.git
synced 2026-08-24 18:23:33 +03:00
convert CURLFTPAUTH_* to long constants
This commit is contained in:
parent
36af5cceb1
commit
686d3fed2f
3 changed files with 7 additions and 6 deletions
|
|
@ -61,7 +61,7 @@ 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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue