1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-14 04:18:54 +03:00

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

@@ -127,7 +127,7 @@ static int server_set_kex(ssh_session session) {
for (i = 0; i < 10; i++) {
if ((wanted = session->opts.wanted_methods[i]) == NULL) {
wanted = supported_methods[i];
wanted = ssh_kex_get_supported_method(i);
}
server->methods[i] = strdup(wanted);
if (server->methods[i] == NULL) {