remove dependency on zlib.h

svn path=/trunk/; revision=21370
This commit is contained in:
Richard van der Hoff 2007-04-10 17:57:47 +00:00
parent 901b6d1c55
commit 5851b8aa40
2 changed files with 14 additions and 10 deletions

View File

@ -34,6 +34,19 @@
#include <epan/emem.h>
/* we keep this internal to packet-ssl-utils, as there should be
no need to access it any other way.
This also allows us to hide the dependency on zlib.
*/
struct _SslDecompress {
gint compression;
#ifdef HAVE_LIBZ
z_stream istream;
#endif
};
static gint ver_major, ver_minor, ver_patch;
void

View File

@ -29,10 +29,6 @@
#include <epan/gnuc_format_check.h>
#include <epan/value_string.h>
#ifdef HAVE_LIBZ
#include <zlib.h>
#endif
#ifdef HAVE_LIBGNUTLS
#ifdef _WIN32
#include <winposixtype.h>
@ -591,12 +587,7 @@ typedef struct _SslFlow {
emem_tree_t *multisegment_pdus;
} SslFlow;
typedef struct _SslDecompress {
gint compression;
#ifdef HAVE_LIBZ
z_stream istream;
#endif
} SslDecompress;
typedef struct _SslDecompress SslDecompress;
typedef struct _SslDecoder {
SslCipherSuite* cipher_suite;