summaryrefslogtreecommitdiffhomepage
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
commitb4bcc606576dab755441da1bc2fbe28041d54b06 (patch)
treeef133e658f2c87f8cc154a1a8935f2615a60b475 /kex.h
parent5139bd42f6700333ddfdcdb125e838d10eeaacf4 (diff)
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) --HG-- branch : ecc
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;