SSL_CTX_set1_compressed_cert

Install a pre-compressed certificate blob on a server SSL context.

Synopsis

Declared in <openssl/ssl.h>

int
SSL_CTX_set1_compressed_cert(
    SSL_CTX* ctx,
    int algorithm,
    unsigned char* comp_data,
    size_t comp_length,
    size_t orig_length);

Return Value

1 on success, or 0 on failure (including when ctx is a client context).

Parameters

NameDescription
ctxServer SSL context that will send the compressed certificate.
algorithmCertificate compression algorithm identifier.
comp_dataCompressed certificate bytes (copied into ctx).
comp_lengthLength of comp_data in bytes.
orig_lengthUncompressed certificate length in bytes.