67 self.tr("The certificate contains a weak key."), |
67 self.tr("The certificate contains a weak key."), |
68 QWebEngineCertificateError.CertificateNameConstraintViolation: |
68 QWebEngineCertificateError.CertificateNameConstraintViolation: |
69 self.tr("The certificate claimed DNS names that are in" |
69 self.tr("The certificate claimed DNS names that are in" |
70 " violation of name constraints."), |
70 " violation of name constraints."), |
71 } |
71 } |
|
72 try: |
|
73 self.__errorDescriptions[ |
|
74 QWebEngineCertificateError.CertificateValidityTooLong] = \ |
|
75 self.tr("The certificate has a validity period that is too long.") |
|
76 except AttributeError: |
|
77 # the value was added in Qt 5.7 |
|
78 pass |
72 |
79 |
73 for host, errors in errorsDict.items(): |
80 for host, errors in errorsDict.items(): |
74 itm = QTreeWidgetItem(self.errorsTree, [host]) |
81 itm = QTreeWidgetItem(self.errorsTree, [host]) |
75 self.errorsTree.setFirstItemColumnSpanned(itm, True) |
82 self.errorsTree.setFirstItemColumnSpanned(itm, True) |
76 for error in errors: |
83 for error in errors: |