HTP 0.5
Functions | Variables
htp_decompressors.c File Reference
#include "htp_config_auto.h"
#include "htp_private.h"

Functions

htp_status_t htp_gzip_decompressor_decompress (htp_decompressor_t *drec1, htp_tx_data_t *d)
 
void htp_gzip_decompressor_destroy (htp_decompressor_t *drec1)
 
htp_decompressor_thtp_gzip_decompressor_create (htp_connp_t *connp, enum htp_content_encoding_t format)
 

Variables

const ISzAlloc lzma_Alloc = { SzAlloc, SzFree }
 

Detailed Description

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

Function Documentation

◆ htp_gzip_decompressor_create()

htp_decompressor_t * htp_gzip_decompressor_create ( htp_connp_t connp,
enum htp_content_encoding_t  format 
)

Create a new decompressor instance.

Parameters
[in]connp
[in]format
Returns
New htp_decompressor_t instance on success, or NULL on failure.

◆ htp_gzip_decompressor_decompress()

htp_status_t htp_gzip_decompressor_decompress ( htp_decompressor_t drec1,
htp_tx_data_t d 
)

Decompress a chunk of gzip-compressed data. If we have more than one decompressor, call this function recursively.

Parameters
[in]drec
[in]d
Returns
HTP_OK on success, HTP_ERROR or some other negative integer on failure.

◆ htp_gzip_decompressor_destroy()

void htp_gzip_decompressor_destroy ( htp_decompressor_t drec1)

Shut down gzip decompressor.

Parameters
[in]drec

Variable Documentation

◆ lzma_Alloc

const ISzAlloc lzma_Alloc = { SzAlloc, SzFree }