mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 19:18:19 +00:00

MD5 is not FIPS compliant and we do not need to use it in the majority of tests. Replace them where not explicitly needed. (cherry picked from commit 3291846ae8e13e05c6554d0029c25a99fd6b5a10)
19 lines
518 B
Text
19 lines
518 B
Text
# @TEST-EXEC: zeek -r $TRACES/ssh/ssh1-ssh2-fingerprints.pcap %INPUT >out
|
|
# @TEST-EXEC: btest-diff out
|
|
|
|
@load base/protocols/ssh
|
|
|
|
event ssh2_server_host_key(c: connection, key: string)
|
|
{
|
|
print "ssh2 server host key fingerprint", sha1_hash(key);
|
|
}
|
|
|
|
event ssh1_server_host_key(c: connection, modulus: string, exponent: string)
|
|
{
|
|
print "ssh1 server host key fingerprint", sha1_hash(modulus + exponent);
|
|
}
|
|
|
|
event ssh_server_host_key(c: connection, hash: string)
|
|
{
|
|
print "ssh server host key fingerprint", hash;
|
|
}
|