commit 518fce5e1e524e2647491ca03dbf6663d0da8cb8 Author: Vinod Yegneswaran vinod@csl.sri.com Date: Tue Nov 15 07:58:08 2011 +0000
enabled pdf
git-svn-id: svn+ssh://spartan.csl.sri.com/svn/private/DEFIANCE@144 a58ff0ac-194c-e011-a152-003048836090 --- src/steg/payloads.c | 3 ++- src/steg/x_http2.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/steg/payloads.c b/src/steg/payloads.c index 83487c5..2b82451 100644 --- a/src/steg/payloads.c +++ b/src/steg/payloads.c @@ -577,7 +577,8 @@ unsigned int find_client_payload(char* buf, int len, int type) { inbuf = payloads[r]; if (find_uri_type(inbuf, p->length) != HTTP_CONTENT_SWF && find_uri_type(inbuf, p->length) != HTTP_CONTENT_HTML && - find_uri_type(inbuf, p->length) != HTTP_CONTENT_JAVASCRIPT) { + find_uri_type(inbuf, p->length) != HTTP_CONTENT_JAVASCRIPT && + find_uri_type(inbuf, p->length) != HTTP_CONTENT_PDF) { goto next; } if (p->length > len) { diff --git a/src/steg/x_http2.c b/src/steg/x_http2.c index e714305..7377196 100644 --- a/src/steg/x_http2.c +++ b/src/steg/x_http2.c @@ -159,7 +159,7 @@ x_http2_new(rng_t *rng, unsigned int is_clientside) init_JS_payload_pool(HTTP_MSG_BUF_SIZE, TYPE_HTTP_RESPONSE, JS_MIN_AVAIL_SIZE); // init_JS_payload_pool(HTTP_MSG_BUF_SIZE, TYPE_HTTP_RESPONSE, JS_MIN_AVAIL_SIZE, HTTP_CONTENT_HTML); init_HTML_payload_pool(HTTP_MSG_BUF_SIZE, TYPE_HTTP_RESPONSE, HTML_MIN_AVAIL_SIZE); - // init_PDF_payload_pool(HTTP_MSG_BUF_SIZE, TYPE_HTTP_RESPONSE, PDF_MIN_AVAIL_SIZE); + init_PDF_payload_pool(HTTP_MSG_BUF_SIZE, TYPE_HTTP_RESPONSE, PDF_MIN_AVAIL_SIZE); init_SWF_payload_pool(HTTP_MSG_BUF_SIZE, TYPE_HTTP_RESPONSE, 0); }
tor-commits@lists.torproject.org