[#SSL_CTX_set1_compressed_cert]
= SSL&lowbar;CTX&lowbar;set1&lowbar;compressed&lowbar;cert
:mrdocs:

Install a pre&hyphen;compressed certificate blob on a server SSL context&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;compressed&lowbar;cert(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    int algorithm,
    unsigned char* comp&lowbar;data,
    size&lowbar;t comp&lowbar;length,
    size&lowbar;t orig&lowbar;length);
----

== 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 that will send the compressed certificate&period;
| *algorithm*
| Certificate compression algorithm identifier&period;
| *comp&lowbar;data*
| Compressed certificate bytes (copied into `ctx)&period;`
| *comp&lowbar;length*
| Length of `comp&lowbar;data` in bytes&period;
| *orig&lowbar;length*
| Uncompressed certificate length in bytes&period;
|===


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