summaryrefslogtreecommitdiff
path: root/src/OpenSSL/SSL.py
diff options
context:
space:
mode:
authorHynek Schlawack <hs@ox.cx>2016-03-13 16:17:53 +0100
committerHynek Schlawack <hs@ox.cx>2016-03-14 14:54:13 +0100
commitea94f2bfd5d2a81e110f863793bdae967a1288f9 (patch)
treeedd88cffd952e12e3aefd5472f0e25ff99356505 /src/OpenSSL/SSL.py
parent16c3dc2cad3fc2e0ee4349b1c35c76f6534f2fb1 (diff)
downloadpyopenssl-ea94f2bfd5d2a81e110f863793bdae967a1288f9.tar.gz
Rename state_name to get_state_name
A bit more consistent naming. Rename is possible because the method hasn't been part of a release yet.
Diffstat (limited to 'src/OpenSSL/SSL.py')
-rw-r--r--src/OpenSSL/SSL.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/OpenSSL/SSL.py b/src/OpenSSL/SSL.py
index 8ae7449..160cfd8 100644
--- a/src/OpenSSL/SSL.py
+++ b/src/OpenSSL/SSL.py
@@ -1590,11 +1590,12 @@ class Connection(object):
_lib.SSL_set_shutdown(self._ssl, state)
- def state_string(self):
+ def get_state_string(self):
"""
- Get a verbose state description
+ Retrieve a verbose string detailing the state of the Connection.
:return: A string representing the state
+ :rtype: bytes
"""
return _ffi.string(_lib.SSL_state_string_long(self._ssl))