summaryrefslogtreecommitdiff
path: root/src/lib/libssl/doc/SSL_COMP_add_compression_method.3
diff options
context:
space:
mode:
authorbentley <>2014-10-12 09:33:04 +0000
committerbentley <>2014-10-12 09:33:04 +0000
commit82b7f378b6907ab315a6e50322d2a0a8794a0aa9 (patch)
treea5087bf8d016a6041c2b6822fbecfd8f6c5e70b1 /src/lib/libssl/doc/SSL_COMP_add_compression_method.3
parent0a63f0cf49369e1926567ab62e04e3355cedf0cd (diff)
downloadopenbsd-82b7f378b6907ab315a6e50322d2a0a8794a0aa9.tar.gz
openbsd-82b7f378b6907ab315a6e50322d2a0a8794a0aa9.tar.bz2
openbsd-82b7f378b6907ab315a6e50322d2a0a8794a0aa9.zip
Convert libssl manpages from pod to mdoc(7).
libcrypto has not been started yet. ok schwarze@ miod@
Diffstat (limited to 'src/lib/libssl/doc/SSL_COMP_add_compression_method.3')
-rw-r--r--src/lib/libssl/doc/SSL_COMP_add_compression_method.365
1 files changed, 65 insertions, 0 deletions
diff --git a/src/lib/libssl/doc/SSL_COMP_add_compression_method.3 b/src/lib/libssl/doc/SSL_COMP_add_compression_method.3
new file mode 100644
index 0000000000..c23d676930
--- /dev/null
+++ b/src/lib/libssl/doc/SSL_COMP_add_compression_method.3
@@ -0,0 +1,65 @@
1.Dd $Mdocdate: October 12 2014 $
2.Dt SSL_COMP_ADD_COMPRESSION_METHOD 3
3.Os
4.Sh NAME
5.Nm SSL_COMP_add_compression_method
6.Nd handle SSL/TLS integrated compression methods
7.Sh SYNOPSIS
8.In openssl/ssl.h
9.Ft int
10.Fn SSL_COMP_add_compression_method "int id" "COMP_METHOD *cm"
11.Sh DESCRIPTION
12.Fn SSL_COMP_add_compression_method
13adds the compression method
14.Fa cm
15with the identifier
16.Fa id
17to the list of available compression methods.
18This list is globally maintained for all SSL operations within this application.
19It cannot be set for specific SSL_CTX or SSL objects.
20.Sh NOTES
21The TLS standard (or SSLv3) allows the integration of compression methods
22into the communication.
23The TLS RFC does however not specify compression methods or their corresponding
24identifiers, so there is currently no compatible way to integrate compression
25with unknown peers.
26It is therefore currently not recommended to integrate compression into
27applications.
28Applications for non-public use may agree on certain compression methods.
29Using different compression methods with the same identifier will lead to
30connection failure.
31.Pp
32An OpenSSL client speaking a protocol that allows compression (SSLv3, TLSv1)
33will unconditionally send the list of all compression methods enabled with
34.Fn SSL_COMP_add_compression_method
35to the server during the handshake.
36Unlike the mechanisms to set a cipher list, there is no method available to
37restrict the list of compression method on a per connection basis.
38.Pp
39An OpenSSL server will match the identifiers listed by a client against
40its own compression methods and will unconditionally activate compression
41when a matching identifier is found.
42There is no way to restrict the list of compression methods supported on a per
43connection basis.
44.Pp
45The OpenSSL library has the compression methods
46.Fn COMP_rle
47and (when especially enabled during compilation)
48.Fn COMP_zlib
49available.
50.Sh WARNINGS
51Once the identities of the compression methods for the TLS protocol have
52been standardized, the compression API will most likely be changed.
53Using it in the current state is not recommended.
54.Sh RETURN VALUES
55.Fn SSL_COMP_add_compression_method
56may return the following values:
57.Bl -tag -width Ds
58.It 0
59The operation succeeded.
60.It 1
61The operation failed.
62Check the error queue to find out the reason.
63.El
64.Sh SEE ALSO
65.Xr ssl 3