Skip to content

Commit 1c566e4

Browse files
committed
Fix #2033 - Fix renegotiation tech table (attempt 2)
1 parent 0ff025c commit 1c566e4

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

checks/categories.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,9 @@ def __init__(self):
11851185
full_score=scoring.WEB_TLS_CLIENT_RENEG_GOOD,
11861186
model_score_field="client_reneg_score",
11871187
init_tech_type="table_translatable",
1188+
tech_data_translation_root="detail tech data tls-renegotiation-client",
11881189
)
1190+
self.tech_data = [[self.tech_data]]
11891191

11901192
def save_result(self, status: TLSClientInitiatedRenegotiationStatus):
11911193
handlers = {
@@ -1198,17 +1200,17 @@ def save_result(self, status: TLSClientInitiatedRenegotiationStatus):
11981200
def result_not_allowed(self):
11991201
self._status(STATUS_SUCCESS)
12001202
self.verdict = "detail web tls renegotiation-client verdict not-allowed"
1201-
self.tech_data = "detail tech data tls-renegotiation-client not-allowed"
1203+
self.tech_data = self.add_tech_data_translation_root([{"msgid": "not-allowed"}])
12021204

12031205
def result_allowed_with_low_limit(self):
12041206
self._status(STATUS_INFO)
12051207
self.verdict = "detail web tls renegotiation-client verdict allowed-with-low-limit"
1206-
self.tech_data = "detail tech data tls-renegotiation-client allowed-with-low-limit"
1208+
self.tech_data = self.add_tech_data_translation_root([{"msgid": "allowed-with-low-limit"}])
12071209

12081210
def result_allowed_with_too_high_limit(self):
12091211
self._status(STATUS_FAIL)
12101212
self.verdict = "detail web tls renegotiation-client verdict allowed-with-too-high-limit"
1211-
self.tech_data = "detail tech data tls-renegotiation-client allowed-with-too-high-limit"
1213+
self.tech_data = self.add_tech_data_translation_root([{"msgid": "allowed-with-too-high-limit"}])
12121214

12131215

12141216
class WebTlsCertTrust(Subtest):
@@ -1862,7 +1864,9 @@ def __init__(self):
18621864
full_score=scoring.MAIL_TLS_CLIENT_RENEG_GOOD,
18631865
model_score_field="client_reneg_score",
18641866
init_tech_type="table_translatable",
1867+
tech_data_translation_root="detail tech data tls-renegotiation-client",
18651868
)
1869+
self.tech_data = [[self.tech_data]]
18661870

18671871
def save_result(self, status: TLSClientInitiatedRenegotiationStatus):
18681872
handlers = {
@@ -1875,17 +1879,17 @@ def save_result(self, status: TLSClientInitiatedRenegotiationStatus):
18751879
def result_not_allowed(self):
18761880
self._status(STATUS_SUCCESS)
18771881
self.verdict = "detail mail tls renegotiation-client verdict not-allowed"
1878-
self.tech_data = "detail tech data tls-renegotiation-client not-allowed"
1882+
self.tech_data = self.add_tech_data_translation_root([{"msgid": "not-allowed"}])
18791883

18801884
def result_allowed_with_low_limit(self):
18811885
self._status(STATUS_INFO)
18821886
self.verdict = "detail mail tls renegotiation-client verdict allowed-with-low-limit"
1883-
self.tech_data = "detail tech data tls-renegotiation-client allowed-with-low-limit"
1887+
self.tech_data = self.add_tech_data_translation_root([{"msgid": "allowed-with-low-limit"}])
18841888

18851889
def result_allowed_with_too_high_limit(self):
18861890
self._status(STATUS_FAIL)
18871891
self.verdict = "detail mail tls renegotiation-client verdict allowed-with-too-high-limit"
1888-
self.tech_data = "detail tech data tls-renegotiation-client allowed-with-too-high-limit"
1892+
self.tech_data = self.add_tech_data_translation_root([{"msgid": "allowed-with-too-high-limit"}])
18891893

18901894

18911895
class MailTlsCertTrust(Subtest):

0 commit comments

Comments
 (0)