summaryrefslogtreecommitdiff
path: root/paramiko/kex_gex.py
diff options
context:
space:
mode:
authorRobey Pointer <robey@lag.net>2003-12-30 22:24:21 +0000
committerRobey Pointer <robey@lag.net>2003-12-30 22:24:21 +0000
commitdaa8a2ec0d6d3706ea3864fcab5ed56597f3612a (patch)
tree73b01cd33f631034448bc6b1779fdda4a542794e /paramiko/kex_gex.py
parent48c7d888a22a6810a32f6d25cdd6b561803166cd (diff)
downloadparamiko-daa8a2ec0d6d3706ea3864fcab5ed56597f3612a.tar.gz
[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-18]
added public-key support to server mode, more docs added public-key support to server mode (it can now verify a client signature) and added a demo of that to the demo_server.py script (user_rsa_key). in the process, cleaned up the API of PKey so that now it only has to know about signing and verifying ssh2 blobs, and can be hashed and compared with other keys (comparing & hashing only the public parts of the key). keys can also be created from strings now too. some more documentation and hiding private methods.
Diffstat (limited to 'paramiko/kex_gex.py')
-rw-r--r--paramiko/kex_gex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/kex_gex.py b/paramiko/kex_gex.py
index f14c7864..3fcb8f26 100644
--- a/paramiko/kex_gex.py
+++ b/paramiko/kex_gex.py
@@ -145,7 +145,7 @@ class KexGex(object):
m.add_byte(chr(_MSG_KEXDH_GEX_REPLY))
m.add_string(key)
m.add_mpint(self.f)
- m.add_string(sig)
+ m.add_string(str(sig))
self.transport._send_message(m)
self.transport._activate_outbound()