137 proto = cipher.protocol() |
137 proto = cipher.protocol() |
138 if proto == QSsl.SslV3: |
138 if proto == QSsl.SslV3: |
139 sslVersion = "SSL 3.0" |
139 sslVersion = "SSL 3.0" |
140 imageLabel.setPixmap( |
140 imageLabel.setPixmap( |
141 UI.PixmapCache.getPixmap("securityHigh32.png")) |
141 UI.PixmapCache.getPixmap("securityHigh32.png")) |
142 elif proto == QSsl.TlsV1: |
142 elif proto == QSsl.TlsV1SslV3: |
143 sslVersion = "TLS 1.0" |
143 sslVersion = "TLS 1.0/SSL 3.0" |
144 imageLabel.setPixmap( |
144 imageLabel.setPixmap( |
145 UI.PixmapCache.getPixmap("securityHigh32.png")) |
145 UI.PixmapCache.getPixmap("securityHigh32.png")) |
146 elif proto == QSsl.SslV2: |
146 elif proto == QSsl.SslV2: |
147 sslVersion = "SSL 2.0" |
147 sslVersion = "SSL 2.0" |
148 imageLabel.setPixmap( |
148 imageLabel.setPixmap( |
149 UI.PixmapCache.getPixmap("securityLow32.png")) |
149 UI.PixmapCache.getPixmap("securityLow32.png")) |
150 else: |
150 else: |
151 sslVersion = self.tr("unknown") |
151 sslVersion = self.tr("unknown") |
152 imageLabel.setPixmap( |
152 imageLabel.setPixmap( |
153 UI.PixmapCache.getPixmap("securityLow32.png")) |
153 UI.PixmapCache.getPixmap("securityLow32.png")) |
|
154 if qVersion() >= "5.0.0": |
|
155 if proto == QSsl.TlsV1_0: |
|
156 sslVersion = "TLS 1.0" |
|
157 imageLabel.setPixmap( |
|
158 UI.PixmapCache.getPixmap("securityHigh32.png")) |
|
159 elif proto == QSsl.TlsV1_1: |
|
160 sslVersion = "TLS 1.1" |
|
161 imageLabel.setPixmap( |
|
162 UI.PixmapCache.getPixmap("securityHigh32.png")) |
|
163 elif proto == QSsl.TlsV1_2: |
|
164 sslVersion = "TLS 1.2" |
|
165 imageLabel.setPixmap( |
|
166 UI.PixmapCache.getPixmap("securityHigh32.png")) |
|
167 else: |
|
168 if proto == QSsl.TlsV1: |
|
169 sslVersion = "TLS 1.0" |
|
170 imageLabel.setPixmap( |
|
171 UI.PixmapCache.getPixmap("securityHigh32.png")) |
154 rows += 1 |
172 rows += 1 |
155 |
173 |
156 label = QLabel(self) |
174 label = QLabel(self) |
157 label.setWordWrap(True) |
175 label.setWordWrap(True) |
158 label.setText(self.tr( |
176 label.setText(self.tr( |