diff options
author | Jonah BrĂ¼chert <jbb@kaidan.im> | 2024-04-20 01:12:49 +0200 |
---|---|---|
committer | Jonah BrĂ¼chert <jbb@kaidan.im> | 2024-04-20 01:12:49 +0200 |
commit | 1c42611d170bae5c8bb3ce47389b9039204de654 (patch) | |
tree | 13456426a0c5c04412a3757d29fcff0ac0e9e4dd /src/lib/Bcfg2/Client/Proxy.py | |
parent | 71c7a6b5836043e9476e98a61aa5dd907e0d4ce4 (diff) | |
download | bcfg2-1c42611d170bae5c8bb3ce47389b9039204de654.tar.gz bcfg2-1c42611d170bae5c8bb3ce47389b9039204de654.tar.bz2 bcfg2-1c42611d170bae5c8bb3ce47389b9039204de654.zip |
Default to using the highest available TLS version
Diffstat (limited to 'src/lib/Bcfg2/Client/Proxy.py')
-rw-r--r-- | src/lib/Bcfg2/Client/Proxy.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Client/Proxy.py b/src/lib/Bcfg2/Client/Proxy.py index dd841dd08..5b5ef9da6 100644 --- a/src/lib/Bcfg2/Client/Proxy.py +++ b/src/lib/Bcfg2/Client/Proxy.py @@ -202,9 +202,7 @@ class SSLHTTPConnection(httplib.HTTPConnection): elif self.protocol == 'xmlrpc/tlsv1': ssl_protocol_ver = ssl.PROTOCOL_TLSv1 elif self.protocol == 'xmlrpc/tls': - if has_py310: - ssl_protocol_ver = ssl.PROTOCOL_TLS_SERVER - elif has_py36: + if has_py36: ssl_protocol_ver = ssl.PROTOCOL_TLS elif has_py34: ssl_protocol_ver = ssl.PROTOCOL_TLSv1_2 |