X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/e86021e471a791861799a16efe11ce9fa3452de2..b314172618586e500fc362a49ca08bf497b8e878:/python/disorder.py.in diff --git a/python/disorder.py.in b/python/disorder.py.in index 4e9b8cd..b18c724 100644 --- a/python/disorder.py.in +++ b/python/disorder.py.in @@ -375,7 +375,8 @@ class client: s.connect(self.who) self.w = s.makefile("wb") self.r = s.makefile("rb") - (res, challenge) = self._simple() + (res, challenge_and_algo) = self._simple() + (algo, challenge) = _split(challenge_and_algo) if cookie is None: if self.user is None: user = self.config['username'] @@ -385,6 +386,7 @@ class client: password = self.config['password'] else: password = self.password + # TODO support algorithms other than SHA-1 h = sha.sha() h.update(password) h.update(binascii.unhexlify(challenge))