htp_urlencoded.c File Reference

#include "htp_config_auto.h"
#include "htp_private.h"

Functions

htp_urlenp_thtp_urlenp_create (htp_tx_t *tx)
void htp_urlenp_destroy (htp_urlenp_t *urlenp)
htp_status_t htp_urlenp_finalize (htp_urlenp_t *urlenp)
htp_status_t htp_urlenp_parse_complete (htp_urlenp_t *urlenp, const void *data, size_t len)
htp_status_t htp_urlenp_parse_partial (htp_urlenp_t *urlenp, const void *_data, size_t len)

Detailed Description

Author:
Ivan Ristic <ivanr@webkreator.com>

Function Documentation

htp_urlenp_t* htp_urlenp_create ( htp_tx_t tx  ) 

Creates a new URLENCODED parser.

Returns:
New parser, or NULL on memory allocation failure.
void htp_urlenp_destroy ( htp_urlenp_t urlenp  ) 

Destroys an existing URLENCODED parser.

Parameters:
[in] urlenp 
htp_status_t htp_urlenp_finalize ( htp_urlenp_t urlenp  ) 

Finalizes parsing, forcing the parser to convert any outstanding data into parameters. This method should be invoked at the end of a parsing operation that used htp_urlenp_parse_partial().

Parameters:
[in] urlenp 
Returns:
Success indication
htp_status_t htp_urlenp_parse_complete ( htp_urlenp_t urlenp,
const void *  data,
size_t  len 
)

Parses the provided data chunk under the assumption that it contains all the data that will be parsed. When this method is used for parsing the finalization method should not be invoked.

Parameters:
[in] urlenp 
[in] data 
[in] len 
Returns:
htp_status_t htp_urlenp_parse_partial ( htp_urlenp_t urlenp,
const void *  _data,
size_t  len 
)

Parses the provided data chunk, keeping state to allow streaming parsing, i.e., the parsing where only partial information is available at any one time. The method htp_urlenp_finalize() must be invoked at the end to finalize parsing.

Parameters:
[in] urlenp 
[in] _data 
[in] len 
Returns:

Generated on 1 Jan 2017 for HTP by  doxygen 1.6.1