From d1c896e0282f3bc0e80e9fd14a306ac68265a4d1 Mon Sep 17 00:00:00 2001 From: Jim Shaver Date: Wed, 27 May 2015 17:50:21 -0400 Subject: [PATCH] Added string() to get_protocol_version_name --- OpenSSL/SSL.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSSL/SSL.py b/OpenSSL/SSL.py index 85cf976df..af1931f33 100644 --- a/OpenSSL/SSL.py +++ b/OpenSSL/SSL.py @@ -1891,7 +1891,7 @@ def get_protocol_version_name(self): 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