From: Daniel Stenberg Date: Mon, 21 Feb 2011 12:51:26 +0000 (+0100) Subject: CURLOPT_SSH_KEYFUNCTION: requires *SSH_KNOWNHOSTS X-Git-Tag: curl-7_21_5~146 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=10cea49a467e4c0547ed2f827d7f86737892479c;p=curl CURLOPT_SSH_KEYFUNCTION: requires *SSH_KNOWNHOSTS Extend the docs to clarify that CURLOPT_SSH_KEYFUNCTION is only called if the known hosts option is also correctly set! --- diff --git a/docs/libcurl/curl_easy_setopt.3 b/docs/libcurl/curl_easy_setopt.3 index a94f40fcc..56a54a9db 100644 --- a/docs/libcurl/curl_easy_setopt.3 +++ b/docs/libcurl/curl_easy_setopt.3 @@ -2088,7 +2088,10 @@ behavior on host and key (mis)matching. (Added in 7.19.6) .IP CURLOPT_SSH_KEYFUNCTION Pass a pointer to a curl_sshkeycallback function. It gets called when the known_host matching has been done, to allow the application to act and decide -for libcurl how to proceed. It gets passed the CURL handle, the key from the +for libcurl how to proceed. The callback will only be called if +\fICURLOPT_SSH_KNOWNHOSTS\fP is also set. + +The curl_sshkeycallback function gets passed the CURL handle, the key from the known_hosts file, the key from the remote site, info from libcurl on the matching status and a custom pointer (set with \fICURLOPT_SSH_KEYDATA\fP). It MUST return one of the following return codes to tell libcurl how to act: