HTP 0.5
htp_connection_parser_private.h
Go to the documentation of this file.
1/***************************************************************************
2 * Copyright (c) 2009-2010 Open Information Security Foundation
3 * Copyright (c) 2010-2013 Qualys, Inc.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met:
9 *
10 * - Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12
13 * - Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the
15 * documentation and/or other materials provided with the distribution.
16
17 * - Neither the name of the Qualys, Inc. nor the names of its
18 * contributors may be used to endorse or promote products derived from
19 * this software without specific prior written permission.
20 *
21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
25 * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
26 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 ***************************************************************************/
33
39#ifndef HTP_CONNECTION_PARSER_PRIVATE_H
40#define HTP_CONNECTION_PARSER_PRIVATE_H
41
42#ifdef __cplusplus
43extern "C" {
44#endif
45
46#include "htp_core.h"
47
52
53 // General fields
54
57
60
62 const void *user_data;
63
70
71
72 // Request parser fields
73
76
79
86
92
94 unsigned char *in_current_data;
95
98
101
107
114
117
120
123
129
131 unsigned char *in_buf;
132
135
141
144
151
158
164
167
170
173
174 // Response parser fields
175
182
185
187 unsigned char *out_current_data;
188
191
194
200
207
210
213
215 unsigned char *out_buf;
216
219
225
228
234
237
243
246
249
252
255
258};
259
266
267#ifdef __cplusplus
268}
269#endif
270
271#endif /* HTP_CONNECTION_PARSER_PRIVATE_H */
272
void htp_connp_in_reset(htp_connp_t *connp)
Definition: htp_connection_parser.c:167
struct timeval htp_time_t
Definition: htp_core.h:60
htp_stream_state_t
Definition: htp_core.h:335
Definition: bstr.h:57
Definition: htp_config_private.h:123
Definition: htp.h:67
Definition: htp_connection_parser_private.h:51
int in_next_byte
Definition: htp_connection_parser_private.h:128
int64_t in_current_read_offset
Definition: htp_connection_parser_private.h:100
htp_tx_t * in_tx
Definition: htp_connection_parser_private.h:143
int64_t in_current_len
Definition: htp_connection_parser_private.h:97
htp_cfg_t * cfg
Definition: htp_connection_parser_private.h:56
htp_hook_t * out_data_receiver_hook
Definition: htp_connection_parser_private.h:251
int64_t out_current_consume_offset
Definition: htp_connection_parser_private.h:199
int out_next_byte
Definition: htp_connection_parser_private.h:212
int64_t out_chunked_length
Definition: htp_connection_parser_private.h:242
size_t out_next_tx_index
Definition: htp_connection_parser_private.h:181
htp_time_t out_timestamp
Definition: htp_connection_parser_private.h:184
size_t out_buf_size
Definition: htp_connection_parser_private.h:218
htp_tx_t * out_tx
Definition: htp_connection_parser_private.h:227
htp_time_t in_timestamp
Definition: htp_connection_parser_private.h:91
unsigned int out_data_other_at_tx_end
Definition: htp_connection_parser_private.h:85
bstr * out_header
Definition: htp_connection_parser_private.h:224
int(* in_state_previous)(htp_connp_t *)
Definition: htp_connection_parser_private.h:169
int64_t out_body_data_left
Definition: htp_connection_parser_private.h:236
bstr * in_header
Definition: htp_connection_parser_private.h:140
int(* out_state)(htp_connp_t *)
Definition: htp_connection_parser_private.h:245
unsigned char * out_buf
Definition: htp_connection_parser_private.h:215
size_t in_chunk_count
Definition: htp_connection_parser_private.h:116
int64_t in_current_consume_offset
Definition: htp_connection_parser_private.h:106
size_t in_buf_size
Definition: htp_connection_parser_private.h:134
int64_t in_body_data_left
Definition: htp_connection_parser_private.h:157
int64_t in_chunked_length
Definition: htp_connection_parser_private.h:163
enum htp_stream_state_t in_status
Definition: htp_connection_parser_private.h:75
int64_t in_current_receiver_offset
Definition: htp_connection_parser_private.h:113
htp_file_t * put_file
Definition: htp_connection_parser_private.h:257
int64_t out_stream_offset
Definition: htp_connection_parser_private.h:209
unsigned char * out_current_data
Definition: htp_connection_parser_private.h:187
htp_hook_t * in_data_receiver_hook
Definition: htp_connection_parser_private.h:172
int64_t in_stream_offset
Definition: htp_connection_parser_private.h:122
int64_t out_current_receiver_offset
Definition: htp_connection_parser_private.h:206
int64_t out_current_len
Definition: htp_connection_parser_private.h:190
int64_t out_content_length
Definition: htp_connection_parser_private.h:233
unsigned char * in_buf
Definition: htp_connection_parser_private.h:131
int64_t in_content_length
Definition: htp_connection_parser_private.h:150
htp_conn_t * conn
Definition: htp_connection_parser_private.h:59
int64_t out_current_read_offset
Definition: htp_connection_parser_private.h:193
enum htp_stream_state_t out_status
Definition: htp_connection_parser_private.h:78
int(* in_state)(htp_connp_t *)
Definition: htp_connection_parser_private.h:166
unsigned char * in_current_data
Definition: htp_connection_parser_private.h:94
size_t in_chunk_request_index
Definition: htp_connection_parser_private.h:119
htp_decompressor_t * out_decompressor
Definition: htp_connection_parser_private.h:254
int(* out_state_previous)(htp_connp_t *)
Definition: htp_connection_parser_private.h:248
htp_log_t * last_error
Definition: htp_connection_parser_private.h:69
const void * user_data
Definition: htp_connection_parser_private.h:62
Definition: htp_decompressors.h:57
Definition: htp.h:111
Definition: htp_hooks.h:52
Definition: htp.h:145
Definition: htp.h:208