diff options
author | Gunter Knauf <gk@gknw.de> | 2009-07-23 02:15:00 +0000 |
---|---|---|
committer | Gunter Knauf <gk@gknw.de> | 2009-07-23 02:15:00 +0000 |
commit | 2f6ff57d965b11b32dcbe5a5aef950077bc6a551 (patch) | |
tree | 7dbcc23d97a54581cfba16ff3a0ca91d1b4dcdb0 /lib | |
parent | 77eba8727d1fdc178ced5fc3eddf4be760a29134 (diff) |
blocked sshkeycallback() with HAVE_LIBSSH2_KNOWNHOST_API to avoid compiler warnings.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssh.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |