kex: Use getter functions to access kex arrays.

This should fix the build on OpenIndiana.
This commit is contained in:
Andreas Schneider
2012-10-12 17:43:32 +02:00
parent 82711acd39
commit 95ab34696b
4 changed files with 25 additions and 10 deletions

View File

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