diff options
Diffstat (limited to 'paramiko/transport.py')
-rw-r--r-- | paramiko/transport.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/transport.py b/paramiko/transport.py index 98b810ee..773a8769 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -1536,7 +1536,7 @@ class Transport (threading.Thread, ClosingContextManager): m.add_bytes(self.session_id) # Fallback to SHA1 for kex engines that fail to specify a hex # algorithm, or for e.g. transport tests that don't run kexinit. - hash_algo = getattr(self.kex_engine, 'hex_algo', sha1) + hash_algo = getattr(self.kex_engine, 'hash_algo', None) out = sofar = hash_algo(m.asbytes()).digest() while len(out) < nbytes: m = Message() |