aboutsummaryrefslogtreecommitdiff
path: root/src/options.c
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 /src/options.c
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 'src/options.c')
-rw-r--r--src/options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/options.c b/src/options.c
index d2580d8d..898dea62 100644
--- a/src/options.c
+++ b/src/options.c
@@ -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;
}