aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-11-23 10:06:16 -0500
committerNick Mathewson <nickm@torproject.org>2012-11-23 10:06:16 -0500
commit99669c69b3ad424c02393c97b48795eba6fb36bb (patch)
tree3fc81b773c54926a784c5480d450616ec04674b2 /src/common
parent864e15cd1c596b2a9dbc610d3aa78b49a4f33355 (diff)
downloadtor-99669c69b3ad424c02393c97b48795eba6fb36bb.tar
tor-99669c69b3ad424c02393c97b48795eba6fb36bb.tar.gz
Note limitation of parse_rfc_1123_time
RFC1123 suggests that we should handle two-year times, and a full range of time zones, and other stuff too. We don't.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/util.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 44cdd64d6..61d09aa4a 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -1408,6 +1408,9 @@ format_rfc1123_time(char *buf, time_t t)
/** Parse the (a subset of) the RFC1123 encoding of some time (in UTC) from
* <b>buf</b>, and store the result in *<b>t</b>.
*
+ * Note that we only accept the subset generated by format_rfc1123_time above,
+ * not the full range of formats suggested by RFC 1123.
+ *
* Return 0 on success, -1 on failure.
*/
int