Skip to content

Commit

Permalink
modified ssl_version ->ssl_get_version and modified test, docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ihamburglar committed May 27, 2015
1 parent 5aeb11f commit 41ac0c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions OpenSSL/SSL.py
Original file line number Diff line number Diff line change
Expand Up @@ -1889,11 +1889,11 @@ def get_protocol_version(self):
:returns: The TLS version of the current connection, for example
the value for TLS 1.2 would be 0x303.
:rtype: :py:class:`int`
:rtype: :py:class:`unicode`
"""
version = _lib.SSL_get_version(self._ssl)
return version
version = _ffi.string(_lib.SSL_get_version(self._ssl))
return version.decode("utf-8")


@_requires_npn
def get_next_proto_negotiated(self):
Expand Down

0 comments on commit 41ac0c4

Please sign in to comment.