mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
0831823763
svn:r4382
34 lines
764 B
C
34 lines
764 B
C
/* Copyright 2003 Roger Dingledine
|
|
* Copyright 2004-2005 Roger Dingledine, Nick Mathewson */
|
|
/* See LICENSE for licensing information */
|
|
/* $Id$ */
|
|
|
|
/**
|
|
* \file torgzip.h
|
|
* \brief Headers for torgzip.h
|
|
**/
|
|
|
|
#ifndef __TORGZIP_H
|
|
#define __TORGZIP_H
|
|
#define TORGZIP_H_ID "$Id$"
|
|
|
|
typedef enum {
|
|
GZIP_METHOD=1, ZLIB_METHOD=2, UNKNOWN_METHOD=3
|
|
} compress_method_t;
|
|
|
|
int
|
|
tor_gzip_compress(char **out, size_t *out_len,
|
|
const char *in, size_t in_len,
|
|
compress_method_t method);
|
|
int
|
|
tor_gzip_uncompress(char **out, size_t *out_len,
|
|
const char *in, size_t in_len,
|
|
compress_method_t method);
|
|
|
|
int is_gzip_supported(void);
|
|
|
|
int detect_compression_method(const char *in, size_t in_len);
|
|
|
|
#endif
|
|
|