diff options
author | Hynek Schlawack <hs@ox.cx> | 2015-05-30 09:56:09 +0200 |
---|---|---|
committer | Hynek Schlawack <hs@ox.cx> | 2015-05-30 09:56:09 +0200 |
commit | b92c8a9ea95bdd1a815b54ec2b733469e28ac5cb (patch) | |
tree | 450906e94eace942e806c7ee15077916f5931830 /doc | |
parent | 51dc335469f779ba1e3e356163108bb46eaca01c (diff) | |
parent | 46f28913101d68549a5bc8efc47f0f27b7b3925d (diff) | |
download | pyopenssl-git-b92c8a9ea95bdd1a815b54ec2b733469e28ac5cb.tar.gz |
Merge pull request #244 from elitest/session-tls-version
Add support for querying the negotiated TLS version
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/ssl.rst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/api/ssl.rst b/doc/api/ssl.rst index 2929305..89ae6a1 100644 --- a/doc/api/ssl.rst +++ b/doc/api/ssl.rst @@ -598,6 +598,21 @@ Connection objects have the following methods: but not it returns the entire list in one go. +.. py:method:: Connection.get_protocol_version() + + Retrieve the version of the SSL or TLS protocol used by the Connection. + For example, it will return ``0x769`` for connections made over TLS + version 1. + + +.. py:method:: Connection.get_protocol_version_name() + + Retrieve the version of the SSL or TLS protocol used by the Connection as + a unicode string. For example, it will return ``TLSv1`` for connections + made over TLS version 1, or ``Unknown`` for connections that were not + successfully established. + + .. py:method:: Connection.get_client_ca_list() Retrieve the list of preferred client certificate issuers sent by the server |