Mercurial > dropbear
comparison dbutil.h @ 1622:e11ed628708b
- Add adaptive authentication failure delay
- Rework monotonic_now/gettime_wrapper and use clock_gettime on more platforms
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Mon, 05 Nov 2018 23:36:34 +0800 |
parents | 60fceff95858 |
children | 90ac15aeac43 |
comparison
equal
deleted
inserted
replaced
1621:8cdabd7d34aa | 1622:e11ed628708b |
---|---|
81 int constant_time_memcmp(const void* a, const void *b, size_t n); | 81 int constant_time_memcmp(const void* a, const void *b, size_t n); |
82 | 82 |
83 /* Returns a time in seconds that doesn't go backwards - does not correspond to | 83 /* Returns a time in seconds that doesn't go backwards - does not correspond to |
84 a real-world clock */ | 84 a real-world clock */ |
85 time_t monotonic_now(void); | 85 time_t monotonic_now(void); |
86 /* Higher resolution clock_gettime(CLOCK_MONOTONIC) wrapper */ | |
87 void gettime_wrapper(struct timespec *now); | |
86 | 88 |
87 char * expand_homedir_path(const char *inpath); | 89 char * expand_homedir_path(const char *inpath); |
88 | 90 |
89 void fsync_parent_dir(const char* fn); | 91 void fsync_parent_dir(const char* fn); |
90 | 92 |