commit | dc9a93b6adacc959066ffb118e26bc85ae997fb8 | [log] [tgz] |
---|---|---|
author | Martin Kopec <mkopec@redhat.com> | Fri Mar 25 17:34:42 2022 +0100 |
committer | Martin Kopec <mkopec@redhat.com> | Fri Mar 25 20:57:00 2022 +0100 |
tree | 55d1c4855319f968c14d64d7cbcb8efdc102497e | |
parent | 67ea5dfbac827a27004448aae7142197eeff57d0 [diff] |
Use wrap_socket from ssl.SSLContext instead of ssl Since Python 3.2 and 2.7.9, it is recommended to use the SSLContext.wrap_socket() instead of wrap_socket(). The top-level function is limited and creates an insecure client socket without server name indication or hostname matching. [1] https://docs.python.org/3/library/ssl.html#ssl.wrap_socket Change-Id: I5d61f32760d2715fdb34314f173b0efcec4a2dcf