/* * \file: app-layer-htp.h * \author Gurvinder Singh * * Created on November 14, 2009, 12:48 AM */ #ifndef __APP_LAYER_HTP_H__ #define __APP_LAYER_HTP_H__ #include #define HTP_FLAG_STATE_OPEN 0x01 /**< Flag to indicate that HTTP connection is open */ #define HTP_FLAG_STATE_CLOSED 0x02 /**< Flag to indicate that HTTP connection is closed */ #define HTP_FLAG_STATE_DATA 0x04 /**< Flag to indicate that HTTP connection needs more data */ #define HTP_FLAG_STATE_ERROR 0x08 /**< Flag to indicate that an error has been occured on HTTP connection */ typedef struct HtpState_ { htp_connp_t *connp; /**< Connection parser structure for each connection */ uint8_t flags; } HtpState; htp_cfg_t *cfg; /**< Config structure for HTP library */ void RegisterHTPParsers(void); void HTPParserRegisterTests(void); void HTPAtExitPrintStats(void); void HTPFreeConfig(void); #endif /* __APP_LAYER_HTP_H__ */