summaryrefslogtreecommitdiff
path: root/kex.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-03-29 00:28:09 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-03-29 00:28:09 +0800
commit92d78720daabce7e98b73975043179a4ac539755 (patch)
treef7451c741bb905a8ba0b54f9d2a8606dfeef7d51 /kex.h
parent2e09a5d54328e3573aa62d747dd89e094f382992 (diff)
downloaddropbear-92d78720daabce7e98b73975043179a4ac539755.tar.gz
More changes for KEX and ECDH. Set up hash descriptors, make ECC code work,
ses.hash and ses.session_id are now buffers (doesn't compile)
Diffstat (limited to 'kex.h')
-rw-r--r--kex.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/kex.h b/kex.h
index 57019ff..10b31c8 100644
--- a/kex.h
+++ b/kex.h
@@ -27,6 +27,7 @@
#include "includes.h"
#include "algo.h"
+#include "signkey.h"
void send_msg_kexinit();
void recv_msg_kexinit();
@@ -74,9 +75,9 @@ struct KEXState {
};
#define DH_P_1_LEN 128
-extern const const unsigned char dh_p_1[DH_P_1_LEN];
+extern const unsigned char dh_p_1[DH_P_1_LEN];
#define DH_P_14_LEN 256
-const unsigned char dh_p_14[DH_P_14_LEN] = {
+extern const unsigned char dh_p_14[DH_P_14_LEN];
struct kex_dh_param {
mp_int pub;