SSL_CTX_set1_cert_comp_preference

Set the preferred TLSv1.3 certificate compression algorithms for an SSL context (RFC 8879).

Synopsis

Declared in <openssl/ssl.h>

int
SSL_CTX_set1_cert_comp_preference(
    SSL_CTX* ctx,
    int* algs,
    size_t len);

Return Value

1 on success, or 0 on failure (preference list left unchanged on error).

Parameters

NameDescription
ctxSSL context whose preference list is replaced.
algsArray of TLSEXT_comp_cert_* algorithm identifiers in preference order.
lenSize of algs in bytes (not element count).