1
0
mirror of https://github.com/eclipse/mosquitto.git synced 2025-05-09 01:01:11 +08:00
Olivier Gayot b7fb911428 tests: replace use of ssl.wrap_socket that throws warnings in Python 3.10
The function ssl.wrap_socket() is deprecated starting Python 3.7 because
it does not support hostname matching (which is considered insecure). In
Python 3.10, the function now throws warnings at runtime, which makes
Ubuntu / Debian autopkgtest fail.

The function ssl.SSLContext.wrap_socket comes in as the replacement and
has support for SNI and hostname matching.

Replaced all uses of ssl.wrap_socket() by equivalent using
ssl.SSLContext.wrap_socket().

Signed-off-by: Olivier Gayot <olivier.gayot@canonical.com>
2022-02-15 09:23:06 +01:00
..
2020-10-14 10:17:49 +01:00
2021-10-05 15:20:37 +01:00
2021-10-05 15:20:37 +01:00
2021-10-05 15:20:37 +01:00
2021-10-05 15:20:37 +01:00
2019-03-28 21:32:12 +00:00
2020-09-16 14:45:28 +01:00