← Commit list

60cd4815fd

Daniel Stenberg
Daniel Stenberg
2026-05-16
SUCCESS Duration: 230s

Subject

CURLOPT_SSH_HOSTKEYFUNCTION.md: for new connections only

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

docs/libcurl/opts/CURLOPT_SSH_HOSTKEYFUNCTION.md+6 -3
@@ -38,12 +38,15 @@ shown above. It overrides CURLOPT_SSH_KNOWNHOSTS(3).
This callback gets called when the verification of the SSH host key is needed.
-**key** is **keylen** bytes long and is the key to check. **keytype**
-says what type it is, from the **CURLKHTYPE_*** series in the
-**curl_khtype** enum.
+**key** is **keylen** bytes long and is the key to check. **keytype** says
+what type it is, from the **CURLKHTYPE_*** series in the **curl_khtype** enum.
**clientp** is a custom pointer set with CURLOPT_SSH_HOSTKEYDATA(3).
+This option is used to verify new SSH connections only. Once the connection
+has been vetted by this callback it is deemed vetted and may be reused again
+without invoking this callback again.
+
The callback must return one of the following return codes to tell libcurl how
to act: