diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-12-20 09:13:40 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-12-20 09:13:40 (GMT) |
commit | 8abdb8abd856f0dbbb3120428f0bf1d282007c32 (patch) | |
tree | 051c7264f4bfc195f49136483c263808d4ef7e4b /Doc | |
parent | 3563b18c19c37902ecbc6ab28c92b3674a3eed32 (diff) | |
download | cpython-8abdb8abd856f0dbbb3120428f0bf1d282007c32.zip cpython-8abdb8abd856f0dbbb3120428f0bf1d282007c32.tar.gz cpython-8abdb8abd856f0dbbb3120428f0bf1d282007c32.tar.bz2 |
Issue #13634: Add support for querying and disabling SSL compression.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/ssl.rst | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Doc/library/ssl.rst b/Doc/library/ssl.rst index 7017b8f..3cd9554 100644 --- a/Doc/library/ssl.rst +++ b/Doc/library/ssl.rst @@ -436,6 +436,15 @@ Constants .. versionadded:: 3.3 +.. data:: OP_NO_COMPRESSION + + Disable compression on the SSL channel. This is useful if the application + protocol supports its own compression scheme. + + This option is only available with OpenSSL 1.0.0 and later. + + .. versionadded:: 3.3 + .. data:: HAS_SNI Whether the OpenSSL library has built-in support for the *Server Name @@ -561,6 +570,16 @@ SSL sockets also have the following additional methods and attributes: version of the SSL protocol that defines its use, and the number of secret bits being used. If no connection has been established, returns ``None``. +.. method:: SSLSocket.compression() + + Return the compression algorithm being used as a string, or ``None`` + if the connection isn't compressed. + + If the higher-level protocol supports its own compression mechanism, + you can use :data:`OP_NO_COMPRESSION` to disable SSL-level compression. + + .. versionadded:: 3.3 + .. method:: SSLSocket.get_channel_binding(cb_type="tls-unique") Get channel binding data for current connection, as a bytes object. Returns |