diff options
author | Jim Shaver <dcypherd@gmail.com> | 2015-05-27 09:15:55 -0400 |
---|---|---|
committer | Jim Shaver <dcypherd@gmail.com> | 2015-05-27 17:39:57 -0400 |
commit | abff188a6bfda1e624d49d33a3e109904c440a38 (patch) | |
tree | f91aa5e0b54dc22c03f5d819a78319b814d94c27 /doc/api | |
parent | f00513f42509c868756ece9d71cc1dbc5727060d (diff) | |
download | pyopenssl-git-abff188a6bfda1e624d49d33a3e109904c440a38.tar.gz |
differentiated the two functions. Updated docs, and tests
Diffstat (limited to 'doc/api')
-rw-r--r-- | doc/api/ssl.rst | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/doc/api/ssl.rst b/doc/api/ssl.rst index 2ab29fd..38f0d33 100644 --- a/doc/api/ssl.rst +++ b/doc/api/ssl.rst @@ -600,9 +600,18 @@ Connection objects have the following methods: .. py:method:: Connection.get_protocol_version() - Retrieve the version of the SSL or TLS protocol used by the Connection. For - example, it will return ``TLSv1`` for connections made over TLS version 1, or - ``Unknown`` for connections that were not successfully established. + Retrieve the version of the SSL or TLS protocol used by the Connection. + For example, it will return ``0x303`` for connections made over TLS + version 1.2, or ``Unknown`` for connections that were not successfully + established. + + +.. py:method:: Connection.get_protocol_version_name() + + Retrieve the version of the SSL or TLS protocol used by the Connection. + For example, it will return ``TLSv1`` in bytes for connections made over + TLS version 1, or ``Unknown`` for connections that were not successfully + established. .. py:method:: Connection.get_client_ca_list() |