From 95ab34696bbf3948a6c478f18b3e72c71539cd2e Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 12 Oct 2012 17:43:32 +0200 Subject: kex: Use getter functions to access kex arrays. This should fix the build on OpenIndiana. --- include/libssh/kex.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/libssh') diff --git a/include/libssh/kex.h b/include/libssh/kex.h index 67a20061..2d8780ae 100644 --- a/include/libssh/kex.h +++ b/include/libssh/kex.h @@ -37,9 +37,6 @@ SSH_PACKET_CALLBACK(ssh_packet_kexinit); SSH_PACKET_CALLBACK(ssh_packet_publickey1); #endif -extern const char *supported_methods[]; -extern const char *ssh_kex_nums[]; - int ssh_send_kex(ssh_session session, int server_kex); void ssh_list_kex(ssh_session session, struct ssh_kex_struct *kex); int set_client_kex(ssh_session session); @@ -48,5 +45,7 @@ int verify_existing_algo(int algo, const char *name); char **space_tokenize(const char *chain); int ssh_get_kex1(ssh_session session); char *ssh_find_matching(const char *in_d, const char *what_d); +const char *ssh_kex_get_supported_method(uint32_t algo); +const char *ssh_kex_get_description(uint32_t algo); #endif /* KEX_H_ */ -- cgit