]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Note limitation of parse_rfc_1123_time
authorNick Mathewson <nickm@torproject.org>
Fri, 23 Nov 2012 15:06:16 +0000 (10:06 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 23 Nov 2012 15:06:16 +0000 (10:06 -0500)
RFC1123 suggests that we should handle two-year times, and a full
range of time zones, and other stuff too.  We don't.

src/common/util.c

index 44cdd64d6b9d8cf9bc30073e18ca00ef2a5b04d0..61d09aa4a8dc6e58a990a3d6ae6047e3e2e23bd6 100644 (file)
@@ -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