mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 17:18:20 +00:00
Initial import of svn+ssh:://svn.icir.org/bro/trunk/bro as of r7088
This commit is contained in:
commit
61757ac78b
1383 changed files with 380824 additions and 0 deletions
34
src/ZIP.h
Normal file
34
src/ZIP.h
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue