diff options
author | bentley <> | 2014-10-12 09:33:04 +0000 |
---|---|---|
committer | bentley <> | 2014-10-12 09:33:04 +0000 |
commit | 82b7f378b6907ab315a6e50322d2a0a8794a0aa9 (patch) | |
tree | a5087bf8d016a6041c2b6822fbecfd8f6c5e70b1 /src/lib/libssl/doc/SSL_COMP_add_compression_method.3 | |
parent | 0a63f0cf49369e1926567ab62e04e3355cedf0cd (diff) | |
download | openbsd-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.3 | 65 |
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 | ||
13 | adds the compression method | ||
14 | .Fa cm | ||
15 | with the identifier | ||
16 | .Fa id | ||
17 | to the list of available compression methods. | ||
18 | This list is globally maintained for all SSL operations within this application. | ||
19 | It cannot be set for specific SSL_CTX or SSL objects. | ||
20 | .Sh NOTES | ||
21 | The TLS standard (or SSLv3) allows the integration of compression methods | ||
22 | into the communication. | ||
23 | The TLS RFC does however not specify compression methods or their corresponding | ||
24 | identifiers, so there is currently no compatible way to integrate compression | ||
25 | with unknown peers. | ||
26 | It is therefore currently not recommended to integrate compression into | ||
27 | applications. | ||
28 | Applications for non-public use may agree on certain compression methods. | ||
29 | Using different compression methods with the same identifier will lead to | ||
30 | connection failure. | ||
31 | .Pp | ||
32 | An OpenSSL client speaking a protocol that allows compression (SSLv3, TLSv1) | ||
33 | will unconditionally send the list of all compression methods enabled with | ||
34 | .Fn SSL_COMP_add_compression_method | ||
35 | to the server during the handshake. | ||
36 | Unlike the mechanisms to set a cipher list, there is no method available to | ||
37 | restrict the list of compression method on a per connection basis. | ||
38 | .Pp | ||
39 | An OpenSSL server will match the identifiers listed by a client against | ||
40 | its own compression methods and will unconditionally activate compression | ||
41 | when a matching identifier is found. | ||
42 | There is no way to restrict the list of compression methods supported on a per | ||
43 | connection basis. | ||
44 | .Pp | ||
45 | The OpenSSL library has the compression methods | ||
46 | .Fn COMP_rle | ||
47 | and (when especially enabled during compilation) | ||
48 | .Fn COMP_zlib | ||
49 | available. | ||
50 | .Sh WARNINGS | ||
51 | Once the identities of the compression methods for the TLS protocol have | ||
52 | been standardized, the compression API will most likely be changed. | ||
53 | Using it in the current state is not recommended. | ||
54 | .Sh RETURN VALUES | ||
55 | .Fn SSL_COMP_add_compression_method | ||
56 | may return the following values: | ||
57 | .Bl -tag -width Ds | ||
58 | .It 0 | ||
59 | The operation succeeded. | ||
60 | .It 1 | ||
61 | The operation failed. | ||
62 | Check the error queue to find out the reason. | ||
63 | .El | ||
64 | .Sh SEE ALSO | ||
65 | .Xr ssl 3 | ||