From c7e1f36cb3f394ca748a612fb002d1097701e2dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Sat, 15 Apr 2023 13:52:18 +0200 Subject: [PATCH] added exception logging on getTransportData and forced TLS to 1.3 on UDS tunnel --- client-py3/full/src/UDSClient.py | 1 + client-py3/full/src/uds/tunnel.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/client-py3/full/src/UDSClient.py b/client-py3/full/src/UDSClient.py index 771b04c67..c625a461a 100755 --- a/client-py3/full/src/UDSClient.py +++ b/client-py3/full/src/UDSClient.py @@ -178,6 +178,7 @@ class UDSClient(QtWidgets.QMainWindow): # Retry operation in ten seconds QtCore.QTimer.singleShot(10000, self.getTransportData) except Exception as e: + logger.exception('Error getting transport data') self.showError(e) def start(self): diff --git a/client-py3/full/src/uds/tunnel.py b/client-py3/full/src/uds/tunnel.py index 75d60bd36..4de6a92cc 100644 --- a/client-py3/full/src/uds/tunnel.py +++ b/client-py3/full/src/uds/tunnel.py @@ -120,6 +120,8 @@ class ForwardServer(socketserver.ThreadingTCPServer): # Do not "recompress" data, use only "base protocol" compression context.options |= ssl.OP_NO_COMPRESSION + context.minimum_version = ssl.TLSVersion.TLSv1_3 + if tools.getCaCertsFile() is not None: context.load_verify_locations( tools.getCaCertsFile()