mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
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
This commit is contained in:
parent
4374729f20
commit
e2720fac9e
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class SCRAM_HMAC(Mechanism):
|
||||||
name = name[:-5]
|
name = name[:-5]
|
||||||
self._cb = True
|
self._cb = True
|
||||||
|
|
||||||
self.hash = hash(self.name[6:])
|
self.hash = hash(name[6:])
|
||||||
if self.hash is None:
|
if self.hash is None:
|
||||||
raise SASLCancelled(self.sasl, self)
|
raise SASLCancelled(self.sasl, self)
|
||||||
if not self.sasl.tls_active():
|
if not self.sasl.tls_active():
|
||||||
|
|
Loading…
Reference in a new issue