Sat, 26 Apr 2025 12:34:32 +0200
MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.
# -*- coding: utf-8 -*- # Copyright (c) 2015 - 2025 Detlev Offenbach <detlev@die-offenbachs.de> # """ Module implementing SSL utility functions. """ def initSSL(): """ Function to initialize some global SSL stuff. """ try: from PyQt6.QtNetwork import QSslConfiguration # __IGNORE_WARNING_I-10__ except ImportError: # no SSL available, so there is nothing to initialize return blocklist = [ "SRP-AES-256-CBC-SHA", # open to MitM "SRP-AES-128-CBC-SHA", # open to MitM ] strongCiphers = [ c for c in QSslConfiguration.supportedCiphers() if c.name() not in blocklist and c.usedBits() >= 128 ] defaultSslConfiguration = QSslConfiguration.defaultConfiguration() defaultSslConfiguration.setCiphers(strongCiphers) QSslConfiguration.setDefaultConfiguration(defaultSslConfiguration)