Decompress ilen bytes from in into out using a COMP_CTX.

Synopsis

Declared in <openssl/comp.h>

int
COMP_expand_block(
    COMP_CTX* ctx,
    unsigned char* out,
    int olen,
    unsigned char* in,
    int ilen);

Return Value

Number of bytes written to out, or a negative value on error.

Parameters

Name

Description

ctx

Compression context (for example zlib) that performs expansion.

out

Destination buffer for expanded data.

olen

Capacity of out in bytes.

in

Compressed input bytes.

ilen

Number of compressed bytes at in.

Created with MrDocs