diff options
author | Lance Stout <lancestout@gmail.com> | 2011-10-27 15:16:54 -0400 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2011-10-27 15:16:54 -0400 |
commit | e2720fac9eb3727f46c4ad953d4886e51bfb71b6 (patch) | |
tree | 7f86a175dbf7bcbbeb6207b6b6bcd9c1662299f4 | |
parent | 4374729f20f32b10b7dea79438820edb83601a10 (diff) | |
download | slixmpp-e2720fac9eb3727f46c4ad953d4886e51bfb71b6.tar.gz slixmpp-e2720fac9eb3727f46c4ad953d4886e51bfb71b6.tar.bz2 slixmpp-e2720fac9eb3727f46c4ad953d4886e51bfb71b6.tar.xz slixmpp-e2720fac9eb3727f46c4ad953d4886e51bfb71b6.zip |
FIX SCRAM-SHA-1-PLUS
The mechanism name was being correctly de-plussed, but then we used the
original, -PLUS, name to extract the hash, finding SHA-1-PLUS and therefore
finding no match.
Test-Information:
Tested with Sleek against an Isode M-Link with SCRAM-SHA-1-PLUS available.
Author: dwd
-rw-r--r-- | sleekxmpp/thirdparty/suelta/mechanisms/scram_hmac.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/thirdparty/suelta/mechanisms/scram_hmac.py b/sleekxmpp/thirdparty/suelta/mechanisms/scram_hmac.py index e0020329..b70ac9a4 100644 --- a/sleekxmpp/thirdparty/suelta/mechanisms/scram_hmac.py +++ b/sleekxmpp/thirdparty/suelta/mechanisms/scram_hmac.py @@ -32,7 +32,7 @@ class SCRAM_HMAC(Mechanism): name = name[:-5] self._cb = True - self.hash = hash(self.name[6:]) + self.hash = hash(name[6:]) if self.hash is None: raise SASLCancelled(self.sasl, self) if not self.sasl.tls_active(): |