diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2021-12-13 15:55:36 -0500 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2021-12-23 00:31:01 -0500 |
commit | 363a28d94cada17f012c1604a3c99c71a2bda003 (patch) | |
tree | 6979a1d39ced84c3b29d366a0026db5fd9a62851 /paramiko/kex_gex.py | |
parent | dfffaeaa0170c784307d1c89dad60528a59b6ff2 (diff) | |
download | paramiko-363a28d94cada17f012c1604a3c99c71a2bda003.tar.gz |
Add support for RSA SHA2 host and public keys
Includes a handful of refactors and new semiprivate
attributes on Transport and AuthHandler for better
test visibility.
Diffstat (limited to 'paramiko/kex_gex.py')
-rw-r--r-- | paramiko/kex_gex.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/paramiko/kex_gex.py b/paramiko/kex_gex.py index fb8f01fd..ab462e6d 100644 --- a/paramiko/kex_gex.py +++ b/paramiko/kex_gex.py @@ -240,7 +240,9 @@ class KexGex(object): H = self.hash_algo(hm.asbytes()).digest() self.transport._set_K_H(K, H) # sign it - sig = self.transport.get_server_key().sign_ssh_data(H) + sig = self.transport.get_server_key().sign_ssh_data( + H, self.transport.host_key_type + ) # send reply m = Message() m.add_byte(c_MSG_KEXDH_GEX_REPLY) |