comparison common-kex.c @ 928:7cd89d4e0335

Add new monotonic_now() wrapper so that timeouts are unaffected by system clock changes
author Matt Johnston <matt@ucc.asn.au>
date Thu, 13 Mar 2014 23:50:09 +0800
parents 4a74c58e11fc
children ed85797bbc85
comparison
equal deleted inserted replaced
927:122fb3532038 928:7cd89d4e0335
268 ses.kexstate.datatrans = 0; 268 ses.kexstate.datatrans = 0;
269 ses.kexstate.datarecv = 0; 269 ses.kexstate.datarecv = 0;
270 270
271 ses.kexstate.our_first_follows_matches = 0; 271 ses.kexstate.our_first_follows_matches = 0;
272 272
273 ses.kexstate.lastkextime = time(NULL); 273 ses.kexstate.lastkextime = monotonic_now();
274 274
275 } 275 }
276 276
277 /* Helper function for gen_new_keys, creates a hash. It makes a copy of the 277 /* Helper function for gen_new_keys, creates a hash. It makes a copy of the
278 * already initialised hash_state hs, which should already have processed 278 * already initialised hash_state hs, which should already have processed