aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2018-10-19 14:20:40 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-10-19 17:43:20 +0200
commitf622c4309b0ffe4679bd1b124638fc1bcddb5758 (patch)
tree88dca37cad36e79ea0797257ad5f8a179efbe258 /include/libssh
parentae6b0e0f4990421f15157510a1ed53788bf99bff (diff)
downloadlibssh-f622c4309b0ffe4679bd1b124638fc1bcddb5758.tar.gz
libssh-f622c4309b0ffe4679bd1b124638fc1bcddb5758.tar.xz
libssh-f622c4309b0ffe4679bd1b124638fc1bcddb5758.zip
knownhosts: Consult also the global known hosts file
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/knownhosts.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libssh/knownhosts.h b/include/libssh/knownhosts.h
index d40ca8d2..dcaa6c24 100644
--- a/include/libssh/knownhosts.h
+++ b/include/libssh/knownhosts.h
@@ -23,5 +23,9 @@
#define SSH_KNOWNHOSTS_H_
struct ssh_list *ssh_known_hosts_get_algorithms(ssh_session session);
+enum ssh_known_hosts_e
+ssh_session_get_known_hosts_entry_file(ssh_session session,
+ const char *filename,
+ struct ssh_knownhosts_entry **pentry);
#endif /* SSH_KNOWNHOSTS_H_ */