1 /* Copyright 2003 Roger Dingledine
2 * Copyright 2004-2005 Roger Dingledine, Nick Mathewson */
3 /* See LICENSE for licensing information */
8 * \brief Headers for torgzip.h
13 #define TORGZIP_H_ID "$Id$"
16 GZIP_METHOD
=1, ZLIB_METHOD
=2, UNKNOWN_METHOD
=3
20 tor_gzip_compress(char **out
, size_t *out_len
,
21 const char *in
, size_t in_len
,
22 compress_method_t method
);
24 tor_gzip_uncompress(char **out
, size_t *out_len
,
25 const char *in
, size_t in_len
,
26 compress_method_t method
,
29 int is_gzip_supported(void);
31 int detect_compression_method(const char *in
, size_t in_len
);