HTP  0.3
Functions
htp_transaction.c File Reference
#include "htp.h"
Include dependency graph for htp_transaction.c:

Functions

htp_tx_thtp_tx_create (htp_cfg_t *cfg, int is_cfg_shared, htp_conn_t *conn)
void htp_tx_destroy (htp_tx_t *tx)
void * htp_tx_get_user_data (htp_tx_t *tx)
void htp_tx_set_config (htp_tx_t *tx, htp_cfg_t *cfg, int is_cfg_shared)
void htp_tx_set_user_data (htp_tx_t *tx, void *user_data)
void htp_tx_register_request_body_data (htp_tx_t *tx, int(*callback_fn)(htp_tx_data_t *))
void htp_tx_register_response_body_data (htp_tx_t *tx, int(*callback_fn)(htp_tx_data_t *))

Detailed Description

Author:
Ivan Ristic ivanr.nosp@m.@web.nosp@m.kreat.nosp@m.or.c.nosp@m.om

Function Documentation

htp_tx_t* htp_tx_create ( htp_cfg_t cfg,
int  is_cfg_shared,
htp_conn_t conn 
)

Creates a new transaction structure.

Parameters:
cfg
is_cfg_shared
conn
Returns:
The newly created transaction, or NULL on memory allocation failure.

Here is the call graph for this function:

Here is the caller graph for this function:

void htp_tx_destroy ( htp_tx_t tx)

Destroys the supplied transaction.

Parameters:
tx

Here is the call graph for this function:

Here is the caller graph for this function:

void* htp_tx_get_user_data ( htp_tx_t tx)

Returns the user data associated with this transaction.

Parameters:
tx
Returns:
A pointer to user data or NULL
void htp_tx_register_request_body_data ( htp_tx_t tx,
int(*)(htp_tx_data_t *)  callback_fn 
)

Register callback for the transaction-specific REQUEST_BODY_DATA hook.

Parameters:
txcallback_fn

Here is the call graph for this function:

Here is the caller graph for this function:

void htp_tx_register_response_body_data ( htp_tx_t tx,
int(*)(htp_tx_data_t *)  callback_fn 
)

Register callback for the transaction-specific RESPONSE_BODY_DATA hook.

Parameters:
txcallback_fn

Here is the call graph for this function:

void htp_tx_set_config ( htp_tx_t tx,
htp_cfg_t cfg,
int  is_cfg_shared 
)

Sets the configuration that is to be used for this transaction.

Parameters:
tx
cfg
is_cfg_shared
void htp_tx_set_user_data ( htp_tx_t tx,
void *  user_data 
)

Associates user data with this transaction.

Parameters:
tx
user_data