]>
Commit | Line | Data |
---|---|---|
07f7ba55 GS |
1 | /* |
2 | * \file: app-layer-htp.h | |
3 | * \author Gurvinder Singh <gurvindersinghdahiya@gmail.com> | |
4 | * | |
5 | * Created on November 14, 2009, 12:48 AM | |
6 | */ | |
7 | ||
48248687 VJ |
8 | #ifndef __APP_LAYER_HTP_H__ |
9 | #define __APP_LAYER_HTP_H__ | |
07f7ba55 GS |
10 | |
11 | #include <htp/htp.h> | |
12 | ||
0a85fd67 GS |
13 | #define HTP_FLAG_STATE_OPEN 0x01 /**< Flag to indicate that HTTP |
14 | connection is open */ | |
15 | #define HTP_FLAG_STATE_CLOSED 0x02 /**< Flag to indicate that HTTP | |
16 | connection is closed */ | |
17 | #define HTP_FLAG_STATE_DATA 0x04 /**< Flag to indicate that HTTP | |
18 | connection needs more data */ | |
19 | #define HTP_FLAG_STATE_ERROR 0x08 /**< Flag to indicate that an error | |
20 | has been occured on HTTP | |
21 | connection */ | |
fc2f7f29 | 22 | |
07f7ba55 | 23 | typedef struct HtpState_ { |
07f7ba55 GS |
24 | |
25 | htp_connp_t *connp; /**< Connection parser structure for each connection */ | |
fc2f7f29 | 26 | uint8_t flags; |
356a8bf3 | 27 | list_t *recent_in_tx; /**< Point to the new received HTTP request */ |
07f7ba55 GS |
28 | } HtpState; |
29 | ||
30 | htp_cfg_t *cfg; /**< Config structure for HTP library */ | |
31 | ||
32 | void RegisterHTPParsers(void); | |
33 | void HTPParserRegisterTests(void); | |
fc2f7f29 GS |
34 | void HTPAtExitPrintStats(void); |
35 | void HTPFreeConfig(void); | |
48248687 VJ |
36 | |
37 | #endif /* __APP_LAYER_HTP_H__ */ | |
07f7ba55 | 38 |