knownhosts: Consult also the global known hosts file

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit f622c4309b)
This commit is contained in:
Jakub Jelen
2018-10-19 14:20:40 +02:00
committed by Andreas Schneider
parent d877969db3
commit ec3fdb434c
2 changed files with 110 additions and 16 deletions

View File

@@ -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_ */