aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorStef Walter <stefw@redhat.com>2015-11-09 14:24:54 +0100
committerAndreas Schneider <asn@cryptomilk.org>2016-11-05 17:12:07 +0100
commit857ce2376eb82286461d39176fa51551a7bfaee7 (patch)
treef41eaf81c0b828be8f75f554c27c8ad1f8a75955 /include/libssh
parent1bf6c965e491e1851c8102dafa4a87c4deb085d9 (diff)
downloadlibssh-857ce2376eb82286461d39176fa51551a7bfaee7.tar.gz
libssh-857ce2376eb82286461d39176fa51551a7bfaee7.tar.xz
libssh-857ce2376eb82286461d39176fa51551a7bfaee7.zip
known_hosts: Add ssh_dump_knownhost() function
This works similarly to ssh_write_knownhost(), but allows the caller to get a line with the known_hosts line. BUG: https://red.libssh.org/issues/207 Signed-off-by: Stef Walter <stefw@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/libssh.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index 5b4d4efa..504a645a 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -671,6 +671,7 @@ LIBSSH_API int ssh_userauth_kbdint_setanswer(ssh_session session, unsigned int i
LIBSSH_API int ssh_userauth_gssapi(ssh_session session);
LIBSSH_API const char *ssh_version(int req_version);
LIBSSH_API int ssh_write_knownhost(ssh_session session);
+LIBSSH_API char *ssh_dump_knownhost(ssh_session session);
LIBSSH_API void ssh_string_burn(ssh_string str);
LIBSSH_API ssh_string ssh_string_copy(ssh_string str);