aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAnderson Toshiyuki Sasaki <ansasaki@redhat.com>2019-07-02 13:48:17 +0200
committerAnderson Toshiyuki Sasaki <ansasaki@redhat.com>2019-07-04 10:29:20 +0200
commit65a38759ca872e8bec0158ab3676e74b6afd336f (patch)
tree44a6060c5ecea9d686c1777a7a38fb7ed794cc92 /include
parent548753b3389518ebce98a7ddbf0640db3ad72de8 (diff)
downloadlibssh-65a38759ca872e8bec0158ab3676e74b6afd336f.tar.gz
libssh-65a38759ca872e8bec0158ab3676e74b6afd336f.tar.xz
libssh-65a38759ca872e8bec0158ab3676e74b6afd336f.zip
knownhosts: Introduced ssh_known_hosts_get_algorithms_names()
The added internal function obtain a newly allocated string containing a list of the signature types that can be generated by the keys present in the known_hosts files, separated by commas. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/libssh/knownhosts.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libssh/knownhosts.h b/include/libssh/knownhosts.h
index dcaa6c24..44e434c0 100644
--- a/include/libssh/knownhosts.h
+++ b/include/libssh/knownhosts.h
@@ -23,6 +23,7 @@
#define SSH_KNOWNHOSTS_H_
struct ssh_list *ssh_known_hosts_get_algorithms(ssh_session session);
+char *ssh_known_hosts_get_algorithms_names(ssh_session session);
enum ssh_known_hosts_e
ssh_session_get_known_hosts_entry_file(ssh_session session,
const char *filename,