Skip to content

Commit

Permalink
clear up the use of TLSRecordLayer.version
Browse files Browse the repository at this point in the history
  • Loading branch information
tomato42 committed Jun 2, 2015
1 parent a2d0523 commit 7e4b64e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tlslite/tlsrecordlayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,13 @@ def version(self):

@version.setter
def version(self, value):
"""Set the SSL protocol version of connection"""
"""
Set the SSL protocol version of connection
The setter is a public method only for backwards compatibility.
Don't use it! See at HandshakeSettings for options to set desired
protocol version.
"""
self._version = value
self._recordSocket.version = value

Expand Down

0 comments on commit 7e4b64e

Please sign in to comment.