summaryrefslogtreecommitdiffhomepage
path: root/session.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 /session.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 'session.h')
-rw-r--r--session.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/session.h b/session.h
index 6939536..91af1a3 100644
--- a/session.h
+++ b/session.h
@@ -154,10 +154,10 @@ struct sshsession {
struct KEXState kexstate;
struct key_context *keys;
struct key_context *newkeys;
- unsigned char *session_id; /* this is the hash from the first kex */
- /* The below are used temorarily during kex, are freed after use */
+ buffer *session_id; /* this is the hash from the first kex */
+ /* The below are used temporarily during kex, are freed after use */
mp_int * dh_K; /* SSH_MSG_KEXDH_REPLY and sending SSH_MSH_NEWKEYS */
- unsigned char hash[SHA1_HASH_SIZE]; /* the hash*/
+ buffer *hash/* the session hash */
buffer* kexhashbuf; /* session hash buffer calculated from various packets*/
buffer* transkexinit; /* the kexinit packet we send should be kept so we
can add it to the hash when generating keys */