E5Network/E5SslInfoWidget.py

changeset 3776
ccb6eacb50e5
parent 3656
441956d8fce5
child 4021
195a471c327b
--- a/E5Network/E5SslInfoWidget.py	Sat Sep 06 14:22:41 2014 +0200
+++ b/E5Network/E5SslInfoWidget.py	Sun Sep 07 19:57:40 2014 +0200
@@ -139,8 +139,8 @@
                 sslVersion = "SSL 3.0"
                 imageLabel.setPixmap(
                     UI.PixmapCache.getPixmap("securityHigh32.png"))
-            elif proto == QSsl.TlsV1:
-                sslVersion = "TLS 1.0"
+            elif proto == QSsl.TlsV1SslV3:
+                sslVersion = "TLS 1.0/SSL 3.0"
                 imageLabel.setPixmap(
                     UI.PixmapCache.getPixmap("securityHigh32.png"))
             elif proto == QSsl.SslV2:
@@ -151,6 +151,24 @@
                 sslVersion = self.tr("unknown")
                 imageLabel.setPixmap(
                     UI.PixmapCache.getPixmap("securityLow32.png"))
+            if qVersion() >= "5.0.0":
+                if proto == QSsl.TlsV1_0:
+                    sslVersion = "TLS 1.0"
+                    imageLabel.setPixmap(
+                        UI.PixmapCache.getPixmap("securityHigh32.png"))
+                elif proto == QSsl.TlsV1_1:
+                    sslVersion = "TLS 1.1"
+                    imageLabel.setPixmap(
+                        UI.PixmapCache.getPixmap("securityHigh32.png"))
+                elif proto == QSsl.TlsV1_2:
+                    sslVersion = "TLS 1.2"
+                    imageLabel.setPixmap(
+                        UI.PixmapCache.getPixmap("securityHigh32.png"))
+            else:
+                if proto == QSsl.TlsV1:
+                    sslVersion = "TLS 1.0"
+                    imageLabel.setPixmap(
+                        UI.PixmapCache.getPixmap("securityHigh32.png"))
             rows += 1
             
             label = QLabel(self)

eric ide

mercurial