.\" $OpenBSD: SSL_COMP_add_compression_method.3,v 1.4 2018/03/23 00:10:28 schwarze Exp $ .\" .\" Copyright (c) 2016 Ingo Schwarze .\" .\" Permission to use, copy, modify, and distribute this software for any .\" purpose with or without fee is hereby granted, provided that the above .\" copyright notice and this permission notice appear in all copies. .\" .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .Dd $Mdocdate: March 23 2018 $ .Dt SSL_COMP_ADD_COMPRESSION_METHOD 3 .Os .Sh NAME .Nm SSL_COMP_add_compression_method , .Nm SSL_COMP_get_compression_methods .Nd handle SSL/TLS integrated compression methods .Sh SYNOPSIS .In openssl/ssl.h .Ft int .Fn SSL_COMP_add_compression_method "int id" "COMP_METHOD *cm" .Ft STACK_OF(SSL_COMP) * .Fn SSL_COMP_get_compression_methods void .Sh DESCRIPTION These functions are deprecated and have no effect. They are provided purely for compatibility with legacy application code. .Pp .Fn SSL_COMP_add_compression_method used to add the compression method .Fa cm with the identifier .Fa id to the list of available compression methods. .Pp .Fn SSL_COMP_get_compression_methods used to return a stack of available compression methods. .Sh RETURN VALUES .Fn SSL_COMP_add_compression_method always returns 1. .Fn SSL_COMP_get_compression_methods always returns .Dv NULL . .Sh HISTORY .Fn SSL_COMP_add_compression_method first appeared in OpenSSL 0.9.2b and has been available since .Ox 2.6 . .Pp .Fn SSL_COMP_get_compression_methods first appeared in OpenSSL 0.9.8 and has been available since .Ox 4.5 .