SSL_COMP_add_compression_method

Register a compression method globally for all SSL operations in the process.

Synopsis

Declared in <openssl/ssl.h>

int
SSL_COMP_add_compression_method(
    int id,
    COMP_METHOD* cm);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
idWire identifier advertised for cm (must be unique among enabled methods).
cmCOMP_METHOD implementation to add to the global list.