]> git.ipfire.org Git - people/ms/suricata.git/blame - src/app-layer-htp.h
initial support for HTP module init
[people/ms/suricata.git] / src / app-layer-htp.h
CommitLineData
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
13typedef enum {
14 HTTP_METHOD_UNKNOWN = 0,
15 HTTP_METHOD_GET,
16 HTTP_METHOD_POST,
17 /** \todo more.. */
18} HtpRequestMethod;
19
20typedef uint16_t HtpResponseCode;
21
22typedef 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
31htp_cfg_t *cfg; /**< Config structure for HTP library */
32
33void RegisterHTPParsers(void);
34void HTPParserRegisterTests(void);
35#endif /* _APP_LAYER_HTP_H */
36