MCPcopy Create free account
hub / github.com/mozilla/cipherscan / evaluate_all

Function evaluate_all

analyze.py:299–323  ·  view source on GitHub ↗
(results)

Source from the content-addressed store, hash-verified

297 return ordered
298
299def evaluate_all(results):
300 status = "obscure or unknown"
301
302 if len(results['ciphersuite']) == 0:
303 return "no"
304
305 if is_old(results):
306 status = "old"
307 if old["server_preferred_order"] and not is_ordered(results, old["openssl_ciphers"], "old"):
308 status = "old with bad ordering"
309
310 if is_intermediate(results):
311 status = "intermediate"
312 if inter["server_preferred_order"] and not is_ordered(results, inter["openssl_ciphers"], "intermediate"):
313 status = "intermediate with bad ordering"
314
315 if is_modern(results):
316 status = "modern"
317 if modern["server_preferred_order"] and not is_ordered(results, modern["openssl_ciphers"], "modern"):
318 status = "modern with bad ordering"
319
320 if is_fubar(results):
321 status = "bad"
322
323 return status
324
325def process_results(data, level=None, do_json=False, do_nagios=False):
326 logging.debug('processing results on %s' % data)

Callers 1

process_resultsFunction · 0.85

Calls 5

is_oldFunction · 0.85
is_orderedFunction · 0.85
is_intermediateFunction · 0.85
is_modernFunction · 0.85
is_fubarFunction · 0.85

Tested by

no test coverage detected