From abe6c7c72884088c23887855645c5bf23fe0fe44 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 22 Sep 2009 13:17:35 +0200 Subject: Use new options interface in server code. --- libssh/server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libssh') diff --git a/libssh/server.c b/libssh/server.c index 43b1d31..84cd3e7 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -287,16 +287,16 @@ static int server_set_kex(SSH_SESSION * session) { } if (session->dsa_key != NULL && session->rsa_key != NULL) { - if (ssh_options_set_wanted_algos(options, SSH_HOSTKEYS, + if (ssh_options_set(options, SSH_OPTIONS_SERVER_HOSTKEY, "ssh-dss,ssh-rsa") < 0) { return -1; } } else if (session->dsa_key != NULL) { - if (ssh_options_set_wanted_algos(options, SSH_HOSTKEYS, "ssh-dss") < 0) { + if (ssh_options_set(options, SSH_OPTIONS_SERVER_HOSTKEY, "ssh-dss") < 0) { return -1; } } else { - if (ssh_options_set_wanted_algos(options, SSH_HOSTKEYS, "ssh-rsa") < 0) { + if (ssh_options_set(options, SSH_OPTIONS_SERVER_HOSTKEY, "ssh-rsa") < 0) { return -1; } } -- cgit