]>
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 | ||
8 | #ifndef _APP_LAYER_HTP_H | |
9 | #define _APP_LAYER_HTP_H | |
10 | ||
11 | #include <htp/htp.h> | |
12 | ||
13 | typedef enum { | |
14 | HTTP_METHOD_UNKNOWN = 0, | |
15 | HTTP_METHOD_GET, | |
16 | HTTP_METHOD_POST, | |
17 | /** \todo more.. */ | |
18 | } HtpRequestMethod; | |
19 | ||
20 | typedef uint16_t HtpResponseCode; | |
21 | ||
22 | typedef struct HtpState_ { | |
23 | HtpRequestMethod method; | |
24 | ||
25 | HtpResponseCode response_code; | |
26 | ||
27 | htp_connp_t *connp; /**< Connection parser structure for each connection */ | |
28 | ||
29 | } HtpState; | |
30 | ||
31 | htp_cfg_t *cfg; /**< Config structure for HTP library */ | |
32 | ||
33 | void RegisterHTPParsers(void); | |
34 | void HTPParserRegisterTests(void); | |
35 | #endif /* _APP_LAYER_HTP_H */ | |
36 |