59 "~\\AppData\\Local\\largefiles")) |
59 "~\\AppData\\Local\\largefiles")) |
60 |
60 |
61 self.fpAddButton.setIcon(UI.PixmapCache.getIcon("plus.png")) |
61 self.fpAddButton.setIcon(UI.PixmapCache.getIcon("plus.png")) |
62 self.fpDeleteButton.setIcon(UI.PixmapCache.getIcon("minus.png")) |
62 self.fpDeleteButton.setIcon(UI.PixmapCache.getIcon("minus.png")) |
63 self.fpEditButton.setIcon(UI.PixmapCache.getIcon("edit.png")) |
63 self.fpEditButton.setIcon(UI.PixmapCache.getIcon("edit.png")) |
|
64 |
|
65 self.protocolAddButton.setIcon(UI.PixmapCache.getIcon("plus.png")) |
|
66 self.protocolDeleteButton.setIcon(UI.PixmapCache.getIcon("minus.png")) |
|
67 self.protocolEditButton.setIcon(UI.PixmapCache.getIcon("edit.png")) |
|
68 |
|
69 self.minimumProtocolComboBox.addItem("", "") |
|
70 self.minimumProtocolComboBox.addItem(self.tr("TLS 1.0"), "tls1.0") |
|
71 self.minimumProtocolComboBox.addItem(self.tr("TLS 1.1"), "tls1.1") |
|
72 self.minimumProtocolComboBox.addItem(self.tr("TLS 1.2"), "tls1.2") |
|
73 |
|
74 if self.__version < (3, 9, 0): |
|
75 self.disableTls10WarningCheckBox.setEnabled(False) |
|
76 self.minimumProtocolComboBox.setEnabled(False) |
|
77 self.minimumProtcolGroupBox.setEnabled(False) |
64 |
78 |
65 self.tabWidget.setCurrentIndex(0) |
79 self.tabWidget.setCurrentIndex(0) |
66 |
80 |
67 self.__editor = None |
81 self.__editor = None |
68 |
82 |
376 QTreeWidgetItem(self.fingerprintsList, [ |
390 QTreeWidgetItem(self.fingerprintsList, [ |
377 host, |
391 host, |
378 fingerprint.replace("\\", "").strip() |
392 fingerprint.replace("\\", "").strip() |
379 ]) |
393 ]) |
380 self.__finalizeFingerprintsColumns() |
394 self.__finalizeFingerprintsColumns() |
|
395 # TODO: add support for disabletls10warning = true |
|
396 # TODO: add support for minimumprotocol = (tls1.0, tls1.1, tls1.2) |
|
397 # TODO: add support for <hostname>:minimumprotocol = ... |
381 |
398 |
382 @pyqtSlot() |
399 @pyqtSlot() |
383 def accept(self): |
400 def accept(self): |
384 """ |
401 """ |
385 Public slot to accept the dialog. |
402 Public slot to accept the dialog. |
540 self.__clearDialog() |
557 self.__clearDialog() |
541 self.readUserConfig() |
558 self.readUserConfig() |
542 return True |
559 return True |
543 |
560 |
544 return False |
561 return False |
|
562 |
|
563 @pyqtSlot(QTreeWidgetItem, QTreeWidgetItem) |
|
564 def on_protocolsList_currentItemChanged(self, current, previous): |
|
565 """ |
|
566 Slot documentation goes here. |
|
567 |
|
568 @param current DESCRIPTION |
|
569 @type QTreeWidgetItem |
|
570 @param previous DESCRIPTION |
|
571 @type QTreeWidgetItem |
|
572 """ |
|
573 # TODO: not implemented yet |
|
574 return |
|
575 |
|
576 @pyqtSlot() |
|
577 def on_protocolAddButton_clicked(self): |
|
578 """ |
|
579 Slot documentation goes here. |
|
580 """ |
|
581 # TODO: not implemented yet |
|
582 raise NotImplementedError |
|
583 |
|
584 @pyqtSlot() |
|
585 def on_protocolDeleteButton_clicked(self): |
|
586 """ |
|
587 Slot documentation goes here. |
|
588 """ |
|
589 # TODO: not implemented yet |
|
590 raise NotImplementedError |
|
591 |
|
592 @pyqtSlot() |
|
593 def on_protocolEditButton_clicked(self): |
|
594 """ |
|
595 Slot documentation goes here. |
|
596 """ |
|
597 # TODO: not implemented yet |
|
598 raise NotImplementedError |