aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2012-10-12 17:43:32 +0200
committerAndreas Schneider <asn@cryptomilk.org>2012-10-12 17:46:37 +0200
commit95ab34696bbf3948a6c478f18b3e72c71539cd2e (patch)
treecf8ec8ffb58c221518262460acd28bf1413ae61b /include/libssh
parent82711acd39e38b5f9fb128445dc95e280de9c7b6 (diff)
downloadlibssh-95ab34696bbf3948a6c478f18b3e72c71539cd2e.tar.gz
libssh-95ab34696bbf3948a6c478f18b3e72c71539cd2e.tar.xz
libssh-95ab34696bbf3948a6c478f18b3e72c71539cd2e.zip
kex: Use getter functions to access kex arrays.
This should fix the build on OpenIndiana.
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/kex.h5
1 files changed, 2 insertions, 3 deletions
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_ */