summaryrefslogtreecommitdiffhomepage
path: root/session.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-04-03 00:49:24 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-04-03 00:49:24 +0800
commit1a16da38d547276551f20c7a4320a79ae6ea41f3 (patch)
treee95f24bfc3716a909c5fd9681c6475ccabaa2b51 /session.h
parentf8a92d1eedbd3e01fb70efb02dad543cc1297570 (diff)
parentcbd3d5e3a535111b4cd6736d6aff432a252845d2 (diff)
merge kexguess branch
Diffstat (limited to 'session.h')
-rw-r--r--session.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/session.h b/session.h
index dd486f0..a76fa99 100644
--- a/session.h
+++ b/session.h
@@ -171,16 +171,11 @@ struct sshsession {
concluded (ie, while dataallowed was unset)*/
struct packetlist *reply_queue_head, *reply_queue_tail;
- algo_type*(*buf_match_algo)(buffer*buf, algo_type localalgos[],
- int *goodguess); /* The function to use to choose which algorithm
- to use from the ones presented by the remote
- side. Is specific to the client/server mode,
- hence the function-pointer callback.*/
-
void(*remoteclosed)(); /* A callback to handle closure of the
remote connection */
void(*extra_session_cleanup)(); /* client or server specific cleanup */
+ void(*send_kex_first_guess)();
struct AuthState authstate; /* Common amongst client and server, since most
struct elements are common */
@@ -245,6 +240,7 @@ typedef enum {
struct clientsession {
mp_int *dh_e, *dh_x; /* Used during KEX */
+ int dh_val_algo; /* KEX algorithm corresponding to current dh_e and dh_x */
cli_kex_state kex_state; /* Used for progressing KEX */
cli_state state; /* Used to progress auth/channelsession etc */
unsigned donefirstkex : 1; /* Set when we set sentnewkeys, never reset */