aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-07-18 23:45:40 -0400
committerNick Mathewson <nickm@torproject.org>2015-01-07 10:05:55 -0500
commit7984fc153112baa5c370215f2205025a7648d7b4 (patch)
tree75aefda08013f19fb2345d27d4f65890afb4299c /src/common/util.h
parent9b11dc36179e48bd39e57a9f3e0e26a25f50adfa (diff)
downloadtor-7984fc153112baa5c370215f2205025a7648d7b4.tar.gz
tor-7984fc153112baa5c370215f2205025a7648d7b4.zip
Stop accepting milliseconds in various directory contexts
Have clients and authorities both have new behavior, since the fix for bug 11243 has gone in. But make clients still accept accept old bogus HSDir descriptors, to avoid fingerprinting trickery. Fixes bug 9286.
Diffstat (limited to 'src/common/util.h')
-rw-r--r--src/common/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 921dd79da0..a3a79a928d 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -270,6 +270,7 @@ void format_local_iso_time(char *buf, time_t t);
void format_iso_time(char *buf, time_t t);
void format_iso_time_nospace(char *buf, time_t t);
void format_iso_time_nospace_usec(char *buf, const struct timeval *tv);
+int parse_iso_time_(const char *cp, time_t *t, int strict);
int parse_iso_time(const char *buf, time_t *t);
int parse_http_time(const char *buf, struct tm *tm);
int format_time_interval(char *out, size_t out_len, long interval);