aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/kex.h
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-09-16 23:36:20 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2011-09-18 20:34:15 +0200
commit07abc3406df3b6b37471e10e495efb79003f5679 (patch)
tree73b635f912977b6d3cf5c8e3830d527eb3aef1ed /include/libssh/kex.h
parent1b10b175fcd5c6f205168434cc5f6aca51b1d298 (diff)
downloadlibssh-07abc3406df3b6b37471e10e495efb79003f5679.tar.gz
libssh-07abc3406df3b6b37471e10e495efb79003f5679.tar.xz
libssh-07abc3406df3b6b37471e10e495efb79003f5679.zip
kex: split key selection and sending
Diffstat (limited to 'include/libssh/kex.h')
-rw-r--r--include/libssh/kex.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/libssh/kex.h b/include/libssh/kex.h
index ce2a102b..dbf69ab9 100644
--- a/include/libssh/kex.h
+++ b/include/libssh/kex.h
@@ -25,6 +25,13 @@
#include "libssh/priv.h"
#include "libssh/callbacks.h"
+#define SSH_KEX_METHODS 10
+
+typedef struct ssh_kex_struct {
+ unsigned char cookie[16];
+ char *methods[SSH_KEX_METHODS];
+} KEX;
+
SSH_PACKET_CALLBACK(ssh_packet_kexinit);
#ifdef WITH_SSH1
SSH_PACKET_CALLBACK(ssh_packet_publickey1);