From 461ab6c11b06e01a9378fc7bef7495bc273e56c6 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 1 Aug 2025 17:26:41 +0200 Subject: [PATCH] CURLOPT_SSH_AUTH_TYPES.md add history, drop cast --- docs/libcurl/opts/CURLOPT_SSH_AUTH_TYPES.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/libcurl/opts/CURLOPT_SSH_AUTH_TYPES.md b/docs/libcurl/opts/CURLOPT_SSH_AUTH_TYPES.md index 01ebd6f7a4..60a6025c8c 100644 --- a/docs/libcurl/opts/CURLOPT_SSH_AUTH_TYPES.md +++ b/docs/libcurl/opts/CURLOPT_SSH_AUTH_TYPES.md @@ -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