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

Name

Description

ctx

SSL context whose preference list is replaced.

algs

Array of TLSEXT_comp_cert_* algorithm identifiers in preference order.

len

Size of algs in bytes (not element count).

Created with MrDocs