adns_str* etc.: Permit calling on adns_s_* values (not _max_) This is useful because otherwise an application may not use these values for its own errors, if that might result in them being passed to the adns_strerror etc. No code change: the table already has all the values. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
adns_str* etc.: Return NULL rather than crashing, and docs Previously, calling these functions with arbitrary values would cause them to do a struct member lookup on a null pointer. Now they return the pointer instead. Also, some users have been confused by the docs, and have passsed, for example, adns_s_max_misconfig. This is also not permitted. Clarify that only values actually returned by adns are allowed. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
time handling: Support use of CLOCK_MONOTONIC This involves a new initflag. And introducing a wrapper for gettimeofday(). Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> squash! time handling: Support use of CLOCK_MONOTONIC squash! time handling: Support use of CLOCK_MONOTONIC