easy:SetOpt_SSH_HostKeyFunction(keycallback[, userdata])
#CURLOPT_SSH_KNOWNHOSTS
.
The callback function looks like this:
res = keycallback(type, key[, userdata]) |
Here is a description of the callback parameters:
type
key
userdata
userdata
argument, the value you pass in userdata
will be passed to your callback function as
a this parameter. The userdata
parameter can be of any type.
The callback MUST return one of the following return codes to tell libcurl how to act:
#CURLKHMATCH_OK
#CURLKHMATCH_MISMATCH