From ab5b4c7cfe668ee4103de146c2a739532abfc416 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 2 Oct 2009 14:06:41 +0200 Subject: Get rid of the options structure. --- libssh/dh.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libssh/dh.c') 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; -- cgit