diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-10-02 14:06:41 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-10-02 20:26:14 +0200 |
commit | ab5b4c7cfe668ee4103de146c2a739532abfc416 (patch) | |
tree | ec30d19a18400dbfa0f94bf90262d2c439c724aa /libssh/kex.c | |
parent | e78334688fa510a5c859b0367d4d4779efae518a (diff) | |
download | libssh-ab5b4c7cfe668ee4103de146c2a739532abfc416.tar.gz libssh-ab5b4c7cfe668ee4103de146c2a739532abfc416.tar.xz libssh-ab5b4c7cfe668ee4103de146c2a739532abfc416.zip |
Get rid of the options structure.
Diffstat (limited to 'libssh/kex.c')
-rw-r--r-- | libssh/kex.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libssh/kex.c b/libssh/kex.c index d8d5b849..8823fbc4 100644 --- a/libssh/kex.c +++ b/libssh/kex.c @@ -38,7 +38,6 @@ #include "libssh/packet.h" #include "libssh/session.h" #include "libssh/wrapper.h" -#include "libssh/options.h" #include "libssh/keys.h" #include "libssh/dh.h" @@ -339,7 +338,6 @@ void ssh_list_kex(ssh_session session, KEX *kex) { int set_kex(ssh_session session){ KEX *server = &session->server_kex; KEX *client=&session->client_kex; - ssh_options options=session->options; int i; const char *wanted; enter_function(); @@ -352,7 +350,7 @@ int set_kex(ssh_session session){ } memset(client->methods,0,10*sizeof(char **)); for (i=0;i<10;i++){ - if(!(wanted=options->wanted_methods[i])) + if(!(wanted=session->wanted_methods[i])) wanted=default_methods[i]; client->methods[i]=ssh_find_matching(server->methods[i],wanted); if(!client->methods[i] && i < SSH_LANG_C_S){ |