Skip to content

Commit

Permalink
SESSION_SSL_MINIMUM_TLS (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
najohnsn authored Sep 20, 2024
1 parent 74a6fec commit e2f49af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tnz/tnz.py
Original file line number Diff line number Diff line change
Expand Up @@ -3747,6 +3747,10 @@ def __create_context(self, verifycert=None):
else:
context.verify_mode = ssl.CERT_NONE

minimum_version = getenv("SESSION_SSL_MINIMUM_TLS")
if minimum_version == "1.1":
context.minimum_version = ssl.TLSVersion.TLSv1_1

return context

def __erase(self, saddr, eaddr):
Expand Down

0 comments on commit e2f49af

Please sign in to comment.