summaryrefslogtreecommitdiffhomepage
path: root/dbutil.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2018-11-05 23:36:34 +0800
committerMatt Johnston <matt@ucc.asn.au>2018-11-05 23:36:34 +0800
commit02ffdd09dc1941f7a924cde8db288fcd64987f59 (patch)
tree2f8bfd41d17f2f291bb0f65cff0cbbd00ef3b38e /dbutil.h
parent6f6ef4834c792f7ccf2409080a6adaf44b8f0d51 (diff)
- Add adaptive authentication failure delay
- Rework monotonic_now/gettime_wrapper and use clock_gettime on more platforms
Diffstat (limited to 'dbutil.h')
-rw-r--r--dbutil.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/dbutil.h b/dbutil.h
index 7cb9d68..2a1c82c 100644
--- a/dbutil.h
+++ b/dbutil.h
@@ -83,6 +83,8 @@ int constant_time_memcmp(const void* a, const void *b, size_t n);
/* Returns a time in seconds that doesn't go backwards - does not correspond to
a real-world clock */
time_t monotonic_now(void);
+/* Higher resolution clock_gettime(CLOCK_MONOTONIC) wrapper */
+void gettime_wrapper(struct timespec *now);
char * expand_homedir_path(const char *inpath);