[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tlsdate/debian-master] move defines into the proper header
commit 7bee41df971fbb325d8eda6a4c4671aa4af9f44c
Author: Jacob Appelbaum <jacob@xxxxxxxxxxxxx>
Date: Wed Oct 30 17:58:26 2013 +0100
move defines into the proper header
---
src/tlsdate-helper.c | 8 --------
src/tlsdate-helper.h | 10 ++++++++++
2 files changed, 10 insertions(+), 8 deletions(-)
diff --git a/src/tlsdate-helper.c b/src/tlsdate-helper.c
index dc65c77..cec6fbe 100644
--- a/src/tlsdate-helper.c
+++ b/src/tlsdate-helper.c
@@ -312,8 +312,6 @@ handle_date_line(const char *dateline, uint32_t *result)
return 1;
}
-#define MAX_HTTP_HEADERS_SIZE 8192
-
static int
read_http_date_from_bio(BIO *bio, uint32_t *result)
{
@@ -924,12 +922,6 @@ inspect_key (SSL *ssl, const char *hostname)
}
#endif
-#define HTTP_REQUEST \
- "HEAD / HTTP/1.1\r\n" \
- "User-Agent: %s\r\n" \
- "Host: %s\r\n" \
- "\r\n"
-
#ifdef USE_POLARSSL
void
check_timestamp (uint32_t server_time)
diff --git a/src/tlsdate-helper.h b/src/tlsdate-helper.h
index 7b6e181..8b44b47 100644
--- a/src/tlsdate-helper.h
+++ b/src/tlsdate-helper.h
@@ -92,6 +92,16 @@ int verbose;
// Define a max length for the HTTP Date: header
#define MAX_DATE_LINE_LEN 32
+// Define a max length for HTTP headers
+#define MAX_HTTP_HEADERS_SIZE 8192
+
+// Define our basic HTTP request
+#define HTTP_REQUEST \
+ "HEAD / HTTP/1.1\r\n" \
+ "User-Agent: %s\r\n" \
+ "Host: %s\r\n" \
+ "\r\n"
+
static int ca_racket;
static const char *host;
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits