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

Get a copy of a compressed certificate configured on an SSL&lowbar;CTX&period;

== Synopsis

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

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

== Return Value

Length of &ast;`data` in bytes, or 0 if unavailable &sol; on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context that may hold compressed certificates&period;
| *alg*
| Compression algorithm identifier (TLSEXT&lowbar;comp&lowbar;cert&lowbar;&ast;)&period;
| *data*
| Receives a newly allocated compressed certificate buffer (caller frees with OPENSSL&lowbar;free)&period;
| *orig&lowbar;len*
| Receives the uncompressed certificate length in bytes&period;
|===


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