SSL_CTX_get1_compressed_cert

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

NameDescription
ctxSSL context that may hold compressed certificates.
algCompression algorithm identifier (TLSEXT_comp_cert_*).
dataReceives a newly allocated compressed certificate buffer (caller frees with OPENSSL_free).
orig_lenReceives the uncompressed certificate length in bytes.