diff options
author | Simon Josefsson <simon@josefsson.org> | 2008-09-19 08:04:54 +0200 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2008-09-19 08:04:54 +0200 |
commit | b64e11fdc1deab66b8e0c5334fbb8c7eb1d8eb56 (patch) | |
tree | 4b9ec90b1fa976011ff8f0eb65dc5bc7dd91f874 /lib | |
parent | 6f9e0c1090189e9e39e1820f2e2bda5de5f5d078 (diff) | |
download | gnutls-b64e11fdc1deab66b8e0c5334fbb8c7eb1d8eb56.tar.gz |
Make LZO compression support build.
Tiny patch from Arfrever Frehtes Taifersar Arahesis
<arfrever.fta@gmail.com>.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gnutls_compress.c | 13 | ||||
-rw-r--r-- | lib/gnutls_compress.h | 14 |
2 files changed, 14 insertions, 13 deletions
diff --git a/lib/gnutls_compress.c b/lib/gnutls_compress.c index 38570e1ec3..038ac57232 100644 --- a/lib/gnutls_compress.c +++ b/lib/gnutls_compress.c @@ -89,19 +89,6 @@ _gnutls_m_compressed2plaintext (gnutls_session_t session, #define MAX_COMP_METHODS 5 const int _gnutls_comp_algorithms_size = MAX_COMP_METHODS; -struct gnutls_compression_entry -{ - const char *name; - gnutls_compression_method_t id; - int num; /* the number reserved in TLS for the specific compression method */ - - /* used in zlib compressor */ - int window_bits; - int mem_level; - int comp_level; -}; -typedef struct gnutls_compression_entry gnutls_compression_entry; - gnutls_compression_entry _gnutls_compression_algorithms[MAX_COMP_METHODS] = { GNUTLS_COMPRESSION_ENTRY (GNUTLS_COMP_NULL, 0x00, 0, 0, 0), #ifdef HAVE_LIBZ diff --git a/lib/gnutls_compress.h b/lib/gnutls_compress.h index 789ceb85a0..8a3b2641c2 100644 --- a/lib/gnutls_compress.h +++ b/lib/gnutls_compress.h @@ -59,4 +59,18 @@ int _gnutls_decompress (comp_hd_t handle, opaque * compressed, int _gnutls_compress (comp_hd_t, const opaque * plain, size_t plain_size, opaque ** compressed, size_t max_comp_size); +struct gnutls_compression_entry +{ + const char *name; + gnutls_compression_method_t id; + /* the number reserved in TLS for the specific compression method */ + int num; + + /* used in zlib compressor */ + int window_bits; + int mem_level; + int comp_level; +}; +typedef struct gnutls_compression_entry gnutls_compression_entry; + #endif |