src/eric7/EricNetwork/EricSslUtilities.py

branch
eric7
changeset 9470
34f2493c1d3f
parent 9221
bf71ee032bb4
child 9482
a2bc06a54d9d
equal deleted inserted replaced
9469:87567b249ed8 9470:34f2493c1d3f
10 10
11 def initSSL(): 11 def initSSL():
12 """ 12 """
13 Function to initialize some global SSL stuff. 13 Function to initialize some global SSL stuff.
14 """ 14 """
15 blacklist = [
16 "SRP-AES-256-CBC-SHA", # open to MitM
17 "SRP-AES-128-CBC-SHA", # open to MitM
18 ]
19
20 try: 15 try:
21 from PyQt6.QtNetwork import QSslConfiguration 16 from PyQt6.QtNetwork import QSslConfiguration
22 except ImportError: 17 except ImportError:
23 # no SSL available, so there is nothing to initialize 18 # no SSL available, so there is nothing to initialize
24 return 19 return
20
21 blacklist = [
22 "SRP-AES-256-CBC-SHA", # open to MitM
23 "SRP-AES-128-CBC-SHA", # open to MitM
24 ]
25 25
26 strongCiphers = [ 26 strongCiphers = [
27 c 27 c
28 for c in QSslConfiguration.supportedCiphers() 28 for c in QSslConfiguration.supportedCiphers()
29 if c.name() not in blacklist and c.usedBits() >= 128 29 if c.name() not in blacklist and c.usedBits() >= 128

eric ide

mercurial