1
0
mirror of https://github.com/libssh2/libssh2.git synced 2026-01-06 14:21:57 +03:00

Ben Kibbey added a type parameter to the libssh2_session_hostkey() function,

which hasn't yet been in a public release so changing the API is fine!
This commit is contained in:
Daniel Stenberg
2009-07-07 00:25:17 +02:00
parent 75bec57c94
commit 5b599fbf40
4 changed files with 39 additions and 4 deletions

View File

@@ -86,6 +86,7 @@ int main(int argc, char *argv[])
int bytecount = 0;
size_t len;
LIBSSH2_KNOWNHOSTS *nh;
int type;
#ifdef WIN32
WSADATA wsadata;
@@ -154,7 +155,7 @@ int main(int argc, char *argv[])
libssh2_knownhost_writefile(nh, "dumpfile",
LIBSSH2_KNOWNHOST_FILE_OPENSSH);
fingerprint = libssh2_session_hostkey(session, &len);
fingerprint = libssh2_session_hostkey(session, &len, &type);
if(fingerprint) {
struct libssh2_knownhost *host;
int check = libssh2_knownhost_check(nh, (char *)hostname,