1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +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

@@ -173,7 +173,7 @@ int ssh_options_set_algo(ssh_session session, int algo,
if (!verify_existing_algo(algo, list)) {
ssh_set_error(session, SSH_REQUEST_DENIED,
"Setting method: no algorithm for method \"%s\" (%s)\n",
ssh_kex_nums[algo], list);
ssh_kex_get_description(algo), list);
return -1;
}
@@ -1205,7 +1205,7 @@ static int ssh_bind_options_set_algo(ssh_bind sshbind, int algo,
if (!verify_existing_algo(algo, list)) {
ssh_set_error(sshbind, SSH_REQUEST_DENIED,
"Setting method: no algorithm for method \"%s\" (%s)\n",
ssh_kex_nums[algo], list);
ssh_kex_get_description(algo), list);
return -1;
}