[#SSL_get1_compressed_cert]
= SSL&lowbar;get1&lowbar;compressed&lowbar;cert
:mrdocs:

Copy the pre&hyphen;compressed certificate stored for algorithm `alg` on a server SSL connection&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
size&lowbar;t
SSL&lowbar;get1&lowbar;compressed&lowbar;cert(
    xref:SSL.adoc[SSL]* ssl,
    int alg,
    unsigned char** data,
    size&lowbar;t* orig&lowbar;len);
----

== Return Value

Length of `&ast;data` in bytes on success, or 0 on failure (including client connections)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ssl*
| Server SSL connection that holds a pre&hyphen;compressed certificate&period;
| *alg*
| Compression algorithm identifier matching a stored blob&period;
| *data*
| On success, set to a newly allocated compressed certificate (caller frees with OPENSSL&lowbar;free)&period;
| *orig&lowbar;len*
| On success, set to the uncompressed certificate length in bytes&period;
|===


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