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

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

== Synopsis

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

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

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ssl*
| Server SSL connection whose certificates are compressed&period;
| *alg*
| Compression algorithm identifier (for example TLSEXT&lowbar;comp&lowbar;cert&lowbar;zlib), or 0 to use each algorithm in the preference list&period;
|===


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