2
0
mirror of https://github.com/mozilla/cipherscan.git synced 2024-12-26 12:43:42 +01:00

display target level compliance in text output

This commit is contained in:
Julien Vehent 2014-10-17 11:58:05 -04:00
parent 551255f8b4
commit ddfaa6722d

View File

@ -320,7 +320,13 @@ def process_results(data, level=None, do_json=False):
if operator:
json_output['operator'] = operator
else:
print(results['target'] + " has " + evaluate_all(results) + " ssl/tls")
measured_lvl = evaluate_all(results)
print(results['target'] + " has " + measured_lvl + " ssl/tls")
if level != 'none':
if level in measured_lvl:
print("and complies with the '" + level + "' level")
else:
print("and DOES NOT comply with the '" + level + "' level")
except TypeError, e:
return False