src/eric7/EricNetwork/EricSslUtilities.py

branch
eric7
changeset 9470
34f2493c1d3f
parent 9221
bf71ee032bb4
child 9482
a2bc06a54d9d
--- a/src/eric7/EricNetwork/EricSslUtilities.py	Fri Nov 04 11:55:41 2022 +0100
+++ b/src/eric7/EricNetwork/EricSslUtilities.py	Fri Nov 04 11:56:07 2022 +0100
@@ -12,17 +12,17 @@
     """
     Function to initialize some global SSL stuff.
     """
-    blacklist = [
-        "SRP-AES-256-CBC-SHA",  # open to MitM
-        "SRP-AES-128-CBC-SHA",  # open to MitM
-    ]
-
     try:
         from PyQt6.QtNetwork import QSslConfiguration
     except ImportError:
         # no SSL available, so there is nothing to initialize
         return
 
+    blacklist = [
+        "SRP-AES-256-CBC-SHA",  # open to MitM
+        "SRP-AES-128-CBC-SHA",  # open to MitM
+    ]
+
     strongCiphers = [
         c
         for c in QSslConfiguration.supportedCiphers()

eric ide

mercurial