Initial import of svn+ssh:://svn.icir.org/bro/trunk/bro as of r7088

This commit is contained in:
Robin Sommer 2010-09-27 20:42:30 -07:00
commit 61757ac78b
1383 changed files with 380824 additions and 0 deletions

34
src/ZIP.h Normal file
View file

@ -0,0 +1,34 @@
// $Id: ZIP.h,v 1.1.4.2 2006/05/31 21:49:29 sommer Exp $
//
// See the file "COPYING" in the main distribution directory for copyright.
#ifndef zip_h
#define zip_h
#include "config.h"
#ifdef HAVE_LIBZ
#include "zlib.h"
#include "TCP.h"
class ZIP_Analyzer : public TCP_SupportAnalyzer {
public:
enum Method { GZIP, DEFLATE };
ZIP_Analyzer(Connection* conn, bool orig, Method method = GZIP);
~ZIP_Analyzer();
virtual void Done();
virtual void DeliverStream(int len, const u_char* data, bool orig);
protected:
enum { NONE, ZIP_OK, ZIP_FAIL };
z_stream* zip;
int zip_status;
Method method;
};
#endif
#endif