aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libssh/bind.h3
-rw-r--r--include/libssh/session.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/include/libssh/bind.h b/include/libssh/bind.h
index 4ca23760..6b5f19dd 100644
--- a/include/libssh/bind.h
+++ b/include/libssh/bind.h
@@ -22,6 +22,7 @@
#define BIND_H_
#include "libssh/priv.h"
+#include "libssh/kex.h"
#include "libssh/session.h"
struct ssh_bind_struct {
@@ -31,7 +32,7 @@ struct ssh_bind_struct {
struct ssh_poll_handle_struct *poll;
/* options */
- char *wanted_methods[10];
+ char *wanted_methods[SSH_KEX_METHODS];
char *banner;
char *ecdsakey;
char *dsakey;
diff --git a/include/libssh/session.h b/include/libssh/session.h
index af02237d..22256150 100644
--- a/include/libssh/session.h
+++ b/include/libssh/session.h
@@ -213,7 +213,7 @@ struct ssh_session_struct {
char *sshdir;
char *knownhosts;
char *global_knownhosts;
- char *wanted_methods[10];
+ char *wanted_methods[SSH_KEX_METHODS];
char *pubkey_accepted_types;
char *ProxyCommand;
char *custombanner;