Added MD5 fingerprint hashes to verbose output.

This commit is contained in:
Joe Testa
2021-05-20 18:03:24 -04:00
parent e508a963e7
commit 07862489c4
15 changed files with 35 additions and 24 deletions

View File

@ -37,7 +37,7 @@ def test_prevent_runtime_error_regression(ssh_audit, kex):
rv = ssh_audit.build_struct('localhost', banner=None, kex=kex)
assert len(rv["fingerprints"]) == 9
assert len(rv["fingerprints"]) == (9 * 2) # Each host key generates two hash fingerprints: one using SHA256, and one using MD5.
for key in ['banner', 'compression', 'enc', 'fingerprints', 'kex', 'key', 'mac']:
assert key in rv