mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
blocked sshkeycallback() with HAVE_LIBSSH2_KNOWNHOST_API to avoid compiler warnings.
This commit is contained in:
parent
77eba8727d
commit
2f6ff57d96
@ -434,6 +434,7 @@ static CURLcode ssh_getworkingpath(struct connectdata *conn,
|
||||
return CURLE_OK;
|
||||
}
|
||||
|
||||
#ifdef HAVE_LIBSSH2_KNOWNHOST_API
|
||||
static int sshkeycallback(CURL *easy,
|
||||
const struct curl_khkey *knownkey, /* known */
|
||||
const struct curl_khkey *foundkey, /* found */
|
||||
@ -448,6 +449,7 @@ static int sshkeycallback(CURL *easy,
|
||||
/* we only allow perfect matches, and we reject everything else */
|
||||
return (match != CURLKHMATCH_OK)?CURLKHSTAT_REJECT:CURLKHSTAT_FINE;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Earlier libssh2 versions didn't have the ability to seek to 64bit positions
|
||||
|
Loading…
Reference in New Issue
Block a user