diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-09-22 13:17:35 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-09-22 13:17:35 +0200 |
commit | abe6c7c72884088c23887855645c5bf23fe0fe44 (patch) | |
tree | 30ed917c6d85d1fb1956a46db622e7999ef4518f /libssh | |
parent | f78045dfd364a546d475eea3f3f502a2e28b0bd8 (diff) | |
download | libssh-abe6c7c72884088c23887855645c5bf23fe0fe44.tar.gz libssh-abe6c7c72884088c23887855645c5bf23fe0fe44.tar.xz libssh-abe6c7c72884088c23887855645c5bf23fe0fe44.zip |
Use new options interface in server code.
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libssh/server.c b/libssh/server.c index 43b1d31b..84cd3e74 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; } } |