aboutsummaryrefslogtreecommitdiff
path: root/src/common/torgzip.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-10-13 22:48:09 +0000
committerNick Mathewson <nickm@torproject.org>2005-10-13 22:48:09 +0000
commit11b76b9ca5b39eeeb4fcff1593db2efe14cc5827 (patch)
tree6e35d52ca6f89c1c482a836f6064449781020bc3 /src/common/torgzip.h
parent8808b262068b6998a5be9dd6eabf50be82efe8a2 (diff)
downloadtor-11b76b9ca5b39eeeb4fcff1593db2efe14cc5827.tar
tor-11b76b9ca5b39eeeb4fcff1593db2efe14cc5827.tar.gz
Allow tor_gzip_uncompress to extract as much as possible from truncated compressed data. Also, fix a bug where truncated compressed data could break tor_gzip_uncompress. [This last part is a backport candidate.]
svn:r5247
Diffstat (limited to 'src/common/torgzip.h')
-rw-r--r--src/common/torgzip.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/torgzip.h b/src/common/torgzip.h
index 94aeceb5c..a70463be6 100644
--- a/src/common/torgzip.h
+++ b/src/common/torgzip.h
@@ -23,7 +23,8 @@ tor_gzip_compress(char **out, size_t *out_len,
int
tor_gzip_uncompress(char **out, size_t *out_len,
const char *in, size_t in_len,
- compress_method_t method);
+ compress_method_t method,
+ int complete_only);
int is_gzip_supported(void);