htp_response.c File Reference

#include <stdlib.h>
#include "htp.h"
Include dependency graph for htp_response.c:

Functions

int htp_connp_RES_BODY_CHUNKED_DATA_END (htp_connp_t *connp)
int htp_connp_RES_BODY_CHUNKED_DATA (htp_connp_t *connp)
int htp_connp_RES_BODY_CHUNKED_LENGTH (htp_connp_t *connp)
int htp_connp_RES_BODY_IDENTITY (htp_connp_t *connp)
int htp_connp_RES_BODY_DETERMINE (htp_connp_t *connp)
int htp_connp_RES_HEADERS (htp_connp_t *connp)
int htp_connp_RES_LINE (htp_connp_t *connp)
size_t htp_connp_res_data_consumed (htp_connp_t *connp)
int htp_connp_RES_IDLE (htp_connp_t *connp)
int htp_connp_res_data (htp_connp_t *connp, htp_time_t *timestamp, unsigned char *data, size_t len)

Detailed Description

Author:
Ivan Ristic <ivanr@webkreator.com>

Function Documentation

int htp_connp_RES_BODY_CHUNKED_DATA ( htp_connp_t connp  ) 

Processes a chunk of data.

Parameters:
connp 
Returns:
HTP_OK on state change, HTTP_ERROR on error, or HTP_DATA when more data is needed.

Here is the call graph for this function:

Here is the caller graph for this function:

int htp_connp_RES_BODY_CHUNKED_DATA_END ( htp_connp_t connp  ) 

Consumes bytes until the end of the current line.

Parameters:
connp 
Returns:
HTP_OK on state change, HTTP_ERROR on error, or HTP_DATA when more data is needed.

Here is the call graph for this function:

Here is the caller graph for this function:

int htp_connp_RES_BODY_CHUNKED_LENGTH ( htp_connp_t connp  ) 

Extracts chunk length.

Parameters:
connp 
Returns:
HTP_OK on state change, HTTP_ERROR on error, or HTP_DATA when more data is needed.

Here is the call graph for this function:

Here is the caller graph for this function:

int htp_connp_RES_BODY_DETERMINE ( htp_connp_t connp  ) 

Determines presence (and encoding) of a response body.

Parameters:
connp 
Returns:
HTP_OK on state change, HTTP_ERROR on error, or HTP_DATA when more data is needed.

Here is the call graph for this function:

Here is the caller graph for this function:

int htp_connp_RES_BODY_IDENTITY ( htp_connp_t connp  ) 

Processes identity response body.

Parameters:
connp 
Returns:
HTP_OK on state change, HTTP_ERROR on error, or HTP_DATA when more data is needed.

Here is the call graph for this function:

Here is the caller graph for this function:

int htp_connp_res_data ( htp_connp_t connp,
htp_time_t timestamp,
unsigned char *  data,
size_t  len 
)

Process a chunk of outbound (server or response) data.

Parameters:
connp 
timestamp 
data 
len 
Returns:
HTP_OK on state change, HTTP_ERROR on error, or HTP_DATA when more data is needed

Here is the call graph for this function:

Here is the caller graph for this function:

size_t htp_connp_res_data_consumed ( htp_connp_t connp  ) 
int htp_connp_RES_HEADERS ( htp_connp_t connp  ) 

Parses response headers.

Parameters:
connp 
Returns:
HTP_OK on state change, HTTP_ERROR on error, or HTP_DATA when more data is needed.

Here is the call graph for this function:

Here is the caller graph for this function:

int htp_connp_RES_IDLE ( htp_connp_t connp  ) 

The response idle state will initialize response processing, as well as finalize each transactions after we are done with it.

Parameters:
connp 
Returns:
HTP_OK on state change, HTTP_ERROR on error, or HTP_DATA when more data is needed.

Here is the call graph for this function:

Here is the caller graph for this function:

int htp_connp_RES_LINE ( htp_connp_t connp  ) 

Parses response line.

Parameters:
connp 
Returns:
HTP_OK on state change, HTTP_ERROR on error, or HTP_DATA when more data is needed.

Todo:
Would be nice to reference response_line_raw data

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on 28 Jan 2013 for HTP by  doxygen 1.6.1