Skip to content

Commit

Permalink
Added string() to get_protocol_version_name
Browse files Browse the repository at this point in the history
  • Loading branch information
ihamburglar committed May 27, 2015
1 parent d382d6d commit d1c896e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OpenSSL/SSL.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit d1c896e

Please sign in to comment.