(results)
| 297 | return ordered |
| 298 | |
| 299 | def 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 | |
| 325 | def process_results(data, level=None, do_json=False, do_nagios=False): |
| 326 | logging.debug('processing results on %s' % data) |
no test coverage detected