diff options
author | Matt Johnston <matt@ucc.asn.au> | 2018-11-05 23:36:34 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2018-11-05 23:36:34 +0800 |
commit | 02ffdd09dc1941f7a924cde8db288fcd64987f59 (patch) | |
tree | 2f8bfd41d17f2f291bb0f65cff0cbbd00ef3b38e /dbutil.h | |
parent | 6f6ef4834c792f7ccf2409080a6adaf44b8f0d51 (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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |