mirror of
https://github.com/curl/curl.git
synced 2026-06-09 00:04:15 +03:00
CURLOPT_SSH_AUTH_TYPES.md add history, drop cast
This commit is contained in:
parent
db28a94097
commit
461ab6c11b
1 changed files with 6 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ int main(void)
|
|||
if(curl) {
|
||||
CURLcode res;
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "sftp://example.com/file");
|
||||
curl_easy_setopt(curl, CURLOPT_SSH_AUTH_TYPES, (long)
|
||||
curl_easy_setopt(curl, CURLOPT_SSH_AUTH_TYPES,
|
||||
CURLSSH_AUTH_PUBLICKEY | CURLSSH_AUTH_KEYBOARD);
|
||||
res = curl_easy_perform(curl);
|
||||
curl_easy_cleanup(curl);
|
||||
|
|
@ -60,6 +60,11 @@ int main(void)
|
|||
}
|
||||
~~~
|
||||
|
||||
# HISTORY
|
||||
|
||||
**CURLSSH_AUTH_*** macros became `long` types in 8.16.0, prior to this version
|
||||
a `long` cast was necessary when passed to curl_easy_setopt(3).
|
||||
|
||||
# %AVAILABILITY%
|
||||
|
||||
# RETURN VALUE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue