mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -05:00
Support receiving RFC 8332 rsa-sha2-* host keys.
This is the cleanest part of the RFC 8332 support: I simply add two more RSA-based SSH-2 key algorithm vtables, both almost identical to the existing one, with different ssh_id strings and signature flags. Adding those to the HOSTKEY_ALGORITHMS list macro is enough to ensure that we advertise support for the new identifiers in our client KEXINIT, select the appropriate algorithm if the server announces one or both of them too, and use the right version of the signature validation.
This commit is contained in:
2
ssh.h
2
ssh.h
@ -997,6 +997,8 @@ extern const ssh_kex ssh_ec_kex_nistp521;
|
||||
extern const ssh_kexes ssh_ecdh_kex;
|
||||
extern const ssh_keyalg ssh_dss;
|
||||
extern const ssh_keyalg ssh_rsa;
|
||||
extern const ssh_keyalg ssh_rsa_sha256;
|
||||
extern const ssh_keyalg ssh_rsa_sha512;
|
||||
extern const ssh_keyalg ssh_ecdsa_ed25519;
|
||||
extern const ssh_keyalg ssh_ecdsa_ed448;
|
||||
extern const ssh_keyalg ssh_ecdsa_nistp256;
|
||||
|
Reference in New Issue
Block a user