summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortkikuchi2007-02-22 11:02:21 +0000
committertkikuchi2007-02-22 11:02:21 +0000
commit8f9ab154c34e72223b4622052db2017d117cb489 (patch)
treed4538c6dbe58fed9b33af7e9edcba89ceb9d5343
parent8721c5131a01c7b922cde4cd7cd109a7d8f0b48d (diff)
downloadmailman-8f9ab154c34e72223b4622052db2017d117cb489.tar.gz
mailman-8f9ab154c34e72223b4622052db2017d117cb489.tar.zst
mailman-8f9ab154c34e72223b4622052db2017d117cb489.zip
-rw-r--r--Mailman/passwords.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/passwords.py b/Mailman/passwords.py
index 30c436a01..0e02c605c 100644
--- a/Mailman/passwords.py
+++ b/Mailman/passwords.py
@@ -97,7 +97,7 @@ class SSHAPasswordScheme(PasswordScheme):
@staticmethod
def check_response(challenge, response):
# Get the salt from the challenge
- challenge_bytes = decode(challenge)
+ challenge_bytes = decode(str(challenge))
digest = challenge_bytes[:20]
salt = challenge_bytes[20:]
h = sha.new(response)