Skip to content

Commit

Permalink
SESSION_SSL_MINIMUM_TLS
Browse files Browse the repository at this point in the history
Signed-off-by: Neil Johnson <[email protected]>
  • Loading branch information
najohnsn committed Sep 20, 2024
1 parent 74a6fec commit 0eb6a84
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 0eb6a84

Please sign in to comment.