summaryrefslogtreecommitdiff
path: root/OpenSSL
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSSL')
-rw-r--r--OpenSSL/SSL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSSL/SSL.py b/OpenSSL/SSL.py
index 85cf976..af1931f 100644
--- a/OpenSSL/SSL.py
+++ b/OpenSSL/SSL.py
@@ -1891,7 +1891,7 @@ class Connection(object):
the value for TLS 1.2 would be ``b'TLSv1.2'``.
:rtype: :py:class:`unicode`
"""
- version = _lib.SSL_get_version(self._ssl)
+ version = _ffi.string(_lib.SSL_get_version(self._ssl))
return version