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/dh.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/dh.c')
-rw-r--r-- | libssh/dh.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libssh/dh.c b/libssh/dh.c index 1f1b20b..0142c8d 100644 --- a/libssh/dh.c +++ b/libssh/dh.c @@ -53,7 +53,6 @@ #include "libssh/crypto.h" #include "libssh/buffer.h" #include "libssh/session.h" -#include "libssh/options.h" #include "libssh/keys.h" #include "libssh/dh.h" @@ -1006,11 +1005,11 @@ int signature_verify(ssh_session session, ssh_string signature) { return -1; } - if (session->options->wanted_methods[SSH_HOSTKEYS]) { - if(!match(session->options->wanted_methods[SSH_HOSTKEYS],pubkey->type_c)) { + if (session->wanted_methods[SSH_HOSTKEYS]) { + if(!match(session->wanted_methods[SSH_HOSTKEYS],pubkey->type_c)) { ssh_set_error(session, SSH_FATAL, "Public key from server (%s) doesn't match user preference (%s)", - pubkey->type_c, session->options->wanted_methods[SSH_HOSTKEYS]); + pubkey->type_c, session->wanted_methods[SSH_HOSTKEYS]); publickey_free(pubkey); leave_function(); return -1; |