From 51b1367f0be6f9dad66c8ecec0f983100d9cde98 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com> Date: Sat, 19 Oct 2024 17:47:25 +0200 Subject: [PATCH] Fix CI deprecation warning fake-cisco-server.py:205: DeprecationWarning: ssl.SSLContext() without protocol argument is deprecated. fake-cisco-server.py:205: DeprecationWarning: ssl.PROTOCOL_TLS is deprecated All ssl.PROTOCOL_TLS* constants have been added in Python 3.6, and the default PROTOCOL_TLS has been deprecated since Python 3.10. Signed-off-by: Dimitri Papadopoulos Orfanos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com> --- tests/fake-cisco-server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fake-cisco-server.py b/tests/fake-cisco-server.py index 5cf2446f..b2d8f4ed 100755 --- a/tests/fake-cisco-server.py +++ b/tests/fake-cisco-server.py @@ -202,7 +202,7 @@ def auth_reply(dict_req): def main(args): - context = ssl.SSLContext() + context = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) # Verify that TLS requests include the appropriate client certificate context.load_cert_chain(args.cert, args.key) -- 2.49.0