summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/misc.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2013-06-01 13:15:53 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2013-06-01 13:15:53 +0000
commit7b2d9878fb7c502fab51455a123deeecfc473f44 (patch)
tree28d529e879261504c735a5adf453da9f92c6fc00 /usr.bin/ssh/misc.h
parentbee2d235f4db3d647c2a28b360f74410b2e678b2 (diff)
Use clock_gettime(CLOCK_MONOTONIC ...) for ssh timers so that things like
keepalives and rekeying will work properly over clock steps. Suggested by markus@, "looks good" djm@.
Diffstat (limited to 'usr.bin/ssh/misc.h')
-rw-r--r--usr.bin/ssh/misc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/misc.h b/usr.bin/ssh/misc.h
index d3b9dbec5cb..45e06c88a6c 100644
--- a/usr.bin/ssh/misc.h
+++ b/usr.bin/ssh/misc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.h,v 1.48 2011/03/29 18:54:17 stevesk Exp $ */
+/* $OpenBSD: misc.h,v 1.49 2013/06/01 13:15:52 dtucker Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -35,6 +35,7 @@ char *tohex(const void *, size_t);
void sanitise_stdfd(void);
void ms_subtract_diff(struct timeval *, int *);
void ms_to_timeval(struct timeval *, int);
+time_t monotime(void);
struct passwd *pwcopy(struct passwd *);
const char *ssh_gai_strerror(int);