Set the preferred TLSv1.3 certificate compression algorithms for an SSL context (RFC 8879).
Declared in <openssl/ssl.h>
int
SSL_CTX_set1_cert_comp_preference(
SSL_CTX* ctx,
int* algs,
size_t len);
1 on success, or 0 on failure (preference list left unchanged on error).
| 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). |