[#SSL_COMP_add_compression_method]
= SSL&lowbar;COMP&lowbar;add&lowbar;compression&lowbar;method
:mrdocs:

Register a compression method globally for all SSL operations in the process&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;COMP&lowbar;add&lowbar;compression&lowbar;method(
    int id,
    xref:COMP_METHOD.adoc[COMP&lowbar;METHOD]* cm);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *id*
| Wire identifier advertised for `cm` (must be unique among enabled methods)&period;
| *cm*
| COMP&lowbar;METHOD implementation to add to the global list&period;
|===


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