[tor-commits] [tlsdate/debian-master] Define a max length for the HTTP Date: header

ioerror at torproject.org ioerror at torproject.org
Thu Oct 31 10:51:32 UTC 2013


commit df8cbc962d330c692dc1bac3ce11e8507787131b
Author: Ingy döt Net <ingy at ingy.net>
Date:   Wed Oct 30 16:21:06 2013 +0000

    Define a max length for the HTTP Date: header
---
 src/tlsdate-helper.h |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/tlsdate-helper.h b/src/tlsdate-helper.h
index 6890a88..7b6e181 100644
--- a/src/tlsdate-helper.h
+++ b/src/tlsdate-helper.h
@@ -89,6 +89,9 @@ int verbose;
 // To support our RFC 2595 wildcard verification
 #define RFC2595_MIN_LABEL_COUNT 3
 
+// Define a max length for the HTTP Date: header
+#define MAX_DATE_LINE_LEN 32
+
 static int ca_racket;
 
 static const char *host;





More information about the tor-commits mailing list