[#SSL_CTX_set1_cert_comp_preference]
= SSL&lowbar;CTX&lowbar;set1&lowbar;cert&lowbar;comp&lowbar;preference
:mrdocs:

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

== Synopsis

Declared in `&lt;openssl&sol;ssl&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;CTX&lowbar;set1&lowbar;cert&lowbar;comp&lowbar;preference(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    int* algs,
    size&lowbar;t len);
----

== Return Value

1 on success, or 0 on failure (preference list left unchanged on error)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose preference list is replaced&period;
| *algs*
| Array of TLSEXT&lowbar;comp&lowbar;cert&lowbar;&ast; algorithm identifiers in preference order&period;
| *len*
| Size of `algs` in bytes (not element count)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
