From abff188a6bfda1e624d49d33a3e109904c440a38 Mon Sep 17 00:00:00 2001 From: Jim Shaver Date: Wed, 27 May 2015 09:15:55 -0400 Subject: differentiated the two functions. Updated docs, and tests --- doc/api/ssl.rst | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'doc/api') 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() -- cgit v1.2.1