comparison session.h @ 640:76097ec1a29a dropbear-tfm

- Bring in original tomsfastmath patch against 0.52 from Peter Turczak in 2008
author Matt Johnston <matt@ucc.asn.au>
date Mon, 21 Nov 2011 19:19:57 +0800
parents a3748e54273c
children 2b1bb792cd4d
comparison
equal deleted inserted replaced
518:ce104c8b0be1 640:76097ec1a29a
162 struct KEXState kexstate; 162 struct KEXState kexstate;
163 struct key_context *keys; 163 struct key_context *keys;
164 struct key_context *newkeys; 164 struct key_context *newkeys;
165 unsigned char *session_id; /* this is the hash from the first kex */ 165 unsigned char *session_id; /* this is the hash from the first kex */
166 /* The below are used temorarily during kex, are freed after use */ 166 /* The below are used temorarily during kex, are freed after use */
167 mp_int * dh_K; /* SSH_MSG_KEXDH_REPLY and sending SSH_MSH_NEWKEYS */ 167 fp_int * dh_K; /* SSH_MSG_KEXDH_REPLY and sending SSH_MSH_NEWKEYS */
168 unsigned char hash[SHA1_HASH_SIZE]; /* the hash*/ 168 unsigned char hash[SHA1_HASH_SIZE]; /* the hash*/
169 buffer* kexhashbuf; /* session hash buffer calculated from various packets*/ 169 buffer* kexhashbuf; /* session hash buffer calculated from various packets*/
170 buffer* transkexinit; /* the kexinit packet we send should be kept so we 170 buffer* transkexinit; /* the kexinit packet we send should be kept so we
171 can add it to the hash when generating keys */ 171 can add it to the hash when generating keys */
172 172
241 SESSION_RUNNING 241 SESSION_RUNNING
242 } cli_state; 242 } cli_state;
243 243
244 struct clientsession { 244 struct clientsession {
245 245
246 mp_int *dh_e, *dh_x; /* Used during KEX */ 246 fp_int *dh_e, *dh_x; /* Used during KEX */
247 cli_kex_state kex_state; /* Used for progressing KEX */ 247 cli_kex_state kex_state; /* Used for progressing KEX */
248 cli_state state; /* Used to progress auth/channelsession etc */ 248 cli_state state; /* Used to progress auth/channelsession etc */
249 unsigned donefirstkex : 1; /* Set when we set sentnewkeys, never reset */ 249 unsigned donefirstkex : 1; /* Set when we set sentnewkeys, never reset */
250 250
251 int tty_raw_mode; /* Whether we're in raw mode (and have to clean up) */ 251 int tty_raw_mode; /* Whether we're in raw mode (and have to clean up) */