Get a copy of a compressed certificate configured on an SSL_CTX.

Synopsis

Declared in <openssl/ssl.h>

size_t
SSL_CTX_get1_compressed_cert(
    SSL_CTX* ctx,
    int alg,
    unsigned char** data,
    size_t* orig_len);

Return Value

Length of *`data` in bytes, or 0 if unavailable / on error.

Parameters

Name

Description

ctx

SSL context that may hold compressed certificates.

alg

Compression algorithm identifier (TLSEXT_comp_cert_*).

data

Receives a newly allocated compressed certificate buffer (caller frees with OPENSSL_free).

orig_len

Receives the uncompressed certificate length in bytes.

Created with MrDocs