[#SSL_CTX_compress_certs]
= SSL&lowbar;CTX&lowbar;compress&lowbar;certs
:mrdocs:

Pre&hyphen;compress all certificates configured on a server SSL&lowbar;CTX with algorithm `alg&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;CTX&lowbar;compress&lowbar;certs(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    int alg);
----

== Return Value

1 on success, or 0 on failure (including when `ctx` is a client context)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Server SSL context whose certificates are compressed&period;
| *alg*
| Compression algorithm identifier, or 0 to use each algorithm in the preference list&period;
|===


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