diff options
author | Jim Shaver <dcypherd@gmail.com> | 2015-05-27 17:50:21 -0400 |
---|---|---|
committer | Jim Shaver <dcypherd@gmail.com> | 2015-05-27 17:50:21 -0400 |
commit | d1c896e0282f3bc0e80e9fd14a306ac68265a4d1 (patch) | |
tree | 1e5d8ed46e24011e1d1aa993d58c7b9bc850f008 /OpenSSL | |
parent | d382d6db0cca022ce79c124fa51c77a81037763d (diff) | |
download | pyopenssl-git-d1c896e0282f3bc0e80e9fd14a306ac68265a4d1.tar.gz |
Added string() to get_protocol_version_name
Diffstat (limited to 'OpenSSL')
-rw-r--r-- | OpenSSL/SSL.py | 2 |
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 |