summaryrefslogtreecommitdiffhomepage
path: root/kex_gex.py
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2003-12-24 20:49:38 +0000
committerRobey Pointer <robey@lag.net>2003-12-24 20:49:38 +0000
commit02319afd5ac24ebeed0d4f671179128c4fc39596 (patch)
tree117f99db047e245e72319d655e9f07a1fb49bfc9 /kex_gex.py
parente7715095b649fd9582de4dff9930d9ee42013a6e (diff)
[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-12]
fix dss key signing (expanded on a patch from fred gansevles) add a demo dss key for server mode, and fix some bugs that had caused the dss signing stuff to never work before. the demo_server is a bit more verbose now, too. both key types (RSAKey & DSSKey) now have a function to return the fingerprint of the key, and both versions of read_private_key_file() now raise exceptions on failure, instead of just silently setting "valid" to false.
Diffstat (limited to 'kex_gex.py')
-rw-r--r--kex_gex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kex_gex.py b/kex_gex.py
index 5fd67968..19bc699a 100644
--- a/kex_gex.py
+++ b/kex_gex.py
@@ -138,7 +138,7 @@ class KexGex(object):
H = SHA.new(str(hm)).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(self.transport.randpool, H)
# send reply
m = Message()
m.add_byte(chr(MSG_KEXDH_GEX_REPLY))