Deprecate "ssh1_server_host_key" parameters *e* and *p*

They are named such that *e* is actually the modulus, not the exponent.
The replacement parameters are named *exponent* and *modulus* for
clarity.
This commit is contained in:
Jon Siwek 2020-11-13 22:23:29 -08:00
parent bd40a97a78
commit 45449dad72
6 changed files with 33 additions and 19 deletions

View file

@ -8,9 +8,9 @@ event ssh2_server_host_key(c: connection, key: string)
print "ssh2 server host key fingerprint", md5_hash(key);
}
event ssh1_server_host_key(c: connection, p: string, e: string)
event ssh1_server_host_key(c: connection, modulus: string, exponent: string)
{
print "ssh1 server host key fingerprint", md5_hash(e + p);
print "ssh1 server host key fingerprint", md5_hash(modulus + exponent);
}
event ssh_server_host_key(c: connection, hash: string)