From e2720fac9eb3727f46c4ad953d4886e51bfb71b6 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Thu, 27 Oct 2011 15:16:54 -0400 Subject: [PATCH] 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 --- sleekxmpp/thirdparty/suelta/mechanisms/scram_hmac.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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():