diff options
author | Sebastian Deiss <s.deiss@science-computing.de> | 2014-03-26 13:47:29 +0100 |
---|---|---|
committer | Sebastian Deiss <s.deiss@science-computing.de> | 2014-03-26 13:47:29 +0100 |
commit | c8391cb90e02cf8c4c769f3c523ad9f6767ca92c (patch) | |
tree | a93934235f70abbc270d8494c4554d784837c0f5 /paramiko/ssh_gss.py | |
parent | 9c2640fb9f4fcd700f10fde6f0efdf9bab1cbe53 (diff) | |
download | paramiko-c8391cb90e02cf8c4c769f3c523ad9f6767ca92c.tar.gz |
Adapt GSS-API implementation to the merged code.
Diffstat (limited to 'paramiko/ssh_gss.py')
-rw-r--r-- | paramiko/ssh_gss.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/paramiko/ssh_gss.py b/paramiko/ssh_gss.py index d4b897a7..35d654af 100644 --- a/paramiko/ssh_gss.py +++ b/paramiko/ssh_gss.py @@ -66,6 +66,10 @@ except ImportError: def decode(self): raise NotImplementedError("Module pyasn1 not importable") + class encoder(object): + def encode(self): + raise NotImplementedError("Module pyasn1 not importable") + from paramiko.common import MSG_USERAUTH_REQUEST from paramiko.ssh_exception import SSHException @@ -251,11 +255,11 @@ class _SSH_GSSAuth(object): mic += session_id mic += struct.pack('B', MSG_USERAUTH_REQUEST) mic += self._make_uint32(len(username)) - mic += str.encode(username) + mic += username.encode() mic += self._make_uint32(len(service)) - mic += str.encode(service) + mic += service.encode() mic += self._make_uint32(len(auth_method)) - mic += str.encode(auth_method) + mic += auth_method.encode() return mic |